You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Author Name: Mike Taves (Mike Taves)
Original Redmine Issue: 16217
Affected QGIS version: 2.18.3
Redmine category:unknown
This bug was "discovered with the QuickWKT plug-in":https://github.com/elpaso/quickwkt/blob/master/QuickWKT.py#L240 with copy/paste from Excel, which uses tabs delimiters when pasting into a text window. For example, "POINT (180398 5459331)", where the whitespace in between the two values is a tab character, is considered by the QGIS WKT parser as invalid (it is not).
From a QGIS Python console:
1. With space, there are no problems
geom = QgsGeometry.fromWkt("POINT (180398 5459331)")
print(geom is not None) # True
1. With tab, it does not read the WKT
geom = QgsGeometry.fromWkt("POINT (180398\\t5459331)")
print(geom is not None) # False
Most other WKT parsers (PostGIS, GEOS, etc.) are more relaxed, and handle any whitespace without issue
(E.g. "SELECT ST_AsEWKT(E'SRID = 123;
POINT
(1\t
3)'::geometry);" works)
The text was updated successfully, but these errors were encountered:
Author Name: Mike Taves (Mike Taves)
Original Redmine Issue: 16217
Affected QGIS version: 2.18.3
Redmine category:unknown
This bug was "discovered with the QuickWKT plug-in":https://github.com/elpaso/quickwkt/blob/master/QuickWKT.py#L240 with copy/paste from Excel, which uses tabs delimiters when pasting into a text window. For example, "POINT (180398 5459331)", where the whitespace in between the two values is a tab character, is considered by the QGIS WKT parser as invalid (it is not).
From a QGIS Python console:
Most other WKT parsers (PostGIS, GEOS, etc.) are more relaxed, and handle any whitespace without issue
(E.g. "SELECT ST_AsEWKT(E'SRID = 123;
POINT
(1\t
3)'::geometry);" works)
The text was updated successfully, but these errors were encountered: