File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,7 @@ static void _destroy_json_pool() {
237237GEOSGeometry * mapcache_extent_to_GEOSGeometry (const mapcache_extent * extent )
238238{
239239 GEOSCoordSequence * cs = GEOSCoordSeq_create (5 ,2 );
240- GEOSGeometry * lr = GEOSGeom_createLinearRing (cs );
241- GEOSGeometry * bb = GEOSGeom_createPolygon (lr ,NULL ,0 );
240+
242241 GEOSCoordSeq_setX (cs ,0 ,extent -> minx );
243242 GEOSCoordSeq_setY (cs ,0 ,extent -> miny );
244243 GEOSCoordSeq_setX (cs ,1 ,extent -> maxx );
@@ -249,6 +248,10 @@ GEOSGeometry * mapcache_extent_to_GEOSGeometry(const mapcache_extent *extent)
249248 GEOSCoordSeq_setY (cs ,3 ,extent -> maxy );
250249 GEOSCoordSeq_setX (cs ,4 ,extent -> minx );
251250 GEOSCoordSeq_setY (cs ,4 ,extent -> miny );
251+
252+ GEOSGeometry * lr = GEOSGeom_createLinearRing (cs );
253+ GEOSGeometry * bb = GEOSGeom_createPolygon (lr , NULL , 0 );
254+
252255 return bb ;
253256}
254257
You can’t perform that action at this time.
0 commit comments