MapServer GetFeatureInfo
Bart van den Eijnden
bartvde at XS4ALL.NL
Tue Oct 18 22:30:53 PDT 2005
Hi Bruce,
use info_format and not format.
http://slkapps2.env.gov.bc.ca/mapserver/libcwms?service=wms&request=getFeatureInfo&version=1.1.1&layers=NTS_BC_COASTLINE_POLYS_125M&query_layers=NTS_BC_COASTLINE_POLYS_125M&width=500&height=500&bbox=300000,300000,1400000,1400000&x=200&y=200&info_format=application/vnd.ogc.gml
Your output is empty then, so you most likely need to add DUMP TRUE to
your LAYER definition.
Hope this helps.
Best regards,
Bart
> I have a map service and would like to use the GetFeatureInfo command. I
> find that I can get a result in text but not GML.
>
> Works:
> http://slkapps2.env.gov.bc.ca/mapserver/libcwms?service=wms&request=getFeatureInfo&version=1.1.1&layers=NTS_BC_COASTLINE_POLYS_125M&query_layers=NTS_BC_COASTLINE_POLYS_125M&width=500&height=500&bbox=300000,300000,1400000,1400000&x=200&y=200&info_format=text/plain
>
> Fails:
> http://slkapps2.env.gov.bc.ca/mapserver/libcwms?service=wms&request=getFeatureInfo&version=1.1.1&layers=NTS_BC_COASTLINE_POLYS_125M&query_layers=NTS_BC_COASTLINE_POLYS_125M&width=500&height=500&bbox=300000,300000,1400000,1400000&x=200&y=200&format=application/vnd.ogc.gml
>
> Any suggestions as to how I can get this to work?
>
More information about the MapServer-users
mailing list