[Mapbender-users] problems with the jpl-wms
Armin Retterath
armin.retterath at lvermgeo.rlp.de
Wed Aug 29 03:51:42 EDT 2007
hi christian,
You have 2 possibilities to include the service:
loadWMS in the admin1 gui or by using the addwms module in the graphical
guis.
Loading the URL by using both modules doesnt make any problems in normal
environments. Your problem is that you cannot ope the capabilities files
with the libapache2-phpX module. You use http connections in your
mapbender.conf file. Mostly its better to use the curl connection.
Therefor you need the libcurl and php5-curl libraries. After installing
this libraries you must restart your webserver. If your are behind any
proxy you must define this in your mapbender.conf! In your conf file
there is no proxy defined. Therewy you mapbender cannot connect to the
server and get the capabilities file.
Another way to register the services is to load an local xml file
(capabilities-file) in mapbender (using the modul loadWMS in admin1).
The file must be readable for the apache webserver! If you have any
further questions:
0261/492-466
greetings
armin
Am Mittwoch, den 29.08.2007, 09:09 +0200 schrieb
Christian.Strobl at dlr.de:
>
> 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;
> ?>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
--
Armin Retterath
Kompetenz- und Geschäftsstelle
Geodateninfrastruktur Rheinland-Pfalz
beim LVermGeo-RP
Ferdinand-Sauerbruch-Straße 15
56073 Koblenz
Telefon: +49 (0)261/492-466
Fax: +49 (0)261/492-492
E-Mail: armin.retterath at lvermgeo.rlp.de
http://www.geoportal.rlp.de
More information about the Mapbender_users
mailing list