Hi,

I know there was already some discussion about this on the list. What
if we have the following in an OWS Context document:

    <Layer queryable="1" hidden="0">
      <Server service="OGC:WMS-C" version="1.0.0" title="OGC:WMS-C">
        <OnlineResource xlink:type="simple" xlink:href="/geoserver/wms?"/>
      </Server>
      <Server service="OGC:WFS" version="1.0.0" title="OGC:WFS">
        <OnlineResource xlink:type="simple" xlink:href="/geoserver/wfs?"/>
      </Server>
      ...

This would give us a very convenient way to use the same layer for
issuing WMS requests (GetMap, GetFeatureInfo) and WFS requests
(GetFeature). Using the new GetFeatureInfoWSR/WebServiceRequest chain,
we could e.g. use the same configuration to query the WMS and the WFS,
with only changing one config parameter (i.e. requestType in
WebServiceRequest). The advantage would be that we would have the
possibility to specify a tolreance for the GetFeatureInfo, which WMS
GetFeatureInfo does not give us (only hard coded, e.g. in mapfiles):

        <WebServiceRequest id="wfs">
          <requestName>wfs:GetFeature</requestName>
          <targetModel>featureContainer</targetModel>
        </WebServiceRequest>
        ...
        <GetFeatureInfoWSR id="getFeatureInfo">
          ...
          <tolerance>10<tolerance>
          ...
        </GetFeatureInfoWSR>

I know that at least Cameron and Bart have already talked about this,
and I would agree that this should be part of the OWSContext spec.

By the way, I have extended widget/GetFeatureInfoWSR.js,
model/OwsContext.js and tool/wfs_GetFeature to provide this simulated
wms:GetFeatureInfo using wfs:GetFeature, with a tolerance. See the
attached patch (note that the patch for GetFeatureInfoWSR also
contains some bugfixes).

If you think that it is a good idea to do this, I would like to add
this to the trunk and the 1.5 release.

Regards,
Andreas.

Attachment: webservicerequest.diff
Description: Binary data

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to