<br><font size=2 face="sans-serif">Hello</font>
<br>
<br><font size=2 face="sans-serif">1. Remove the Filteritem-line</font>
<br><font size=2 face="sans-serif">2. Change Filter &nbsp;to</font>
<br><tt><font size=2>FILTER (OTRAS_FORM = 'BANCO SUBMARINO' or OTRAS_FORM
= 'HOYA SUBMARINA')<br>
 &nbsp;or to</font></tt>
<br><tt><font size=2>FILTER (OTRAS_FORM IN ('BANCO SUBMARINO','HOYA SUBMARINA'))<br>
</font></tt>
<br><tt><font size=2>Bye</font></tt>
<br><tt><font size=2>Benedikt Rothe</font></tt>
<br>
<br><tt><font size=2>BTW: I think, when Mapserver creates the SQL-Statement
</font></tt>
<br><tt><font size=2>(maporaclespatial.c/osFilteritem(...)) it should surround
it</font></tt>
<br><tt><font size=2>with braces. Combined with the spatial-filter mapserver
creates </font></tt>
<br><tt><font size=2>a Where-Clause of the form </font></tt>
<br><tt><font size=2>&quot;CondA OR CondB AND CondC&quot;.</font></tt>
<br><tt><font size=2>IMHO: To make precedence to Oracle unambiguous clear,
it should rather be </font></tt>
<br><tt><font size=2>&quot;(CondA OR CondB) AND CondC&quot;.</font></tt>
<br>
<br><tt><font size=2>mapserver-users-bounces@lists.osgeo.org schrieb am
08.09.2008 23:34:13:<br>
<br>
&gt; <br>
&gt; Hi everyone!<br>
&gt; <br>
&gt; I´m trying to use filters connecting with a GDB. I type the following
in my<br>
&gt; map file:<br>
&gt; <br>
&gt; FILTERITEM &quot;OTRAS_FORM&quot;<br>
&gt; FILTER ('[OTRAS_FORM]' = 'BANCO SUBMARINO' or '[OTRAS_FORM]' = 'HOYA<br>
&gt; SUBMARINA')<br>
&gt; <br>
&gt; The thing is if I inactive those lines mapserver works perfectly....but,
of<br>
&gt; course, without filters.<br>
&gt; <br>
&gt; the error lines are:<br>
&gt; <br>
&gt; &quot;[Thu Sep 04 15:15:17 2008].578000 msOracleSpatialLayerWhichShapes():<br>
&gt; OracleSpatial error. Error: ORA-00933: comando SQL no terminado<br>
&gt; correctamente<br>
&gt; &nbsp;. Query statement: SELECT OBJECTID, OTRAS_FORM, SHAPE FROM (SELECT<br>
&gt; OBJECTID, SHAPE, OTRAS_FORM FROM RN_GEODMG.INFO_OTRAS_FORMAS_MED_MAR)
WHERE <br>
&gt; OTRAS_FORM = &nbsp;'[OTRAS_FORM]' = 'BANCO SUBMARINO' or '[OTRAS_FORM]'
= 'HOYA<br>
&gt; SUBMARINA' &nbsp;AND SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL,<br>
&gt; NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.<br>
&gt; SDO_ORDINATE_ARRAY(60298.583,3980828.85,649701.417,4298521.15)<br>
&gt; ),'querytype=window') = 'TRUE' . Check your data statement.<br>
&gt; [Thu Sep 04 15:15:17 2008].578000 msDrawMap(): Image handling error.
Failed<br>
&gt; to draw layer named 'morf_dv2'.<br>
&gt; [Thu Sep 04 15:15:22 2008].937000 msOracleSpatialLayerWhichShapes():<br>
&gt; OracleSpatial error. Error: ORA-00933: comando SQL no terminado<br>
&gt; correctamente&quot;<br>
&gt; <br>
&gt; Thanks a million<br>
&gt; <br>
&gt; cheers<br>
&gt; <br>
&gt; <br>
&gt; -- <br>
&gt; View this message in context: http://www.nabble.com/Problems-using-<br>
&gt; filters-with-GEODATABASE-tp19309004p19309004.html<br>
&gt; Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; mapserver-users mailing list<br>
&gt; mapserver-users@lists.osgeo.org<br>
&gt; http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>