[mapserver-users] GetFeatureInfo in XML

2009-05-04 Thread Sven Schroeter

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

...

text/plain
text/html
application/vnd.ogc.gml

...

Thanks
Sven





___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] GetFeatureInfo in XML

2009-05-05 Thread paalkr

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
> ...
> 
> text/plain
> text/html
> application/vnd.ogc.gml
> 
> ...
> 
> Thanks
> Sven
> 
> 
> 
> 
> 
> ___
> mapserver-users mailing list
> mapserver-users@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.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] GetFeatureInfo in XML

2009-05-06 Thread Sven Schroeter

Pål ,
I use a simple XML-File with CGI-Variables ([myvar]) like this:



 
   Naturschutzgebiet
   [name]
   [objnr]
   
http://www.naturschutz.rlp.de/dokumente/rvo/[objnr].htm
   [schutzzone]
   [erfassungsgrundlage]
   
http://www.naturschutz.rlp.de/Impressum.natur?ActiveID=1234
 


If  there is a request for xml I tell my script to set the response-header 
is XML:


...
 $buffer = ms_iogetstdoutbufferstring();
   header('Content-type: text/xml');
   echo $buffer;
...

Greetings Sven



- Original Message - 
From: "paalkr" 

To: 
Sent: Tuesday, May 05, 2009 11:01 PM
Subject: Re: [mapserver-users] GetFeatureInfo in XML



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
...

text/plain
text/html
application/vnd.ogc.gml

...

Thanks
Sven





___
mapserver-users mailing list
mapserver-users@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.

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users 



___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users