AW: [mapserver-users] [wms] How to get gml/xml results from a GetFeatureInfo on OpenStreetMap?

Arnd Wippermann arnd.wippermann at web.de
Fri Apr 9 14:29:02 EDT 2010


Hi,

In your layer declaration add DUMP TRUE and choose
INFO_FORMAT=application/vnd.ogc.gml in the WMS request.

Part from the WMS GetCapabilities Request

    <GetFeatureInfo>
      <Format>text/plain</Format>
      <Format>text/html</Format>
      <Format>application/vnd.ogc.gml</Format>

Arnd 

-----Ursprüngliche Nachricht-----
Von: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Mulone
Gesendet: Freitag, 9. April 2010 17:34
An: mapserver-users at lists.osgeo.org
Betreff: [mapserver-users] [wms] How to get gml/xml results from a
GetFeatureInfo on OpenStreetMap?


Hi guys,
I have a mapserver rendering OpenStreetMap data.
On the GetFeatureInfo the server returns plain text like:

Layer 'landuse_layer3' 
Feature 0: 
osm_id = '23258206' 
amenity = 'college' 
aeroway = '' 
name = 'Stillorgan College of Further Education' 

Layer 'building' 
Feature 0: 
osm_id = '23258205' 
name = '' 

[...]


I'd like to get GML or basic xml code instead of this and I suppose I have
to create a template of some sort.
Unfortunately I was unable to find doc or threads related to this.

Any hints/examples?

Cheers

-----
Mulone
PhD student
--
View this message in context:
http://n2.nabble.com/wms-How-to-get-gml-xml-results-from-a-GetFeatureInfo-on
-OpenStreetMap-tp4877772p4877772.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the mapserver-users mailing list