Opened 2 months ago

Closed 12 days 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: master
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 Changed 2 months ago by Tim Graham

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 Changed 13 days ago by Sergey Fedoseev

Cc: Sergey Fedoseev added
Needs tests: unset

comment:3 Changed 12 days ago by Tim Graham <timograham@…>

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