Opened 6 years ago

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

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by kenichi.ueda@…

Tiny fix to JSON-recognizing regex

comment:1 Changed 6 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 6 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.

Add Comment

Modify Ticket

Change Properties
<Author field>
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.