WFS GetFeature request calls LayerClose on all layers?

Steve Lime steve.lime at DNR.STATE.MN.US
Mon Oct 24 20:07:33 EDT 2005


Hmmmm... That's not coming from the GML writer itself. I just checked the source and the layer is only opened if it has a result set. Must be coming from the query portion of WFS support. Assefa? (Of course he may well send back to me with the base query support, but this has not been an issue elsewhere.)

So, you've got a mapfile with PostGIS layers defined by not PostGIS support?

Steve

>>> Bart van den Eijnden <BEN at SYNCERA-ITSOLUTIONS.NL> 10/24/05 6:16 AM >>>
Hi list,

I am trying a GetFeature request for 1 layer/typename which is a shapefile. In my MAP file there are other layers, also PostGIS layers. My CGI version is not compiled with PostGIS support, Mapscript is.

This resulted in the following invalid XML (an error message in the GML), see end of this e-mail.

Why is layerclose called on all layers when only 1 layer (the typename queried) would need to be opened?

   <gml:featureMember>
      <stragisweb:acn>
        <gml:boundedBy>
        	<gml:Box srsName="EPSG:28992">
        		<gml:coordinates>96537.000000,464064.000000 96537.000000,464064.000000</gml:coordinates>
        	</gml:Box>
        </gml:boundedBy>
        <stragisweb:msGeometry>
        <gml:Point srsName="EPSG:28992">
          <gml:coordinates>96537.000000,464064.000000</gml:coordinates>
        </gml:Point>
        </stragisweb:msGeometry>
        <stragisweb:PSTK>2353TH</stragisweb:PSTK>
        <stragisweb:STRAAT_OFF>Statendaalder</stragisweb:STRAAT_OFF>
        <stragisweb:STRAATNAAM>STATENDAALDER</stragisweb:STRAATNAAM>
        <stragisweb:STRAAT_NEN>Statendaalder</stragisweb:STRAAT_NEN>
        <stragisweb:HUISNUMMER>1</stragisweb:HUISNUMMER>
        <stragisweb:TOEVOEGING></stragisweb:TOEVOEGING>
        <stragiMon Oct 24 13:05:22 2005 - msPOSTGISLayerClose(): Query error. msPOSTGISLayerClose called but unimplemented!(mapserver not compiled with postgis support)
sweb:WOONPLAATS>LEIDERDORP</stragisweb:WOONPLAATS>
        <stragisweb:PLAATS_NEN>LEIDERDORP</stragisweb:PLAATS_NEN>
        <stragisweb:GEMEENTE>LEIDERDORP</stragisweb:GEMEENTE>
        <stragisweb:BVLK_ID>30FZ2002196</stragisweb:BVLK_ID>
        <stragisweb:X>96537</stragisweb:X>
        <stragisweb:Y>464064</stragisweb:Y>
        <stragisweb:KWALITEIT>1</stragisweb:KWALITEIT>
      </stragisweb:acn>
    </gml:featureMember>
</wfs:FeatureCollection>

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl



More information about the mapserver-dev mailing list