[Mapbender-commits] r10319 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Wed Nov 6 06:39:10 PST 2019


Author: armin11
Date: 2019-11-06 06:39:10 -0800 (Wed, 06 Nov 2019)
New Revision: 10319

Modified:
   trunk/mapbender/http/classes/class_iso19139.php
Log:
Don't try to resolve crs object, if service metadata is given or crs is empty.

Modified: trunk/mapbender/http/classes/class_iso19139.php
===================================================================
--- trunk/mapbender/http/classes/class_iso19139.php	2019-11-06 14:15:47 UTC (rev 10318)
+++ trunk/mapbender/http/classes/class_iso19139.php	2019-11-06 14:39:10 UTC (rev 10319)
@@ -527,9 +527,11 @@
 			$this->refSystem = $this->refSystem[0];
 			//parse codes to get EPSG:XXXXX TODO use other function to support other codes
 			//get last part of string separated by the colon symbol
-			$crsObject = new Crs($this->refSystem);
-			$epsgId = $crsObject->identifierCode;
-			$this->refSystem = "EPSG:".$epsgId;
+			if ($this->hierarchyLevel != 'service' && $this->hierarchyLevel != '') {
+			    $crsObject = new Crs($this->refSystem);
+			    $epsgId = $crsObject->identifierCode;
+			    $this->refSystem = "EPSG:".$epsgId;
+			}
 			//debug output of keywords:
 			/*$iKeyword = 0;
 			foreach($this->keywords as $keyword) {  



More information about the Mapbender_commits mailing list