Skip to content

Instantly share code, notes, and snippets.

@bixb0012
Last active July 31, 2019 18:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bixb0012/6139d1ffc1c81c09116ae8af7fb58ea3 to your computer and use it in GitHub Desktop.
Save bixb0012/6139d1ffc1c81c09116ae8af7fb58ea3 to your computer and use it in GitHub Desktop.
Python: Dictionary of WKT Test Geometries
#!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'
}
#
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment