Skip to content

Instantly share code, notes, and snippets.

@m-kuhn
Last active June 13, 2019 05:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
>>> mp1 = QgsGeometry.fromWkt('MULTIPOINT (10 40, 40 30, 20 20, 30 10) ')
>>> print(mp1)
<QgsGeometry: MultiPoint ((10 40),(40 30),(20 20),(30 10))>
>>> type(mp1)
<class 'qgis._core.QgsGeometry'>
>>> mp2 = QgsGeometry.fromWkt('MULTIPOINT(POINT(4 6),POINT(7 10))')
>>> print(mp2)
<QgsGeometry: MultiPoint ((4 6),(7 10))>
>>> type(mp2)
<class 'qgis._core.QgsGeometry'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment