AW: [mapserver-users] WFS Server Control output by scale?

Eichner, Andreas - SID-NLKM Andreas.Eichner at sid.sachsen.de
Fri Feb 6 02:30:34 EST 2009


Hi,

I believe you're misunderstanding WFS. It is not intended to serve data on a scale basis. It delivers the raw underlying feature data according to a filter you supply. So if you want features related to an area of interest (which would be the current extent in Openlayers) then you want to filter your features, f.e.:

<Filter>
  <BBOX>
    <PropertyName>Geometry</PropertyName>
    <gml:Envelope srsName="EPSG:31469">
      <gml:lowerCorner>13.0983 31.5899</gml:lowerCorner>
      <gml:upperCorner>35.5472 42.8143</gml:upperCorner>
    </gml:Envelope>
  </BBOX>
</Filter>

You can limit the amount by using a maxfeatures attribute/parameter in your request or limit directly with MapServer by using a wfs_maxfeatures metadata. So basically the client (Openlayers) has to decide when to fetch the features.

-----Ursprüngliche Nachricht-----
Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] Im Auftrag von Stephen Woodbridge
Gesendet: Freitag, 6. Februar 2009 07:28
An: mapserver-users; openlayers user list
Betreff: [mapserver-users] WFS Server Control output by scale?

Hi all,

I'm using mapserver as a WFS server with OpenLayers to serve some 
polygons. How does one control at what scale mapserver will respond to 
WFS requests. It looks like OpenLayers makes its request based on a 
min/max extents. How do you control this? Can you easily limit when 
OpenLayers makes request if you are using fixed scales based on the 
scale? or control mapserver based on size/area of extent?

I'm not seeing anything in either projects documentation.

I could use a clue or pointer to docs.

Thanks,
   -Steve
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list