<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.5969" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Arial">
<DIV>Hi All</DIV>
<DIV>&nbsp;</DIV>
<DIV>Sorry for the repost:</DIV>
<DIV>
<DIV>&nbsp;</DIV>
<DIV>I am trying to load features by their feature id</DIV>
<DIV>I have the following code:</DIV>
<DIV>&nbsp;</DIV>
<DIV>var options = {'MV_BLOCK_SUMMARY.3635': 'MV_BLOCK_SUMMARY.3636'};<BR>&nbsp;&nbsp;&nbsp;&nbsp;var blockFilter = new OpenLayers.Filter.FeatureId(options);<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;var wfslayer = new OpenLayers.Layer.Vector("Wendy Testing", {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;//styleMap: styles,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;strategies: [new OpenLayers.Strategy.BBOX()],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reportError: true,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;visibility: true,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;filter: blockFilter,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol: new OpenLayers.Protocol.WFS({<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url:&nbsp; "<A href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</A>",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;featureType: "MV_BLOCK_SUMMARY",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;propertyNames: ["BLOCK_NAME", "TITLE_ORDER", "TITLE_ORDER_DATE", "BLOCK_AREA", "MINUTE_BK_REF", "TOTAL_SHARES", "TOTAL_OWNERS", "BLOCK_LOCATION"],<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;featureNS: "<A href="http://justice.govt.nz/gis">http://justice.govt.nz/gis</A>",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;featurePrefix: "gistest",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;version: "1.1.0" ,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;srsName: "EPSG:900913",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;geometryName: "BLOCK_LOCATION"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; })<BR>&nbsp;&nbsp;&nbsp;&nbsp;});<BR>&nbsp;&nbsp;&nbsp;&nbsp;map.addLayer(wfslayer);</DIV></DIV>
<DIV>&nbsp;</DIV>
<DIV>But the javascript:exception&nbsp;I get when using the FeatureId filter is as follows:</DIV>
<DIV><SPAN class="objectBox objectBox-errorMessage &#13;&#10;opened" role="presentation">uncaught exception: Filter writing not supported for rule type: undefined</SPAN></DIV>
<DIV><SPAN class="objectBox objectBox-errorMessage &#13;&#10;opened" role="presentation"></SPAN>&nbsp;</DIV>
<DIV><SPAN class="objectBox objectBox-errorMessage &#13;&#10;opened" role="presentation">
<DIV>I cant use </DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;var blk1Filter = new OpenLayers.Filter.Comparison({<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;type: OpenLayers.Filter.Comparison.EQUAL_TO,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;property: "BLOCK_NAME",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value: "Huruhi Urupa"<BR>&nbsp;&nbsp;&nbsp;&nbsp;});</DIV>
<DIV>&nbsp;</DIV>
<DIV>As the i want to search by the feature id which is not a property.</DIV>
<DIV>Any advice would be greatly appreciated.</DIV></SPAN></DIV>
<DIV><SPAN class="objectBox objectBox-errorMessage &#13;&#10;opened" role="presentation"></SPAN>&nbsp;</DIV>
<DIV><SPAN class="objectBox objectBox-errorMessage &#13;&#10;opened" role="presentation">Regards Wendy</SPAN></DIV>
<P>========================================================<BR><BR>This e-mail 
message and attachments do not necessarily reflect the views of <BR>the New 
Zealand Ministry of Justice and may contain <BR>information that is confidential 
and may be subject to legal privilege. If you <BR>are not the intended 
recipient, you are hereby notified that you must not use, <BR>disseminate, 
distribute or copy this e-mail message or its attachments. If you <BR>received 
this message in error, please notify the Ministry of Justice <BR>by telephone 
(call collect: 00-64-4-918-8800) or return the <BR>original message to us by 
e-mail, and destroy any copies.<BR>Thank 
you.<BR><BR>================================================</P>
</BODY></HTML>