[Mapbender-users] Uploading WMS capabilities of GeoServer

Michael Schulz mschulz at webgis.de
Mon Mar 29 12:27:03 EDT 2010


Hi Jonas,

one another try: geoserver sometimes publishes around 3000 epsg codes in the
cetcapabilities document. In newer geoserver version you can define a
customized list of epsgs codes. I think sometiems mapbender will stumble
across the 3000 epsg codes ....

Cheers, Michael

2010/3/29 Jonas Blasques <tilakapash at gmail.com>

> Thanks for the quick answer Michael,
>
> I did what you tried and the response is the same although it is now 10X
> faster, meaning when I hit the submit button to load the wms it straight
> away returns an HTML output and before it was dead slow (I don't know if
> this has anything to do with it but i thought of telling you).
>
> Below are the location to which the form of the "upload wms" is sent to
> together with the post parameteres.
> I also send the request header and the response header.
> *
> *I checked the mapbender php modules - mod_loadcapabilities and the
> mod_load_wms and the postgres db and saw that the WMS is not being uploaded
> to the table wms of the db as is intended with the writeObjInDB($guiList)
> function*.
>
> *I think that the code:
>
> "
> $mywms = new wms();
> $mywms->createObjFromXML($xml);
> $mywms->writeObjInDB($guiList);
> $mywms->displayWMS();
> "
>
> has problems wiith the function createObjFromXML($xml)
> The parameter $xml seems to be ok (
> http://localhost/mapbender/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
> ).
> I say this because I do var_dumps up to the point after this line and then
> no more. I don't know if this is helpful or not.
>
> Any further help is deeply appreciated Michael,
>
> Jonas
> *
>
> LOCATION WITH PARAMETERS
>
> *
> http://localhost/mapbender/php/mod_loadwms.php?&guiID=admin_en_services&elementID=loadWMS&guiList=fdsafdsafdsa&xml_file=http%3A%2F%2Flocalhost%2Fmapbender%2Fwms%3FREQUEST%3DGetCapabilities%26SERVICE%3DWMS%26VERSION%3D1.1.1
> *
>
> REQUEST HEADER
> *Host: localhost
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.2)
> Gecko/20100316 Firefox/3.6.2 (.NET CLR 3.5.30729) FirePHP/0.4
> Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
> Accept-Language: en-us,en;q=0.5
> Accept-Encoding: gzip,deflate
> Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive: 115
> Connection: keep-alive
> Referer:
> http://localhost/mapbender/php/mod_loadCapabilities.php?&guiID=admin_en_services&elementID=loadWMS
> Cookie: PHPSESSID=8lpi7smghkuntptleva7rr5ee7
>
> *RESPONSE HEADER
> *Date: Mon, 29 Mar 2010 14:32:02 GMT
> Server: Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l
> mod_autoindex_color PHP/5.3.1 mod_jk/1.2.28 mod_apreq2-20090110/2.7.1
> mod_perl/2.0.4 Perl/v5.10.1
> X-Powered-By: PHP/5.3.1
> Expires: Thu, 19 Nov 1981 08:52:00 GMT
> Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
> pre-check=0
> Pragma: no-cache
> Vary: Accept-Encoding,User-Agent
> Content-Encoding: gzip
> Content-Length: 104
> Keep-Alive: timeout=5, max=100
> Connection: Keep-Alive
> Content-Type: text/html*
>
> RESPONSE BODY*
> file:
> http://localhost/mapbender/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
> *
>
> *
>
> On Mon, Mar 29, 2010 at 1:29 PM, Michael Schulz <mschulz at webgis.de> wrote:
>
>> Hi Jonas,
>>
>> is Mapbender running on localhost as well? Which connection type did
>> you configure in mapbender.conf, http or curl? If you are using a
>> recent Mapbender 2.6, try to use type curl and add localhost to the
>> NOT_PROXY_HOSTS parameter. Check if this solves your problem.
>>
>> Cheers, Michael
>>
>>
>> 2010/3/29 Jonas Blasques <tilakapash at gmail.com>:
>> > Hello,
>> >
>> > I am trying to load the WMS capabilities of the GeoServer sitting in my
>> > Localhost.
>> >
>> > I followed all the steps from the mapbender tutorial (created new blank
>> GUI
>> > and then did load WMS).
>> >
>> > I used the following URL:
>> >
>> >
>> http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>> >
>> > and it gives the xml file which I send in attachment.
>> >
>> > However in the mapbender interface when I submit this url the response
>> is
>> > just a line:
>> >
>> > file:
>> >
>> http://localhost:8080/geoserver/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1
>> >
>> > It does and says nothing else.
>> >
>> > Not much of an error response. I have absolutely no idea what is wrong.
>> > Can someone help ?
>> >
>> > Jonas
>> >
>> >
>> >
>> >
>> >
>> > --
>> > "Ajude um pouco ... já é muito"
>> > Projecto SOSIndia http://sosindia.net
>> > ---------------------------------------------
>> >
>> > Shoot for the moon,
>> > even if you miss it
>> > you will land among the stars.
>> > - Unknown
>> >
>> > -------------------------------------------------
>> >
>> > What if for a moment, as an experiment,
>> > you drop every belief that you have?
>> > - Unknown
>> >
>> > ---------------------------------------------------------------
>> >
>> > "We are all linked by a fabric of unseen connections. This fabric is
>> > constantly changing and evolving. This field is directly structured and
>> > influenced by our behavior and by our understanding."
>> > —David Bohm, quantum physicist, 1917–1992
>> >
>> > _______________________________________________
>> > Mapbender_users mailing list
>> > Mapbender_users at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapbender_users
>> >
>> >
>>
>>
>>
>> --
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Aufwind durch Wissen!
>>
>> Qualifizierte Open Source Schulungen bei der
>> http://www.foss-akademie.de/
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> -----------------------------------------------------------
>> Michael Schulz
>> mschulz at webgis.de
>>
>> in medias res
>> Gesellschaft für Informationstechnologie mbH
>>
>> Schwimmbadstraße 2
>> D-79100  Freiburg i. Br.
>>
>> Tel:  +49 (0)761 705798-102
>> Tel:  +49 (0)761 705798-0
>> Fax: +49 (0)761 705798-09
>>
>> http://www.webgis.de / http://www.zopecms.de
>> --------------------------------------------------------------
>> Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
>> Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
>> _______________________________________________
>> Mapbender_users mailing list
>> Mapbender_users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>>
>
>
>
> --
> "Ajude um pouco ... já é muito"
> Projecto SOSIndia http://sosindia.net
> ---------------------------------------------
>
> Shoot for the moon,
> even if you miss it
> you will land among the stars.
> - Unknown
>
> -------------------------------------------------
>
> What if for a moment, as an experiment,
> you drop every belief that you have?
> - Unknown
>
> ---------------------------------------------------------------
>
> "We are all linked by a fabric of unseen connections. This fabric is
> constantly changing and evolving. This field is directly structured and
> influenced by our behavior and by our understanding."
> —David Bohm, quantum physicist, 1917–1992
>
> _______________________________________________
> Mapbender_users mailing list
> Mapbender_users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapbender_users
>
>


-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Aufwind durch Wissen!

Qualifizierte Open Source Schulungen bei der
http://www.foss-akademie.de/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-----------------------------------------------------------
Michael Schulz
mschulz at webgis.de

in medias res
Gesellschaft für Informationstechnologie mbH

Schwimmbadstraße 2
D-79100  Freiburg i. Br.

Tel:  +49 (0)761 705798-102
Tel:  +49 (0)761 705798-0
Fax: +49 (0)761 705798-09

http://www.webgis.de / http://www.zopecms.de
--------------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapbender_users/attachments/20100329/4e5a967f/attachment.html


More information about the Mapbender_users mailing list