[Mapbender-commits] r9078 - trunk/mapbender/http/plugins
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Sep 19 05:52:51 PDT 2014
Author: armin11
Date: 2014-09-19 05:52:51 -0700 (Fri, 19 Sep 2014)
New Revision: 9078
Modified:
trunk/mapbender/http/plugins/mb_metadata_server.php
Log:
Bugfix for parsing polygons
Modified: trunk/mapbender/http/plugins/mb_metadata_server.php
===================================================================
--- trunk/mapbender/http/plugins/mb_metadata_server.php 2014-09-18 15:41:14 UTC (rev 9077)
+++ trunk/mapbender/http/plugins/mb_metadata_server.php 2014-09-19 12:52:51 UTC (rev 9078)
@@ -115,7 +115,7 @@
//count surfaceMembers
$numberOfSurfaces = count(DOMNodeListObjectValuesToArray($xpath->query('/gml:MultiSurface/gml:surfaceMember')));
for ($k = 0; $k < $numberOfSurfaces; $k++) {
- $polygonalExtentExterior[] = extractPolygonArray($xpath, '/gml:MultiSurface/gml:surfaceMember');
+ $polygonalExtentExterior[] = extractPolygonArray($xpath, '/gml:MultiSurface/gml:surfaceMember['. (string)($k + 1) .']');
}
} else {
$polygonalExtentExterior[0] = extractPolygonArray($xpath, '/');
More information about the Mapbender_commits
mailing list