[Mapbender-commits] r7500 - in trunk/mapbender: conf http/classes
http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jan 31 02:03:29 EST 2011
Author: armin11
Date: 2011-01-30 23:03:29 -0800 (Sun, 30 Jan 2011)
New Revision: 7500
Modified:
trunk/mapbender/conf/mapbender.conf-dist
trunk/mapbender/http/classes/class_wms.php
trunk/mapbender/http/php/mod_deleteWMS.php
Log:
Some explainations for the new conf parameters and bugfixes for the georss generator.
Modified: trunk/mapbender/conf/mapbender.conf-dist
===================================================================
--- trunk/mapbender/conf/mapbender.conf-dist 2011-01-31 07:02:34 UTC (rev 7499)
+++ trunk/mapbender/conf/mapbender.conf-dist 2011-01-31 07:03:29 UTC (rev 7500)
@@ -124,11 +124,17 @@
# --------------------------------------------
# RSS
+# Mapbender > 2.7 generates a GeoRSS file which shows the changes in the mapbender service database. The
+# GeoRSS file get entries when wms are uploaded, updated or deleted. The RSS file can be used to show the positions
+# of new layers and services on in the own mapframe or in other applications.
# --------------------------------------------
define("GEO_RSS_FILE", "../tmp/georss.xml");
#---------------------------------------------
# PREVIEW
+# This path is defined to allow a saving of preview pictures for the content of wms/layers and
+# wmc docs. The preview can generated with the wms and wmc metadata editor guis and the previews are used
+# by the metadata module and are distributed with the iso19139 files which can be generated by mapbender.
#---------------------------------------------
define("PREVIEW_DIR", "../geoportal/preview");
@@ -147,16 +153,25 @@
# --------------------------------------------
# define a public user
+# This user is a typical anonymous user which don't need to authenticate itself.
+# Some functions of the portal framework not allowed for this user.
# --------------------------------------------
define("PUBLIC_USER", "");
# --------------------------------------------
-# define a session name (useful for )
+# Define a session name (useful for installations when more than one mapbender is installed on one server.
+# These installations won't share the session but will share probably one database. When the user switch from one
+# to another installation - and there are different session names - the configuration from the session will be forgotten. There is a new environment.)
# --------------------------------------------
#define("SESSION_NAME", "MAPBENDER");
# --------------------------------------------
-# calculate bboxes for all supported SRS (Postgis needed)
+# Calculate bboxes for all supported SRS (Postgis needed)
+# This module will compute bboxes for all srs which will be found in the service capabilities and which are defined
+# in the array below. Normaly mapbender only uses bbox's which are given thru the service caps. In many use cases it is
+# needfull to have more than one bbox given (e.g. metadata). The array is defined to supress the calculation of to many
+# srs like e.g. geoserver offers. The array should include all the srs which are used in the mapbender installation and
+# which are usefull for the special community for which the installation was done (local-sdi, INSPIRE, ...)
# --------------------------------------------
#define("SRS_ARRAY", "4326, 31466, 31467, 31468, 25832");
Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php 2011-01-31 07:02:34 UTC (rev 7499)
+++ trunk/mapbender/http/classes/class_wms.php 2011-01-31 07:03:29 UTC (rev 7500)
@@ -2311,6 +2311,7 @@
foreach ($oldLayerNameArray as $oldLayer) {
$geoRssItemOldLayer = new GeoRssItem();
$geoRssItemOldLayer->setTitle("DELETED LAYER: " . $oldLayer["title"]." (".$oldLayer["id"].")");
+ $geoRssItemNewLayer->setUrl(layer::getLayerMetadataUrl($oldLayer["id"]));
$geoRssItemOldLayer->setDescription($oldLayer["abstract"]);
$geoRssItemOldLayer->setPubDate(self::rssDate());
// $geoRssItem->setUrl();
Modified: trunk/mapbender/http/php/mod_deleteWMS.php
===================================================================
--- trunk/mapbender/http/php/mod_deleteWMS.php 2011-01-31 07:02:34 UTC (rev 7499)
+++ trunk/mapbender/http/php/mod_deleteWMS.php 2011-01-31 07:03:29 UTC (rev 7500)
@@ -32,6 +32,13 @@
require_once(dirname(__FILE__)."/../classes/class_administration.php");
require_once(dirname(__FILE__)."/../classes/class_georss_factory.php");
+
+
+function getWmsMetadataUrl ($wmsId) {
+ return LOGIN."/../../mapbender/php/mod_showMetadata.php?resource=wms&id=".$wmsId;
+}
+
+
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
@@ -62,6 +69,10 @@
}
}
+
+
+
+
function suggest_deletion(email_str)
{
var ind = document.form1.wmsList.selectedIndex;
@@ -205,7 +216,7 @@
$geoRssItem = new GeoRssItem();
$geoRssItem->setTitle("DELETED WMS: ".$wms_title." (".$wmsList.")");
$geoRssItem->setDescription($wms_abstract);
- //$geoRssItem->setUrl("");
+ $geoRssItem->setUrl(getWMSMetadataUrl($wmsList));
//$timestamp = ($timestamp==null) ? time() : $timestamp;
$timestamp = date(DATE_RSS,time());
$geoRssItem->setPubDate($timestamp);
More information about the Mapbender_commits
mailing list