Skip to content

Instantly share code, notes, and snippets.

@m-kuhn
Last active June 13, 2019 05:26
Show Gist options
  • Save m-kuhn/f8da4184a58e30bc70c075fddd257073 to your computer and use it in GitHub Desktop.
Save m-kuhn/f8da4184a58e30bc70c075fddd257073 to your computer and use it in GitHub Desktop.
>>> 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