Skip to content

Instantly share code, notes, and snippets.

@allartk
Last active December 1, 2025 09:08
Show Gist options
  • Select an option

  • Save allartk/fd0facf6fb26d2bd0ccff7ac16100449 to your computer and use it in GitHub Desktop.

Select an option

Save allartk/fd0facf6fb26d2bd0ccff7ac16100449 to your computer and use it in GitHub Desktop.
Get wkt for bbox
-- NL, 28992 projection bounds as wgs84 https://epsg.io/28992
"POLYGON(({xmin} {ymin}, {xmin} {ymax}, {xmax} {ymax}, {xmax} {ymin}, {xmin} {ymin}))".format(xmin=3.2,ymin=50.75,xmax=7.22,ymax=53.7)
-- NL, 28992 projection bounds https://epsg.io/28992
"POLYGON(({xmin} {ymin}, {xmin} {ymax}, {xmax} {ymax}, {xmax} {ymin}, {xmin} {ymin}))".format(xmin=482,ymin=306602,xmax=284182,ymax=637049)
-- beetje extra buffer onder limburg
"POLYGON(({xmin} {ymin}, {xmin} {ymax}, {xmax} {ymax}, {xmax} {ymin}, {xmin} {ymin}))".format(xmin=482,ymin=280000,xmax=284182,ymax=637049)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment