Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created May 17, 2012 22:49
Show Gist options
  • Save springmeyer/2722116 to your computer and use it in GitHub Desktop.
Save springmeyer/2722116 to your computer and use it in GitHub Desktop.
test mapnik's tokenization of extent strings
>>> mapnik.PostGIS(dbname='haiti',table='(select * from planet_osm_line limit 3) as t',extent='1 2 3 4').envelope()
Box2d(1.0,2.0,3.0,4.0)
>>> mapnik.PostGIS(dbname='haiti',table='(select * from planet_osm_line limit 3) as t',extent='1 2,3 4').envelope()
Box2d(1.0,2.0,3.0,4.0)
>>> mapnik.PostGIS(dbname='haiti',table='(select * from planet_osm_line limit 3) as t',extent='1,2,3,4').envelope()
Box2d(1.0,2.0,3.0,4.0)
>>> mapnik.PostGIS(dbname='haiti',table='(select * from planet_osm_line limit 3) as t',extent='1 2 3 4').envelope()
Box2d(1.0,2.0,3.0,4.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment