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 , 7 years ago
Easy pickings: | unset |
---|---|
Needs tests: | set |
Summary: | Regex does not match large scientific notation → GIS's WKT regex doesn't match large scientific notation |
Triage Stage: | Unreviewed → Accepted |
Note:
See TracTickets
for help on using tickets.
PR