Django

Code

Ticket #9557 (closed: fixed)

Opened 1 year ago

Last modified 1 year ago

no error message when using old GDAL and trying to get GEOJSON

Reported by: enj Assigned to: jbronn
Milestone: 1.1 Component: GIS
Version: 1.0 Keywords:
Cc: Triage Stage: Accepted
Has patch: 0 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

Description

I was trying to get GEOJSON from a GEOSGeometry object with an old version of GDAL (1.3.2) I did the following:

from django.contrib.gis.geos import *

poly = GEOSGeometry('POLYGON (( 10 10, 10 20, 20 20, 20 15, 10 10))')

poly.json

and got nothing back. doing the gdal.HAS_GDAL test returned True

looking at the code it seems it should have returned an error that my GDAL version was too old, but I got nothing.

Attachments

Change History

03/09/09 18:50:46 changed by jbronn

  • status changed from new to assigned.
  • needs_better_patch changed.
  • needs_tests changed.
  • milestone set to 1.1.
  • owner changed from nobody to jbronn.
  • needs_docs changed.
  • stage changed from Unreviewed to Accepted.

03/23/09 19:12:22 changed by jbronn

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [10131]) Refactored the GEOS interface. Improvements include:

* Geometries now allow list-like manipulation, e.g., can add, insert, delete vertexes (or other geometries in collections) like Python lists. Thanks, Aryeh Leib Taurog. * Added support for GEOS prepared geometries via prepared property. Prepared geometries significantly speed up certain operations. * Added support for GEOS cascaded union as MultiPolygon.cascaded_union property. * Added support for GEOS line merge as merged property on LineString, and MultiLineString geometries. Thanks, Paul Smith. * No longer use the deprecated C API for serialization to/from WKB and WKT. Now use the GEOS I/O classes, which are now exposed as WKTReader, WKTWriter, WKBReader, and WKBWriter (which supports 3D and SRID inclusion) * Moved each type of geometry to their own module, eliminating the cluttered geometries.py. * Internally, all C API methods are explicitly called from a module rather than a star import.

Fixed #9557, #9877, #10222


Add/Change #9557 (no error message when using old GDAL and trying to get GEOJSON)




Change Properties
Action