<div>Hi Simon,</div>
<div>&nbsp;</div>
<div>problem is solved,</div>
<div>&nbsp;</div>
<div>the Filter must be formatted somehow like:</div>
<div>&nbsp;</div>
<div>DATA &quot;GEOLOC FROM E112_CELLS_GEO USING SRID 8307 FILTER&quot;<br>FILTER &quot;cell='BAMK5D'&quot;</div>
<div>&nbsp;</div>
<div>the SRID seems to be a must for the filter.</div>
<div>&nbsp;</div>
<div>thanks again for your help.</div>
<div>&nbsp;</div>
<div>zhonghai<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 6/26/06, <b class="gmail_sendername">Zhonghai Wang</b> &lt;<a href="mailto:zhonghaiw@gmail.com">zhonghaiw@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>Hi Simon,</div>
<div>&nbsp;</div>
<div>how is everything? thanks for your hints.</div>
<div>&nbsp;</div>
<div>as you said, I set the Filter again like this:</div></div>
<div><span class="q">
<div>&nbsp;</div>
<div>DATA &quot;GEOLOC FROM E112_CELLS_GEO USING FILTER&quot;</div></span></div>
<div>
<div>FILTER &quot;cell='BAMK5D'&quot;</div>
<div>&nbsp;</div>
<div>with the cell='BAMK5D' condition in the SQLPlus 12 elements will be selected, but with mapserverit returns still some error messages:</div>
<div>&nbsp;</div>
<div>msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error: ORA-29902: error in executing ODCIIndexStart() routine<br>ORA-13208: internal error&nbsp; while evaluating [window SRID does not match layer SRID] operator<br>
ORA-06512: at &quot;MDSYS.SDO_INDEX_METHOD_9I&quot;, line 259<br>ORA-06512: at line 1<br>&nbsp;. Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE cell='BAMK5D' AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL, NULL, 
MDSYS.SDO_ELEM_INF</div>
<div><span class="q"><br>O_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587,45.11214,10.49203,48.51426) )<br>,'querytype=window') = 'TRUE' . </span></div>
<div></div>
<div>Check your data statement.</div>
<div>&nbsp;</div>
<div>It seems that I should specify certain SRID code, but in this case the SRID code is not necessary.</div>
<div>&nbsp;</div>
<div>BTW: the SRID is 8307</div>
<div>&nbsp;</div>
<div>thanks</div></div>
<div><span class="sg">
<div>&nbsp;</div>
<div>zhonghai</div></span></div>
<div><span class="e" id="q_10c10c137a71ee97_6">
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 6/26/06, <b class="gmail_sendername">Fernando Simon</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:fsimon@univali.br" target="_blank">fsimon@univali.br</a>
&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br>&nbsp;&nbsp; Just remove the &quot;WHERE&quot; from FILTER parameter. Like: FILTER<br>&quot;MI_PRINX =100&quot; 
<br>&nbsp;&nbsp; Best regards.<br><br>Fernando Simon<br><br>Zhonghai Wang wrote:<br>&gt; Hi there,<br>&gt;<br>&gt; I am trying to render the map with oracle spatial database, and facing<br>&gt; problems with the FILTER expression.<br>
&gt;<br>&gt; at first I define the oracle spatial connection like:<br>&gt;<br>&gt; CONNECTIONTYPE ORACLESPATIAL<br>&gt; CONNECTION &quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:E110/E110@PMCGIS2.WORLD" target="_blank">
E110/E110@PMCGIS2.WORLD</a> &lt;mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:E110/E110@PMCGIS2.WORLD" target="_blank"> E110/E110@PMCGIS2.WORLD</a>&gt;&quot;<br>&gt; DATA &quot;GEOLOC FROM E112_CELLS_GEO USING UNIQUE MI_PRINX SRID 8307&quot;
<br>&gt;<br>&gt; and this one works fine, therefore I am sure that the mapfile<br>&gt; definition is ok, and then I change the data connection to : <br>&gt;<br>&gt; CONNECTIONTYPE ORACLESPATIAL<br>&gt; CONNECTION &quot;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:E110/E110@PMCGIS2.WORLD" target="_blank">
E110/E110@PMCGIS2.WORLD</a> &lt;mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:E110/E110@PMCGIS2.WORLD" target="_blank">E110/E110@PMCGIS2.WORLD</a>&gt;&quot; <br>&gt; DATA &quot;GEOLOC FROM E112_CELLS_GEO USING FILTER&quot;
<br>&gt; FILTER &quot;WHERE&nbsp;&nbsp;MI_PRINX =100&quot;<br>&gt;<br>&gt; to use the FILTER function for a specific selection, but this<br>&gt; definition gives aan error instead of the map image: <br>&gt;<br>&gt; ERROR:<br>&gt; msOracleSpatialLayerWhichShapes(): OracleSpatial error. Error:
<br>&gt; ORA-00936: missing expression .<br>&gt; Query statement: SELECT rownum, GEOLOC FROM E112_CELLS_GEO WHERE WHERE<br>&gt; MI_PRI <br>&gt; NX=100 AND SDO_FILTER( GEOLOC, MDSYS.SDO_GEOMETRY(2003, NULL,<br>&gt; NULL,MDSYS.SDO_ELE
<br>&gt; M_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(5.95587<br>&gt; ,45.11214,10.49203,48.514<br>&gt; 26) ),'querytype=window') = 'TRUE' . <br>&gt; Check your data statement.<br>&gt;<br>&gt; I can not figure out where the problem is. the MI_PRINX is the unique
<br>&gt; id of the table, if I make this query in the SQLPlus, the data will be<br>&gt; returned, which means the where condition in the SQL is no problem. <br>&gt;<br>&gt; any ideas for this?<br>&gt;<br>&gt; kind regards
<br>&gt;<br>&gt; zhonghai<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br><br></blockquote></div><br></span></div></blockquote></div><br>