<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> </DIV>
<DIV>I am trying to load features by their feature id</DIV>
<DIV>I have the following code:</DIV>
<DIV> </DIV>
<DIV>var options = {'MV_BLOCK_SUMMARY.3635': 'MV_BLOCK_SUMMARY.3636'};<BR> var blockFilter = new OpenLayers.Filter.FeatureId(options);<BR> <BR> var wfslayer = new OpenLayers.Layer.Vector("Wendy Testing", {<BR> //styleMap: styles,<BR> strategies: [new OpenLayers.Strategy.BBOX()],<BR> reportError: true,<BR> visibility: true,<BR> filter: blockFilter,<BR> protocol: new OpenLayers.Protocol.WFS({<BR> url: "<A href="http://localhost:8080/geoserver/wfs">http://localhost:8080/geoserver/wfs</A>",<BR> featureType: "MV_BLOCK_SUMMARY",<BR> propertyNames: ["BLOCK_NAME", "TITLE_ORDER", "TITLE_ORDER_DATE", "BLOCK_AREA", "MINUTE_BK_REF", "TOTAL_SHARES", "TOTAL_OWNERS", "BLOCK_LOCATION"],<BR> featureNS: "<A href="http://justice.govt.nz/gis">http://justice.govt.nz/gis</A>",<BR> featurePrefix: "gistest",<BR> version: "1.1.0" ,<BR> srsName: "EPSG:900913",<BR> geometryName: "BLOCK_LOCATION"<BR> })<BR> });<BR> map.addLayer(wfslayer);</DIV>
<DIV> </DIV>
<DIV>I cant use </DIV>
<DIV> var blk1Filter = new OpenLayers.Filter.Comparison({<BR> type: OpenLayers.Filter.Comparison.EQUAL_TO,<BR> property: "BLOCK_NAME",<BR> value: "Huruhi Urupa"<BR> });</DIV>
<DIV> </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>
<DIV> </DIV>
<DIV>Regards Wendy</DIV>
<DIV> </DIV>
<DIV>Regards Wendy</DIV>
<DIV> </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>