<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 to</font>
<br><tt><font size=2>FILTER (OTRAS_FORM = 'BANCO SUBMARINO' or OTRAS_FORM
= 'HOYA SUBMARINA')<br>
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>"CondA OR CondB AND CondC".</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>"(CondA OR CondB) AND CondC".</font></tt>
<br>
<br><tt><font size=2>mapserver-users-bounces@lists.osgeo.org schrieb am
08.09.2008 23:34:13:<br>
<br>
> <br>
> Hi everyone!<br>
> <br>
> I´m trying to use filters connecting with a GDB. I type the following
in my<br>
> map file:<br>
> <br>
> FILTERITEM "OTRAS_FORM"<br>
> FILTER ('[OTRAS_FORM]' = 'BANCO SUBMARINO' or '[OTRAS_FORM]' = 'HOYA<br>
> SUBMARINA')<br>
> <br>
> The thing is if I inactive those lines mapserver works perfectly....but,
of<br>
> course, without filters.<br>
> <br>
> the error lines are:<br>
> <br>
> "[Thu Sep 04 15:15:17 2008].578000 msOracleSpatialLayerWhichShapes():<br>
> OracleSpatial error. Error: ORA-00933: comando SQL no terminado<br>
> correctamente<br>
> . Query statement: SELECT OBJECTID, OTRAS_FORM, SHAPE FROM (SELECT<br>
> OBJECTID, SHAPE, OTRAS_FORM FROM RN_GEODMG.INFO_OTRAS_FORMAS_MED_MAR)
WHERE <br>
> OTRAS_FORM = '[OTRAS_FORM]' = 'BANCO SUBMARINO' or '[OTRAS_FORM]'
= 'HOYA<br>
> SUBMARINA' AND SDO_FILTER( SHAPE, MDSYS.SDO_GEOMETRY(2003, NULL,<br>
> NULL,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.<br>
> SDO_ORDINATE_ARRAY(60298.583,3980828.85,649701.417,4298521.15)<br>
> ),'querytype=window') = 'TRUE' . Check your data statement.<br>
> [Thu Sep 04 15:15:17 2008].578000 msDrawMap(): Image handling error.
Failed<br>
> to draw layer named 'morf_dv2'.<br>
> [Thu Sep 04 15:15:22 2008].937000 msOracleSpatialLayerWhichShapes():<br>
> OracleSpatial error. Error: ORA-00933: comando SQL no terminado<br>
> correctamente"<br>
> <br>
> Thanks a million<br>
> <br>
> cheers<br>
> <br>
> <br>
> -- <br>
> View this message in context: http://www.nabble.com/Problems-using-<br>
> filters-with-GEODATABASE-tp19309004p19309004.html<br>
> Sent from the Mapserver - User mailing list archive at Nabble.com.<br>
> <br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> mapserver-users@lists.osgeo.org<br>
> http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>