Opened 7 years ago

Closed 7 years ago

#28392 closed Bug (fixed)

GIS's WKT regex doesn't match large scientific notation

Reported by: Greg Larmore Owned by: nobody
Component: GIS Version: dev
Severity: Normal Keywords:
Cc: Sergey Fedoseev Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Large numbers using scientific notation do not get matched by the regex in django/django/contrib/gis/geometry/regex.py.

For example loading a database with the entry "SRID=4326;POINT (0.0 1.0e+10)" gives the following error:

ValueError: Problem installing fixture './temp.json': String or unicode input unrecognized as WKT EWKT, and HEXEWKB.

Change History (3)

comment:1 by Tim Graham, 7 years ago

Easy pickings: unset
Needs tests: set
Summary: Regex does not match large scientific notationGIS's WKT regex doesn't match large scientific notation
Triage Stage: UnreviewedAccepted

comment:2 by Sergey Fedoseev, 7 years ago

Cc: Sergey Fedoseev added
Needs tests: unset

comment:3 by Tim Graham <timograham@…>, 7 years ago

Resolution: fixed
Status: newclosed

In a0b4ecc:

Fixed #28392 -- Fixed GIS's WKT regex to match large scientific notation numbers.

Thanks Greg Larmore for report and initial patch.

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