Skip to content

Commit 75f87fa

Browse files
authored
Fix: Allow scientific notation within WKT string (#573)
1 parent 8653df3 commit 75f87fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

geoalchemy2/elements.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class WKTElement(_SpatialElement):
130130
__slots__ = ()
131131

132132
_REMOVE_SRID = re.compile("(SRID=([0-9]+); ?)?(.*)")
133-
SPLIT_WKT_PATTERN = re.compile(r"((SRID=\d+) *; *)?([\w ]+) *(\([-\d\. ,\(\)]+\))")
133+
SPLIT_WKT_PATTERN = re.compile(r"((SRID=\d+) *; *)?([\w ]+) *(\([-\d\. ,\(\)eE]+\))")
134134

135135
geom_from: str = "ST_GeomFromText"
136136
geom_from_extended_version: str = "ST_GeomFromEWKT"

0 commit comments

Comments
 (0)