[Geoserver-users] How to have a wms getFeatureInfo in xml

Hello everybody,

I want to know if it’s possible to have the response of a wms getFeatureInfo request in xml and if it’s possible to make the same request but for more than one layer.

I try INFO_FORMAT=text/xml but that doesn’t work.

Thanks

Jim

Hi,

try

application/vnd.ogc.gml

Yes you can have more than 1 query layer.

Best regards,
Bart

Hello everybody,

I want to know if it's possible to have the response of a wms
getFeatureInfo
request in xml and if it's possible to make the same request but for more
than one layer.

I try INFO_FORMAT=text/xml but that doesn't work.

Thanks

Jim
------------------------------------------------------------------------------
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Thanks Bart,

It’s possible to have just attributes same as text/html or text/plain because application/vnd.ogc.gml give me geometry’s too and if my layer is big it’s a quit long.

Cheers,

Jim

2009/6/24 <bartvde@anonymised.com>

Hi,

try

application/vnd.ogc.gml

Yes you can have more than 1 query layer.

Best regards,
Bart

Hello everybody,

I want to know if it’s possible to have the response of a wms
getFeatureInfo
request in xml and if it’s possible to make the same request but for more
than one layer.

I try INFO_FORMAT=text/xml but that doesn’t work.

Thanks

Jim



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Unfortunately not, there is no way to limit the attributes with GML output, only HTML output.

The only way to limit the attributes would have to be done at the data level, either via a view, or using a custom schema.xsd file in a feature type directory which removes some of the attributes. But these changes would propagate everywhere, not just the result of GetFeatureInfo

-Justin

Jimmy Aumard wrote:

Thanks Bart,

It's possible to have just attributes same as text/html or text/plain because application/vnd.ogc.gml give me geometry's too and if my layer is big it's a quit long.

Cheers,

Jim

2009/6/24 <bartvde@anonymised.com <mailto:bartvde@anonymised.com>>

    Hi,

    try

    application/vnd.ogc.gml

    Yes you can have more than 1 query layer.

    Best regards,
    Bart

     > Hello everybody,
     >
     > I want to know if it's possible to have the response of a wms
     > getFeatureInfo
     > request in xml and if it's possible to make the same request but
    for more
     > than one layer.
     >
     > I try INFO_FORMAT=text/xml but that doesn't work.
     >
     > Thanks
     >
     > Jim
     >
    ------------------------------------------------------------------------------
     > _______________________________________________
     > Geoserver-users mailing list
     > Geoserver-users@lists.sourceforge.net
    <mailto:Geoserver-users@lists.sourceforge.net>
     > https://lists.sourceforge.net/lists/listinfo/geoserver-users
     >

------------------------------------------------------------------------

------------------------------------------------------------------------------

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.