Last active
July 31, 2019 18:10
-
-
Save bixb0012/6139d1ffc1c81c09116ae8af7fb58ea3 to your computer and use it in GitHub Desktop.
Python: Dictionary of WKT Test Geometries
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!python | |
# Reference: 1) https://www.opengeospatial.org/standards/sfa | |
geoms = { | |
'pt': 'POINT(10 10)', | |
'ept': 'POINT EMPTY', | |
'mpt': 'MULTIPOINT((15 15), (25 15))', | |
'empt': 'MULTIPOINT EMPTY', | |
'ln': 'LINESTRING(20 20, 30 30)', | |
'eln': 'LINESTRING EMPTY', | |
'mln': 'MULTILINESTRING((35 35, 45 45), (5 15, 15 25))', | |
'emln': 'MULTILINESTRING EMPTY', | |
'pg': ('POLYGON((10 40, 30 40, 30 60, 10 60, 10 40), ' | |
'(15 45, 15 55, 25 55, 25 45, 15 45))'), | |
'epg': 'POLYGON EMPTY', | |
'mpg': ('MULTIPOLYGON(((50 30, 70 30, 70 50, 50 50, 50 30), ' | |
'(55 35, 55 45, 65 45, 65 35, 55 35)), ' | |
'((40 10, 40 20, 50 20, 50 10, 40 10)))'), | |
'empg': 'MULTIPOLYGON EMPTY' | |
} | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment