[Geomoose-users] utilize wfs for select service?

Andrew Sheppard asheppard at houstoneng.com
Wed Jun 27 15:44:36 PDT 2012


Hi all,
I'm currently working on porting the custom select tool to GeoMOOSE 2.6.  The customizations enable direct interaction by using vector features for the selection result (instead of rendering a raster image).  This makes it possible to e.g. highlight an individual feature by clicking an icon in the result list.  In the old custom code the service sent back commands to create the vectors in the <script> result of the service.  I could replicate this but would like to propose utilizing a WFS layer instead.  This could be done in at least two ways:


1.)    We could change the highlight layer in the mapbook to be a read-only WFS layer.  This would also mean altering the highlight.map template in htdocs/php/select/ to enable WFS requests.  select.php would work more or less as it does now (but some of the rendering commands it sent back would be different).


2.)    We could try to utilize the OpenLayers GetFeature control which can be used to directly transform interaction with a WMS layer into WFS requests (see http://openlayers.org/dev/examples/getfeature-wfs.html).  This would require the user to enable WFS in the mapfile for each layer they wanted the select service for.  Since WFS supports spatial filters, select.php would not be used (but we would need to a different way to render the HTML).


Either of these options would to need be configurable so that the current raster-based approach would still be available (especially when there is a potential for large selection result sets).



S. Andrew Sheppard
GIS/Web Developer

O 763.493.4522 | D 763.493.6676  | M 763.227.8106



[Description: Description: cid:image001.jpg at 01CC3702.356B79C0]

  6901 E Fish Lake Rd. , Suite 140 * Maple Grove, MN * 55369


www.houstoneng.com<http://www.houstoneng.com/>



This entire message (including all forwards and replies) and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret, work-product, attorney-client or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120627/81f12986/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 1059 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120627/81f12986/attachment.jpg>


More information about the Geomoose-users mailing list