[Mapbender-users] problems with the jpl-wms

Christian.Strobl at dlr.de Christian.Strobl at dlr.de
Wed Aug 29 03:09:38 EDT 2007


 

dear mapbender users,

i have problems to integrate the following wms in mapbender applications

http://wms.jpl.nasa.gov/wms.cgi?REQUEST=GetCapabilities&SERVICE=WMS&VERS
ION=1.1.1

it doesn't work for example in the mapbender gui2 neither. the demis wms
works fine. maybe my mapbender.conf misses something (see below)

thanks for every hint
christian

p.s. also the NRW: Bodenkarte BK50 or the Bavarian WMS doesn't work, so
i think it is a elementary problem of my installation

configuration:
Mapbender 2.4.2
Php Version: 5.1.4
PostgreSQL 8.1.4
POSTGIS="1.1.2" GEOS="2.2.1-CAPI-1.0.1" PROJ="Rel. 4.4.9, 29 Oct 2004"

<?php
# $Id: mapbender.conf-dist 1425 2007-06-04 08:22:49Z christoph $ #
http://www.mapbender.org/index.php/Mapbender.conf
# Copyright (C) 2002 CCGIS 
 
# --------------------------------------------
# type of mapbender database
# --------------------------------------------


#define("SYS_DBTYPE", "mysql");
define("SYS_DBTYPE", "pgsql");

# --------------------------------------------
# database information
# --------------------------------------------

if(SYS_DBTYPE=="mysql")
{
	define("DBSERVER", "<HOST>");
	define("PORT", "3306");
	define("DB", "<database>");
	define("OWNER", "<owner>");
	define("PW", "<password>");
	
	include_once("../../http/php/database-mysql.php"); 
	
	# --------------------------------------------
	# database with geos functions
	# --------------------------------------------

	define("GEOS_DBSERVER", "<HOST>");
	define("GEOS_PORT", "5432");
	define("GEOS_DB", "<database with geos functions>");
	define("GEOS_OWNER", "<owner>");
	define("GEOS_PW", "<password>");
	
}
else {
	define("DBSERVER", "localhost");
	define("PORT", "5432");
	define("DB", "mapbender");
	define("OWNER", "mapbender");
	define("PW", "mapbender");
	
	include_once("../../http/php/database-pgsql.php");
}

# --------------------------------------------
# prepared statements (PHP > 5.1.x, PostgreSQL > 7.4) #
--------------------------------------------
define("PREPAREDSTATEMENTS",true);

# --------------------------------------------
# encoding - default characterset UTF-8 / ISO-8859-1 #
--------------------------------------------
define("CHARSET","UTF-8");

# --------------------------------------------
# error_reporting
# --------------------------------------------

//ini_set('error_reporting', 'E_ALL & ~ E_NOTICE');

# --------------------------------------------
# directory for temporary files
# --------------------------------------------

define("TMPDIR", "../tmp");

# --------------------------------------------
# URL to login
# --------------------------------------------

define("LOGIN", "http://localhost/mapbender/frames/login.php");
define("MAXLOGIN", 3);
$login = LOGIN;

# --------------------------------------------
# URL to owsproxy
# (no terminating slash)
# --------------------------------------------

define("OWSPROXY", "http://<ip or name>/owsproxy");

# --------------------------------------------
# type of server-connection
# curl, socket, http
# --------------------------------------------

#define("CONNECTION", "curl");
define("CONNECTION", "http");
#define("CONNECTION", "socket");

define("CONNECTION_PROXY", "<ip>");
define("CONNECTION_PORT", "<port>");
define("CONNECTION_USER", "<user>");
define("CONNECTION_PASSWORD", "<password>");

# --------------------------------------------
# security: path to modules
# --------------------------------------------

define("CHECK", false);

# --------------------------------------------
# enable/disable portal
# --------------------------------------------

define("PORTAL", false);

# --------------------------------------------
# mail settings for internal mapbender mails # smtp mailing # for
further settings check 'class_administration.php'
# please check phpmailer for more information #
--------------------------------------------

define("USE_PHP_MAILING", "false");
define("MAILHOST", "<host>");
define("MAILUSERNAME", "<user>");
define("MAILPASSWORD", "<password>");
define("MAILADMIN", "<mailaddress of the mailadmin>");
define("MAILADMINNAME", "<mailadminname>");

$mailHost = MAILHOST;
$mailUsername =  MAILUSERNAME;
$mailPassword =  MAILPASSWORD;
 
# --------------------------------------------
# wms monitoring
# --------------------------------------------

define("AUTO_UPDATE", "0");
define("TIME_LIMIT", "300");
define("PHP_PATH", "/usr/local/bin/");

# --------------------------------------------
# Mapbender error logging
# --------------------------------------------

define("LOG_LEVEL_LIST", "off,error,warning,notice,all");
define("LOG_LEVEL", "all"); define("LOG_JS", "on"); // "on", "alert",
"console", "off"

###HACK for GLOBALS
$DBSERVER=DBSERVER;
  $DB=DB;
  $OWNER=OWNER;
  $PW=PW;
  
  $GEOS_DBSERVER=GEOS_DBSERVER;
  $GEOS_DB=GEOS_DB;
  $GEOS_PORT =GEOS_PORT;
  $GEOS_OWNER=GEOS_OWNER;
  $GEOS_PW=GEOS_PW;
?>


More information about the Mapbender_users mailing list