File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,9 @@ 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+ GEOSGeometry * lr ;
241+ GEOSGeometry * bb ;
242+
242243 GEOSCoordSeq_setX (cs ,0 ,extent -> minx );
243244 GEOSCoordSeq_setY (cs ,0 ,extent -> miny );
244245 GEOSCoordSeq_setX (cs ,1 ,extent -> maxx );
@@ -249,6 +250,10 @@ GEOSGeometry * mapcache_extent_to_GEOSGeometry(const mapcache_extent *extent)
249250 GEOSCoordSeq_setY (cs ,3 ,extent -> maxy );
250251 GEOSCoordSeq_setX (cs ,4 ,extent -> minx );
251252 GEOSCoordSeq_setY (cs ,4 ,extent -> miny );
253+
254+ lr = GEOSGeom_createLinearRing (cs );
255+ bb = GEOSGeom_createPolygon (lr , NULL , 0 );
256+
252257 return bb ;
253258}
254259
You can’t perform that action at this time.
0 commit comments