<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Why change the highlight layer definition, which breaks the built-in services you would still be trying to use (presumably) instead of defining a new Vector layer (as WFS if you'd like) and then have your service return Javascript to manipulate it?<br></span></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Andrew Sheppard <asheppard@houstoneng.com><br> <b><span style="font-weight: bold;">To:</span></b> GeoMOOSE Users List <geomoose-users@lists.osgeo.org> <br> <b><span
 style="font-weight: bold;">Sent:</span></b> Wednesday, June 27, 2012 5:44 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> [Geomoose-users] utilize wfs for select service?<br> </font> </div> <br>
<div id="yiv1363542427">

 
 
<style><!--
#yiv1363542427  
 _filtered #yiv1363542427 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv1363542427 {font-family:"Malgun Gothic";panose-1:2 11 5 3 2 0 0 2 0 4;}
 _filtered #yiv1363542427 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv1363542427 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
 _filtered #yiv1363542427 {font-family:"Malgun Gothic";panose-1:2 11 5 3 2 0 0 2 0 4;}
#yiv1363542427  
#yiv1363542427 p.yiv1363542427MsoNormal, #yiv1363542427 li.yiv1363542427MsoNormal, #yiv1363542427 div.yiv1363542427MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"sans-serif";}
#yiv1363542427 a:link, #yiv1363542427 span.yiv1363542427MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv1363542427 a:visited, #yiv1363542427 span.yiv1363542427MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv1363542427 p.yiv1363542427MsoAcetate, #yiv1363542427 li.yiv1363542427MsoAcetate, #yiv1363542427 div.yiv1363542427MsoAcetate
        {margin:0in;margin-bottom:.0001pt;font-size:8.0pt;font-family:"sans-serif";}
#yiv1363542427 p.yiv1363542427MsoListParagraph, #yiv1363542427 li.yiv1363542427MsoListParagraph, #yiv1363542427 div.yiv1363542427MsoListParagraph
        {margin-top:0in;margin-right:0in;margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"sans-serif";}
#yiv1363542427 span.yiv1363542427BalloonTextChar
        {font-family:"sans-serif";}
#yiv1363542427 span.yiv1363542427EmailStyle20
        {font-family:"sans-serif";color:windowtext;}
#yiv1363542427 .yiv1363542427MsoChpDefault
        {font-size:10.0pt;font-family:"sans-serif";}
 _filtered #yiv1363542427 {margin:85.05pt 1.0in 1.0in 1.0in;}
#yiv1363542427 div.yiv1363542427WordSection1
        {}
#yiv1363542427  
 _filtered #yiv1363542427 {}
 _filtered #yiv1363542427 {}
 _filtered #yiv1363542427 {}
 _filtered #yiv1363542427 {}
 _filtered #yiv1363542427 {}
 _filtered #yiv1363542427 {}
 _filtered #yiv1363542427 {}
 _filtered #yiv1363542427 {}
 _filtered #yiv1363542427 {}
 _filtered #yiv1363542427 {}
#yiv1363542427 ol
        {margin-bottom:0in;}
#yiv1363542427 ul
        {margin-bottom:0in;}
--></style>

<div>
<div class="yiv1363542427WordSection1">
<div class="yiv1363542427MsoNormal">Hi all,</div> 
<div class="yiv1363542427MsoNormal">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:</div> 
<div class="yiv1363542427MsoNormal">  </div> 
<div class="yiv1363542427MsoListParagraph" style=""><span style="">1.)<span style="font:7.0pt;">   
</span></span>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).</div> 
<div class="yiv1363542427MsoNormal">  </div> 
<div class="yiv1363542427MsoListParagraph" style=""><span style="">2.)<span style="font:7.0pt;">   
</span></span>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).</div> 
<div class="yiv1363542427MsoListParagraph">  </div> 
<div class="yiv1363542427MsoNormal">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).</div> 
<div class="yiv1363542427MsoNormal">  </div> 
<table class="yiv1363542427MsoNormalTable" style="width:300.6pt;border-collapse:collapse;" border="0" cellpadding="0" cellspacing="0" width="401">
<tbody>
<tr style="height:24.1pt;">
<td rowspan="2" style="width:10.5pt;border:none;border-bottom:solid #3E5D0C 1.5pt;background:#3E5D0C;padding:0in .05in 0in .05in;height:24.1pt;" valign="top" width="14">
<div class="yiv1363542427MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:115%;">
<span style="font-size:6.0pt;line-height:115%;color:#1F497D;">  </span></div> 
</td>
<td colspan="5" style="width:290.1pt;padding:0in 5.75pt 0in 5.75pt;height:24.1pt;" valign="top" width="387">
<div class="yiv1363542427MsoNormal" style="line-height:115%;"><b>S. Andrew Sheppard</b><b></b></div> 
<div class="yiv1363542427MsoNormal" style="line-height:115%;"><span style="font-size:9.5pt;line-height:115%;">GIS/Web Developer</span><span style="font-size:9.5pt;line-height:115%;"></span></div> 
</td>
</tr>
<tr style="height:16.15pt;">
<td colspan="5" style="width:290.1pt;border:none;border-bottom:solid #3E5D0C 1.5pt;padding:0in 5.75pt 0in 5.75pt;height:16.15pt;" valign="top" width="387">
<div class="yiv1363542427MsoNormal" style="line-height:115%;"><b><span style="font-size:9.5pt;line-height:115%;color:#3E5D0C;">O</span></b><span style="font-size:9.5pt;line-height:115%;"> 763.493.4522 |
<b><span style="color:#3E5D0C;">D</span></b> 763.493.6676  | <b><span style="color:#3E5D0C;">M</span></b> 763.227.8106</span><span style="font-size:9.5pt;line-height:115%;"></span></div> 
</td>
</tr>
<tr style="height:21.95pt;">
<td style="width:10.5pt;background:#8ABCC1;padding:0in .05in 0in .05in;height:21.95pt;" valign="top" width="14">
<div class="yiv1363542427MsoNormal" style="margin-bottom:0in;margin-bottom:.0001pt;line-height:115%;">
<span style="font-size:9.0pt;line-height:115%;color:#1F497D;">  </span></div> 
</td>
<td style="width:34.65pt;padding:0in 0in 0in 5.75pt;height:21.95pt;" width="46">
<div class="yiv1363542427MsoNormal" style="line-height:115%;"><span style="font-size:9.0pt;line-height:115%;"><img id="yiv1363542427Picture_x0020_1" src="cid:1.4130316985@web161206.mail.bf1.yahoo.com" alt="Description: Description: cid:image001.jpg@01CC3702.356B79C0" border="0" height="35" width="36"></span><span style="font-size:9.0pt;line-height:115%;"></span></div> 
</td>
<td colspan="4" style="width:255.45pt;padding:0in 0in 0in 0in;height:21.95pt;" width="341">
<div class="yiv1363542427MsoNormal" style="line-height:115%;"><span style="font-size:9.5pt;line-height:115%;"> 
<span style="color:black;">6901 E Fish Lake Rd. , Suite 140 <span style="color:#73A79F;">•</span>
<span style="color:black;">Maple Grove, MN </span><span style="color:#73A79F;">•</span><span style="color:black;"> 55369</span></span></span><span style="font-size:9.5pt;line-height:115%;"></span></div> 
</td>
</tr>
<tr>
<td style="width:10.5pt;padding:0in 0in 0in 0in;" width="14"></td>
<td colspan="3" style="width:117.05pt;padding:0in 0in 0in 0in;" width="156"></td>
<td style="width:69.7pt;padding:0in 0in 0in 0in;" width="93"></td>
<td style="width:103.35pt;padding:0in 0in 0in 0in;" width="138"></td>
</tr>
<tr style="height:13.95pt;">
<td colspan="6" style="width:300.6pt;padding:0in 0in 0in 0in;height:13.95pt;" width="401">
<div class="yiv1363542427MsoNormal" style="line-height:115%;"><a rel="nofollow" target="_blank" href="http://www.houstoneng.com/"><b><span style="font-size:9.5pt;line-height:115%;color:blue;">www.houstoneng.com</span></b></a><b><span style="font-size:9.5pt;line-height:115%;color:#1F497D;"> </span></b><b><span style="font-size:9.5pt;line-height:115%;color:#1F497D;"></span></b></div> 
</td>
</tr>
<tr>
<td style="width:10.5pt;padding:0in 0in 0in 0in;" width="14"></td>
<td colspan="2" style="width:45.15pt;padding:0in 0in 0in 0in;" width="60"></td>
<td style="width:71.9pt;padding:0in 0in 0in 0in;" width="96"></td>
<td style="width:69.7pt;padding:0in 0in 0in 0in;" width="93"></td>
<td style="width:103.35pt;padding:0in 0in 0in 0in;" width="138"></td>
</tr>
<tr>
<td style="width:10.5pt;padding:0in 0in 0in 0in;" width="14"></td>
<td style="width:34.65pt;padding:0in 0in 0in 0in;" width="46"></td>
<td style="width:10.5pt;padding:0in 0in 0in 0in;" width="14"></td>
<td style="width:71.9pt;padding:0in 0in 0in 0in;" width="96"></td>
<td style="width:69.7pt;padding:0in 0in 0in 0in;" width="93"></td>
<td style="width:103.35pt;padding:0in 0in 0in 0in;" width="138"></td>
</tr>
</tbody>
</table>
<div class="yiv1363542427MsoNormal" style=""><span style="font-size:8.0pt;color:#929394;">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.</span><span style="font-size:8.0pt;color:#929394;"></span></div> 
<div class="yiv1363542427MsoNormal">  </div> 
<div class="yiv1363542427MsoNormal">  </div> 
</div>
</div>

</div><br>_______________________________________________<br>Geomoose-users mailing list<br><a ymailto="mailto:Geomoose-users@lists.osgeo.org" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br><br><br> </div> </div> </blockquote></div>   </div></body></html>