Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WKT Parser can't handle multipolygon with spaces #21125

Closed
qgib opened this issue Jun 30, 2015 · 2 comments
Closed

WKT Parser can't handle multipolygon with spaces #21125

qgib opened this issue Jun 30, 2015 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)

Comments

@qgib
Copy link
Contributor

qgib commented Jun 30, 2015

Author Name: Marco Bernasocchi (@mbernasocchi)
Original Redmine Issue: 13053
Affected QGIS version: master
Redmine category:vectors
Assignee: Marco Hugentobler


Looks like there is an issue is with the new geometry classes - try entering this in the python console:

g=QgsGeometry.fromWkt('MULTIPOLYGON (((62.0 18.0, 62.0 19.0, 63.0 19.0, 63.0 18.0, 62.0 18.0)), ((63.0 19.0, 63.0 20.0, 64.0 20.0, 64.0 19.0, 63.0 19.0)))')

It returns None, so the WKT can't be passed by the new geometry engine.

removing the space like:

g=QgsGeometry.fromWkt('MULTIPOLYGON (((62.0 18.0, 62.0 19.0, 63.0 19.0, 63.0 18.0, 62.0 18.0)),((63.0 19.0, 63.0 20.0, 64.0 20.0, 64.0 19.0, 63.0 19.0)))')

will make it work.

Tested on ubuntu 14.04 and 15.04

@qgib
Copy link
Contributor Author

qgib commented Jun 30, 2015

Author Name: Marco Bernasocchi (@mbernasocchi)


it is a regression, in 2.8 all works fine

@qgib
Copy link
Contributor Author

qgib commented Jul 3, 2015

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "29aaf1bad8d4ce2bd50391b886ea4116c03cf100".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats) labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Vectors Related to general vector layer handling (not specific data formats)
Projects
None yet
Development

No branches or pull requests

1 participant