Opened 5 years ago

Closed 5 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 Changed 5 years ago by Claude Paroz

Summary: Creating GEOSgeometry based on JSON does not workImproved error message when creating GEOSgeometry based on JSON and GDAL is not installed
Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization

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.

comment:2 Changed 5 years ago by Claude Paroz <claude@…>

Resolution: fixed
Status: newclosed

In b86107ced15f9093f49469b76860cc98e7a7a671:

Fixed #24114 -- Improved error message in GEOSGeometry constructor

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