Opened 8 years ago

Closed 8 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: UI/UX:


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@… 8 years ago.
Tiny fix to JSON-recognizing regex

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by kenichi.ueda@…

Tiny fix to JSON-recognizing regex

comment:1 Changed 8 years ago by jbronn

  • Keywords gis ogr geojson added
  • Needs documentation unset
  • Needs tests set
  • Owner changed from nobody to jbronn
  • Patch needs improvement unset
  • Status changed from new to assigned

comment:2 Changed 8 years ago by jbronn

  • Resolution set to fixed
  • Status changed from assigned to closed

(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