Code

Opened 12 months ago

Closed 12 months ago

Last modified 12 months 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 claudep)

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

Attachments (0)

Change History (3)

comment:1 Changed 12 months ago by claudep

  • Description modified (diff)
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Please use proper Wiki markup for code snippets.

comment:2 Changed 12 months ago by claudep

  • Resolution set to invalid
  • Status changed from new to closed

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 Changed 12 months ago by Claude Paroz <claude@…>

In bfb2504402ea80962f457cb042d9fef21439feb9:

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

Refs #20260.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.