Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#20260 closed Uncategorized (invalid)

Geodjango - ogrinspect on spatialite deprecation warning and unknown field type

Reported by: burton449geo@… Owned by: nobody
Component: GIS Version: 1.5
Severity: Normal Keywords: geodjango, spatialite, ogrinspect
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Claude Paroz)

I run ogrinspect on spatialite 4.0 where TM_WORLD_BORDERS-0.3.shp was loaded. I got two errors.

This is the traceback:

c:\mygeosite\geodjango>python manage.py ogrinspect c:/mygeosite/sqlite3/ezmapping.sqlite test --srid=4326 --mapping --multi
C:\python27\lib\site-packages\django\contrib\localflavor\__init__.py:2:
  DeprecationWarning: django.contrib.localflavor is deprecated. Use the separate django-localflavor-* packages instead.
  warnings.warn("django.contrib.localflavor is deprecated. Use the separate django-localflavor-* packages instead.", DeprecationWarning)

TypeError: Unknown field type <class 'django.contrib.gis.gdal.field.OFTBinary'>
in search_frame

Change History (3)

comment:1 by Claude Paroz, 12 years ago

Description: modified (diff)

Please use proper Wiki markup for code snippets.

comment:2 by Claude Paroz, 12 years ago

Resolution: invalid
Status: newclosed

ogrinspect is currently completely untested on Spatialite (it used to be difficult to setup GDAL to access SQLite databases). The only database really supported is PostGIS. However, you can provide the table name you want to inspect to the --layer argument, and you should obtain something which looks like the database table, but probably not very accurately.

I will add the "layer" tip to the ogrinspect documentation.

comment:3 by Claude Paroz <claude@…>, 12 years ago

In bfb2504402ea80962f457cb042d9fef21439feb9:

Added a tip about --layer param of ogrinspect for databases

Refs #20260.

Note: See TracTickets for help on using tickets.
Back to Top