[Mapbender-commits] r8199 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu Nov 10 08:54:44 EST 2011
Author: armin11
Date: 2011-11-10 05:54:44 -0800 (Thu, 10 Nov 2011)
New Revision: 8199
Modified:
trunk/mapbender/http/php/mod_dataISOMetadata.php
trunk/mapbender/http/php/wms.php
Log:
bugfix for inspire view service
Modified: trunk/mapbender/http/php/mod_dataISOMetadata.php
===================================================================
--- trunk/mapbender/http/php/mod_dataISOMetadata.php 2011-11-09 15:25:11 UTC (rev 8198)
+++ trunk/mapbender/http/php/mod_dataISOMetadata.php 2011-11-10 13:54:44 UTC (rev 8199)
@@ -1000,7 +1000,7 @@
if ($mb_metadata['spatial_res_type'] == 'groundDistance') {
$distance = $iso19139->createElement("gmd:distance");
- $Distance = $iso19139->createElement("gmd:Distance");
+ $Distance = $iso19139->createElement("gco:Distance");
$Distance->setAttribute("uom", "http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/uom/ML_gmxUom.xml#m");
$DistanceText=$iso19139->createTextNode($mb_metadata['spatial_res_value']);
$Distance->appendChild($DistanceText);
Modified: trunk/mapbender/http/php/wms.php
===================================================================
--- trunk/mapbender/http/php/wms.php 2011-11-09 15:25:11 UTC (rev 8198)
+++ trunk/mapbender/http/php/wms.php 2011-11-10 13:54:44 UTC (rev 8199)
@@ -862,21 +862,23 @@
$res_espg_sql = db_prep_query($epsg_sql, $v, $t);
while ($epsg_row = db_fetch_array($res_espg_sql)) {
- #set only first epsg for bbox
- $bbox['epsg'] = $epsg_row['epsg'];
- $bbox['minx'] = $epsg_row['minx'];
- $bbox['miny'] = $epsg_row['miny'];
- $bbox['maxx'] = $epsg_row['maxx'];
- $bbox['maxy'] = $epsg_row['maxy'];
+ //IF ($epsg_row['epsg'] ) {
+ #set only first epsg for bbox
+ $bbox['epsg'] = $epsg_row['epsg'];
+ $bbox['minx'] = $epsg_row['minx'];
+ $bbox['miny'] = $epsg_row['miny'];
+ $bbox['maxx'] = $epsg_row['maxx'];
+ $bbox['maxy'] = $epsg_row['maxy'];
- #Creating BoundingBox node
- $boundingBox = $doc->createElement("BoundingBox");
- $boundingBox = $layer->appendChild($boundingBox);
- $boundingBox->setAttribute('SRS', $bbox['epsg']);
- $boundingBox->setAttribute('minx', $bbox['minx']);
- $boundingBox->setAttribute('miny', $bbox['miny']);
- $boundingBox->setAttribute('maxx', $bbox['maxx']);
- $boundingBox->setAttribute('maxy', $bbox['maxy']);
+ #Creating BoundingBox node
+ $boundingBox = $doc->createElement("BoundingBox");
+ $boundingBox = $layer->appendChild($boundingBox);
+ $boundingBox->setAttribute('SRS', $bbox['epsg']);
+ $boundingBox->setAttribute('minx', $bbox['minx']);
+ $boundingBox->setAttribute('miny', $bbox['miny']);
+ $boundingBox->setAttribute('maxx', $bbox['maxx']);
+ $boundingBox->setAttribute('maxy', $bbox['maxy']);
+ //}
}
More information about the Mapbender_commits
mailing list