Hi Rahkonen

I did add &service=WMS to the request. See below. The thing is that the XML 
returned contains these weird ns0:, ns1: (which I’m reading now pertains to 
namespaces)

 

When I ran the same request against  http://wms.dbsgeo.com/ the XML returned is 
devoid of these pesky ns0: additions. I think this is what stops the WMS client 
from properly parsing the XML file returned from my server for the 
capabilities. I still think it all has to do with the way my server responds to 
this request. How can I suppress that?

 

Thanks.

 

Jome

 

 

From: Rahkonen Jukka [mailto:[email protected]] 
Sent: Wednesday, August 12, 2009 3:17 PM
To: Jome Akpoduado; [email protected]
Subject: Re: [Mapnik-users] I'm having problems with the XML returned 
inresponse to GetCapabilities

 

Hi

 

Add &service=WMS to the request.

http://greenstreamsa.com/wms.py?service=WMS 
<http://greenstreamsa.com/wms.py?service=WMS&VERSION=1.1.1&REQUEST=GetCapabilities>
 &VERSION=1.1.1&REQUEST=GetCapabilities

 

It is good to have it always in GetMap requests against all the WMS servers 
even it may be not compulsory according to the standard.

 

-Jukka Rahkonen-

 

 


  _____  


Jome Akpoduado  wrote:

Hi all,

So far I think I’ve made some progress in setting up a WMS server (basic). I 
can get images when I make I url mapping request like so …
http://greenstreamsa.com/wms.py?VERSION=1.1.1 
<http://greenstreamsa.com/wms.py?VERSION=1.1.1&REQUEST=GetMap&LAYERS=__all__&FORMAT=image/png&SRS=EPSG:4326&STYLES=&BBOX=-90,-20,40,40&EXCEPTIONS=application/vnd.ogc.se_inimage&width=1024&height=768>
 
&REQUEST=GetMap&LAYERS=__all__&FORMAT=image/png&SRS=EPSG:4326&STYLES=&BBOX=-90,-20,40,40&EXCEPTIONS=application/vnd.ogc.se_inimage&width=1024&height=768

 

Now when I want to use a WMS client (Nice Map Drupal module) to get 
capabilities, no results come back. When I run the same url nice map runs, I do 
get an XML output (http://greenstreamsa.com/wms?request=GetCapabilities 
<http://greenstreamsa.com/wms?request=GetCapabilities&service=WMS> 
&service=WMS). See an excerpt below.

 

 <ns0:WMS_Capabilities version="1.3.0" 
ns1:schemaLocation="http://www.opengis.net/wms 
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd";>

−

<ns0:Service>

<ns0:Name>WMS</ns0:Name>

<Title>Oilwatch Mapping Server</Title>

 

When I run the same getCapabilities against a WMS server example Dane kindly 
pointed to me, I get this output

 

<WMS_Capabilities version="1.3.0" 
xsi:schemaLocation="http://www.opengis.net/wms 
http://schemas.opengis.net/wms/1.3.0/capabilities_1_3_0.xsd";>

−

<Service>

<Name>WMS</Name>

<Title>MapnikOGC</Title>

<Abstract>The Mapnik OGC Server Sample Configuration</Abstract>

 

Straightaway, I noticed that my xml output contains “ns0:” which I honestly 
have no clue what it is… (I’m very green when it comes to xml)

This leads me to think it must be some settings issue with my server.

Any ideas how this can be fixed?

 

Many thanks…

 

 

Jome.

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to