Commit 2de28701 authored by Mario Chirinos Colunga's avatar Mario Chirinos Colunga 💬

wkt box

parent 12e249ff
...@@ -25,6 +25,7 @@ def getWKTPolygonBoundingBox(polygon, wkt=False): ...@@ -25,6 +25,7 @@ def getWKTPolygonBoundingBox(polygon, wkt=False):
uly = box[3] uly = box[3]
lrx = box[1] lrx = box[1]
lry = box[2] lry = box[2]
if(wkt): if(wkt):
return "POLYGON(("+str(ulx)+" "+str(uly)+","+str(lrx)+" "+str(uly)+","+str(lrx)+" "+str(lry)+","+str(ulx)+" "+str(lry)+","+str(ulx)+" "+str(uly)+"))" return "POLYGON(("+str(ulx)+" "+str(uly)+","+str(lrx)+" "+str(uly)+","+str(lrx)+" "+str(lry)+","+str(ulx)+" "+str(lry)+","+str(ulx)+" "+str(uly)+"))"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment