Bug report #16483
delimited driver - multipoint from WKT fails for geometries where all longitudes are negative
|Affected QGIS version:||2.18.3||Regression?:|
|Operating System:||ubuntu||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||24391|
when loading in a delimited file with WKT geometry of type MultiPoint, geometries are invalid if all longitude values are negative. QGIS 2.18.3.
code samples here on gis stack exchange : https://gis.stackexchange.com/a/238583/55203
this seems to be restricted to the delimited text provider; it works fine with shapefiles and geoJSON. If I split the multipoints into distinct point geometries, or use linestrings, it works.
It doesn't seem related to line length (truncation), geometry direction or the dateline issue (values of +/-180 or +/-90 for longitude and latitude).
I've also tried shuffling the points at random, applying jitter (to rule out issues with mixed int/float parsing).
It seems to be an import issue, not a rendering/projection issue.
Fix import WKT of the format MultiPoint (-20 -90, -20 -88 )
Should technically be MultiPoint ((-20 -90), (-20 -88)), but
it's nice to be forgiving and accept as wide a range of WKT
formats as possible