Changes between Version 1 and Version 2 of Ticket #27960
- Timestamp:
- Mar 19, 2017, 10:41:31 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #27960 – Description
v1 v2 7 7 Type "help", "copyright", "credits" or "license" for more information. 8 8 >>> from django.contrib.gis.gdal import DataSource 9 >>> ds = DataSource(' Bleswerk dec16.gpx')9 >>> ds = DataSource('gpxfile1.gpx') 10 10 Traceback (most recent call last): 11 11 File "<stdin>", line 1, in <module> 12 File "/Users/etienne/.virtualenvs/ bosbot3/lib/python3.6/site-packages/django/contrib/gis/gdal/datasource.py", line 64, in __init__12 File "/Users/etienne/.virtualenvs/venv1/lib/python3.6/site-packages/django/contrib/gis/gdal/datasource.py", line 64, in __init__ 13 13 Driver.ensure_registered() 14 File "/Users/etienne/.virtualenvs/ bosbot3/lib/python3.6/site-packages/django/contrib/gis/gdal/driver.py", line 83, in ensure_registered14 File "/Users/etienne/.virtualenvs/venv1/lib/python3.6/site-packages/django/contrib/gis/gdal/driver.py", line 83, in ensure_registered 15 15 rcapi.register_all() 16 File "/Users/etienne/.virtualenvs/ bosbot3/lib/python3.6/site-packages/django/contrib/gis/gdal/prototypes/errcheck.py", line 119, in check_errcode16 File "/Users/etienne/.virtualenvs/venv1/lib/python3.6/site-packages/django/contrib/gis/gdal/prototypes/errcheck.py", line 119, in check_errcode 17 17 check_err(result, cpl=cpl) 18 File "/Users/etienne/.virtualenvs/ bosbot3/lib/python3.6/site-packages/django/contrib/gis/gdal/error.py", line 74, in check_err18 File "/Users/etienne/.virtualenvs/venv1/lib/python3.6/site-packages/django/contrib/gis/gdal/error.py", line 74, in check_err 19 19 raise GDALException('Unknown error code: "%s"' % code) 20 20 django.contrib.gis.gdal.error.GDALException: Unknown error code: "-1935278031" 21 >>> ds = DataSource(' 20140525_170950_gpx.gpx')21 >>> ds = DataSource('gpxfile2.gpx') 22 22 >>> ds.layer_count 23 23 5