Opened 16 years ago

Closed 16 years ago

#7540 closed (fixed)

Minus signs cause OGRGeometry JSON parsing to fail

Reported by: kenichi.ueda@… Owned by: jbronn
Component: GIS Version: gis
Severity: Keywords: gis ogr geojson
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no


The regex for recognizing a GeoJSON string doesn't accept minus signs, so when you create a new OGRGeometry with some GeoJSON that contains negative values, it throws an OGRException.

Attachments (1)

minus4json.diff (692 bytes ) - added by kenichi.ueda@… 16 years ago.
Tiny fix to JSON-recognizing regex

Download all attachments as: .zip

Change History (3)

by kenichi.ueda@…, 16 years ago

Attachment: minus4json.diff added

Tiny fix to JSON-recognizing regex

comment:1 by jbronn, 16 years ago

Keywords: gis ogr geojson added
Needs tests: set
Owner: changed from nobody to jbronn
Status: newassigned

comment:2 by jbronn, 16 years ago

Resolution: fixed
Status: assignedclosed

(In [7767]) gis: Fixed #7540 -- fixed the GeoJSON regex to accept minus signs. Thanks, Kenichi Ueda.

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