Opened 10 years ago
Closed 10 years ago
#24114 closed Cleanup/optimization (fixed)
Improved error message when creating GEOSgeometry based on JSON and GDAL is not installed
Reported by: | Ask Holme | Owned by: | nobody |
---|---|---|---|
Component: | GIS | Version: | 1.7 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Refering to https://docs.djangoproject.com/en/1.7/ref/contrib/gis/geos/
it should be possible to create a point by calling pnt = GEOSGeometry('{ "type": "Point", "coordinates": [ 5.000000, 23.000000 ] }')
however in practice this returns
* ValueError: String or unicode input unrecognized as WKT EWKT, and HEXEWKB.
Change History (2)
comment:1 by , 10 years ago
Summary: | Creating GEOSgeometry based on JSON does not work → Improved error message when creating GEOSgeometry based on JSON and GDAL is not installed |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Uncategorized → Cleanup/optimization |
comment:2 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
This works indeed. I guess it doesn't work for you because GDAL is not installed on your system. We may improve the error message.