set srid on geom
This commit is contained in:
parent
52e3f79053
commit
0a7e3c422f
1 changed files with 2 additions and 2 deletions
|
@ -136,10 +136,10 @@ def get_vectors(bbox, zoom, style, vec = "polygon"):
|
|||
query = """select ST_AsGeoJSON(ST_TransScale(ST_ForceRHR(ST_Intersection(way,SetSRID('BOX3D(%s %s,%s %s)'::box3d,900913))),%s,%s,%s,%s),0) as %s, 'coastline' as "natural" from
|
||||
(select (ST_Dump(ST_Multi(ST_SimplifyPreserveTopology(ST_Buffer(way,-%s),%s)))).geom as %s from
|
||||
(select ST_Union(way) as %s from
|
||||
(select ST_Buffer(the_geom, %s) as %s from
|
||||
(select ST_Buffer(SetSRID(the_geom,900913), %s) as %s from
|
||||
%s
|
||||
where
|
||||
the_geom && SetSRID('BOX3D(%s %s,%s %s)'::box3d,900913)
|
||||
SetSRID(the_geom,900913) && SetSRID('BOX3D(%s %s,%s %s)'::box3d,900913)
|
||||
) p
|
||||
) p
|
||||
where ST_Area(way) > %s
|
||||
|
|
Loading…
Add table
Reference in a new issue