AW: [Mapbender-users] print of extern wms

Leukert, Boris boris.leukert at wald-und-holz.nrw.de
Tue May 19 10:03:59 EDT 2009


Hallo v.botz,
versuch doch bitte mal folgende Einträge in der mapbender.conf zu ändern:

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

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

define("CONNECTION_PROXY", "10.214.33.1");
define("CONNECTION_PORT", "8080");
define("CONNECTION_USER", "<user>");
define("CONNECTION_PASSWORD", "<password>"); 

Der Eintrag für CONNECTION "http" wurde auskommentiert und der Eintrag
für "curl" aktiviert.
Die Einträge bezüglich der IP und Port müssen natürlich auf deinen Proxy
angepasst werden. Erfordert der Proxy eine Anmeldung müssen auch user und
Passwort angegeben werden.

Viele Grüße, Boris

-----Ursprüngliche Nachricht-----
Von: mapbender_users-bounces at lists.osgeo.org [mailto:mapbender_users-bounces at lists.osgeo.org] Im Auftrag von v.botz
Gesendet: Dienstag, 19. Mai 2009 15:53
An: Mapbender_users at lists.osgeo.org
Betreff: [Mapbender-users] print of extern wms


hi liste,

ich habe folgendendes Problem mit der Druckausgabe für DIN A4 - normale
Auflösung:

- interne WMS aus VM werden dargestellt und auch gedruckt (also lokale
Daten)
- externe WMS werden dargestellt aber nicht gedruckt.
> das erzeugte png enthält nur die internen WMS

Fehlermeldung in mb_error.log:
2009.05.19, 10:00:37,ERROR: connector: unable to load: 
http://www.geodaten2.rlp/cgi-bin/premiumdop.cgi?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=dop20%3Adop,dop20%3Ametadop&STYLES=,&SRS=EPSG:31467&BBOX=3364161.410810268,5538597.690343915,3364335.440439898,5538711.028968254&WIDTH=714&HEIGHT=465&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage

2009.05.19, 10:00:37,ERROR: weldMaps2PNG: unable to load image: 
http://www.geodaten2.rlp/cgi-bin/premiumdop.cgi?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=dop20%3Adop,dop20%3Ametadop&STYLES=,&SRS=EPSG:31467&BBOX=3364161.410810268,5538597.690343915,3364335.440439898,5538711.028968254&WIDTH=714&HEIGHT=465&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage

2009.05.19, 10:00:37,ERROR: weldMaps2PNG: unable to load image: 
http://www.geodaten2.rlp/cgi-bin/premiumdop.cgi?VERSION=1.1.1&REQUEST=GetMap&SERVICE=WMS&LAYERS=dop20%3Adop,dop20%3Ametadop&STYLES=,&SRS=EPSG:31467&BBOX=3364161.410810268,5538597.690343915,3364335.440439898,5538711.028968254&WIDTH=714&HEIGHT=465&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&EXCEPTIONS=application/vnd.ogc.se_inimage

>> Wenn ich die Links in den Browser kopiere erhalte ich das richtige Bild
>> angezeigt...<

> Ich benutze keine ows- oder security-proxy...
>> Kommt der Fehler vielleicht daher ??

Ich habe die Anpassungen in der class_weldMaps2PNG.php lt. 
http://n2.nabble.com/class-weldMaps2PNG%2C-transparency-issues-(multiple-adding-of-PNG-to-PDF)-td2060446.html 
http://n2.nabble.com/class-weldMaps2PNG%2C-transparency-issues-(multiple-adding-of-PNG-to-PDF)-td2060446.html   
angepasst - bringt aber auch nichts...


Jetzt gehen mir die Ideens aus....
Hat noch jemand eine ??

Fehlermeldungen in der mb_error.log sind ja analog thread
http://n2.nabble.com/Problem-printPDF---nur-wei%C3%9Fes-png-td2525663.html#a2527238
http://n2.nabble.com/Problem-printPDF---nur-wei%C3%9Fes-png-td2525663.html#a2527238 
> hier ging es ja um den hosts eintrag...
>> wie kann ich aber eine ip für einen host eintragen, die ich nit kenn ??

-----------------------------------------------------------

umgebung:
- gisvm mit ubuntu 8.x
- mapbender 2.5.0
- proxy eingetragen in php.ini, mapbender.conf und im system, sowie im
firefox
- wms wurde direkt / nicht per mapfile eingebaut.

-----------------------------------------------------------

Offensichtlich komme ich zum Browsen raus - zum Rendern aber nit !!
> Wo kann ich denn noch einen Proxy eintragen ?
> Muß ich doch den ows-proxy nutzen ?

Vielleicht hat ja noch jemand ne idee...

DANK   v.botz

======================================================
======================================================
hi list,

i have got the following problem with printing DIN A4 - normal solution -
PDF`s:
- wms from my systems are possible to print
- extern wms could be viewed but not printed
> the created png includes only a white png

ERRORS in mb_error.log:
2009.05.19, 10:00:37,ERROR: connector: unable to load: ...
2009.05.19, 10:00:37,ERROR: weldMaps2PNG: unable to load image: ...
2009.05.19, 10:00:37,ERROR: weldMaps2PNG: unable to load image: ...

If i put the links in a browser it works fine and i got the picture.

i do not use ows- or security proxy.

SYSTEM:
- GIS_VM with ubuntu 8.x
- mapbender 2.5.0
- proxy in php.ini, mapbender.conf, firefox and system

----

It looks like i
- could get out to browse
- could not get out of my system to render the png`s

> Where else should i sign the proxy in ??
> Have i to use the ows-proxy ?

thanks v.botz





-- 
View this message in context: http://n2.nabble.com/print-of-extern-wms-tp2939652p2939652.html
Sent from the mapbender-users mailing list archive at Nabble.com.

_______________________________________________
Mapbender_users mailing list
Mapbender_users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapbender_users


More information about the Mapbender_users mailing list