Changes between Version 1 and Version 2 of Ticket #27960


Ignore:
Timestamp:
Mar 19, 2017, 10:41:31 AM (8 years ago)
Author:
Etiënne Thomassen
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27960 – Description

    v1 v2  
    77Type "help", "copyright", "credits" or "license" for more information.
    88>>> from django.contrib.gis.gdal import DataSource
    9 >>> ds = DataSource('Bleswerk dec16.gpx')
     9>>> ds = DataSource('gpxfile1.gpx')
    1010Traceback (most recent call last):
    1111  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__
    1313    Driver.ensure_registered()
    14   File "/Users/etienne/.virtualenvs/bosbot3/lib/python3.6/site-packages/django/contrib/gis/gdal/driver.py", line 83, in ensure_registered
     14  File "/Users/etienne/.virtualenvs/venv1/lib/python3.6/site-packages/django/contrib/gis/gdal/driver.py", line 83, in ensure_registered
    1515    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_errcode
     16  File "/Users/etienne/.virtualenvs/venv1/lib/python3.6/site-packages/django/contrib/gis/gdal/prototypes/errcheck.py", line 119, in check_errcode
    1717    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_err
     18  File "/Users/etienne/.virtualenvs/venv1/lib/python3.6/site-packages/django/contrib/gis/gdal/error.py", line 74, in check_err
    1919    raise GDALException('Unknown error code: "%s"' % code)
    2020django.contrib.gis.gdal.error.GDALException: Unknown error code: "-1935278031"
    21 >>> ds = DataSource('20140525_170950_gpx.gpx')
     21>>> ds = DataSource('gpxfile2.gpx')
    2222>>> ds.layer_count
    23235
Back to Top