[mapserver-users] WMS getFeatureInfo & WFS getFeature

jjwang jaja0506 at gmail.com
Thu Sep 1 21:42:26 EDT 2011


Hello all,

I have some questions about the getFeatureInfo and getFeature request.

1.About getFeatureInfo request: Because the parameter X and Y are
compulsory, I'm assuming that it can only return one feature's info
responding to that particular point in that BBOX. Is there any way to return
all the features' info in a BBOX.

2.About getFeature request: there are two settings under layer level,
gml_exclude_items and gml_include_items. They decide the attributes will be
returned. The thing I'm not sure is whether 'gml:msGeometry' is an attribute
can be disabled. I don't need this info and it's normally very huge. So I
want to disable it but it won't work if I set: "gml_exclude_items"
"msGeometry". 

Here is an example of returned feature.
<gml:featureMember>
<ms:nt gml:id="nt.EAST ARNHEM">
<gml:boundedBy>
<gml:Envelope srsName="EPSG:4326">
<gml:lowerCorner>-11.018120 136.738210</gml:lowerCorner>
<gml:upperCorner>-11.015520 136.740950</gml:upperCorner>
</gml:Envelope>
</gml:boundedBy>
<ms:msGeometry>
<gml:Polygon srsName="EPSG:4326">
<gml:exterior>
<gml:LinearRing>
<gml:posList srsDimension="2">
-11.015520 136.738440 -11.015610 136.738800 -11.016480 136.739550 -11.017120
136.740610 -11.017570 136.740950 -11.017790 136.740950 -11.018120 136.740600
-11.017900 136.739800 -11.016310 136.738430 -11.015870 136.738210 -11.015520
136.738440
</gml:posList>
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</ms:msGeometry>
<ms:AREA>2.71360016615039E-06</ms:AREA>
<ms:PERIMETER>7.86224958640615E-03</ms:PERIMETER>
<ms:NTX101SB_>8</ms:NTX101SB_>
<ms:NTX101SB_I>8</ms:NTX101SB_I>
<ms:SUBURB>EAST ARNHEM</ms:SUBURB>
<ms:SOURCE>SENSIS</ms:SOURCE>
<ms:UFI>1696200008</ms:UFI>
</ms:nt>
</gml:featureMember>

I can disable AREA, PERIMETER, SUBURB... but not 'msGeometry'.
So is there any way to do this?

Actually I have only one purpose for asking above two questions. The
response I want should be as simple as the response of getFeatureInfo
request (not including geometry info, but it only return one particular
feature), like this
Layer 'nt'
  Feature 1009: 
    AREA = '1.65217521538399E+00'
    PERIMETER = '6.51838520180940E+00'
    NTX101SB_ = '1011'
    NTX101SB_I = '1011'
    SUBURB = 'SANDOVER'
    UFI = '1696201015'
But also it should be a list of features in a BBOX like the response of
getFeature request.

3. For both getFeatureInfo and getFeature, as far as I know, they can only
return the feature info from shape file.
But I want to know is there any way to get the class info (which applied to
this feature) I added in the map file as well. It might be hard to
understand what I mean. Let's see an example.
In map file I added some class control like this:
LAYER
  ...
  CLASSITEM 'SUBURB'
  CLASS
     NAME 'xxx'
     EXPRESSION 'EAST ARNHEM'
     STYLE
        ...
     END
  END
END

I want to get the 'NAME' and 'STYLE' or other kinds of info applied on the
feature 'SUBURB' = 'EAST ARNHEM' when request this feature's info.

Some one help me.
Thanks in advance.

JJ

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/WMS-getFeatureInfo-WFS-getFeature-tp6752411p6752411.html
Sent from the Mapserver - User mailing list archive at Nabble.com.


More information about the mapserver-users mailing list