[mapserver-users] GetFeatureInfo in XML
paalkr
pal.kristensen at statkart.no
Tue May 5 14:01:43 PDT 2009
Hi!
This is something that I'm interested in as well, could I please ask you to
share your featureinfo_nsg.xml? I would like to have a look at it to get
some hints on how to set up a XML template.
BTW: I think you can expose a new InfoFormat by setting the
wms_feature_info_mime_type keyword in the web metadata section of your
mapfile.
Regards,
Pål Kristensen
Sven Schroeter wrote:
>
> Hi all,
> I am currently experimenting with Web Map Services and a custom PHP
> wrapper.
> In this script for a GetFeatureInfo-Request with
> info_format=application/vnd.ogc.wms_xml or info_format=text/xml a XML
> document is generated.
> This works well, a XML-template is set in the mapfile dynamically:
> ...
> if($k == 'info_format' & ($v == 'application/vnd.ogc.wms_xml' || $v ==
> 'text/xml')){
> $layer = $oMap->getLayerByName($layername);
> $layer->set("template", "template/featureinfo_nsg.xml");
> ...
> }
> ...
>
> Two questions:
> 1. Is it possible to get a featureInfo-Request in xml native by mapserver
> (no gml)
> 2. How can I tell mapserver to enhance the list of capabilities to xml? At
> this time there comes only
> ...
> <GetFeatureInfo>
> <Format>text/plain</Format>
> <Format>text/html</Format>
> <Format>application/vnd.ogc.gml</Format>
> <DCPType>
> ...
>
> Thanks
> Sven
>
>
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-----
Regards,
Pål Kristensen
--
View this message in context: http://n2.nabble.com/GetFeatureInfo-in-XML-tp2787413p2806255.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list