Skip to content

Instantly share code, notes, and snippets.

@m-kuhn
Last active Jun 13, 2019
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