<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>OK Frank and Guillaune</DIV>
<DIV> </DIV>
<DIV>Here are more precisions:</DIV>
<OL>
<LI>I work with OSGEO4W with plugins oci.</LI>
<LI>My datatable is a table Oracle spatial with a column geometry.</LI>
<LI>If I launch ogr.exe with <STRONG>-sql select * from myTable</STRONG> or with <STRONG>-sql select * from myTable -spat XMIN YMIN XMAX YMAX =></STRONG> the result is the same.</LI></OL>
<P>That's the reasons why I don't understand.</P>
<P>Do you have a example?</P>
<P> </P>
<P><EM>> Actually it SHOULD work as I use it really often. Check your<BR>> data/values/result, and provide more precise test case if it doesn't.<BR></EM>Guillaume, what's your database ?</P>
<P> </P>
<P>Thanks you very much <BR></P>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR></DIV>
<DIV style="FONT-SIZE: 13px; FONT-FAMILY: arial, helvetica, sans-serif">----- Message d'origine ----<BR>De : Frank Warmerdam <warmerdam@pobox.com><BR>À : guillaume.sueur@neogeo-online.net<BR>Cc : GOUBET LIONEL <goubetli@yahoo.fr>; gdal-dev@lists.osgeo.org<BR>Envoyé le : Jeudi, 9 Octobre 2008, 15h35mn 19s<BR>Objet : Re: [gdal-dev] ogr option-spat<BR><BR>Guillaume Sueur wrote:<BR>> Weird to say why it doesn't work when you don't know yourself what it<BR>> should really do...<BR>> <BR>> This option (and not function) is designed to extract a specific extent<BR>> of your input data when using ogr2ogr.<BR>> <BR>> Actually it SHOULD work as I use it really often. Check your<BR>> data/values/result, and provide more precise test case if it doesn't.<BR><BR>Folks,<BR><BR>The only thing I might add is that -spat does not actually clip<BR>the returned geometries. It returns all features whose geometries<BR>touch the
selection region but it returns the geometries intact, not<BR>clipped.<BR><BR>Lionel, I think you will need to supply a specific example that<BR>is not working for us to followup. I will say that the spatial<BR>filtering is done by the individual driver and there is always the<BR>chance that some drivers do not do it properly.<BR><BR>Best regards,<BR><BR>> GOUBET LIONEL a écrit :<BR>>> Hi,<BR>>><BR>>> <BR>>><BR>>> How use the options –spat XMIN YMIN XMAX YMAX ?<BR>>><BR>>> <BR>>><BR>>> I try but it doesn’t work … All data layer is returned (same if I add in<BR>>> a table these columns).<BR>>><BR>>> What’s the problem ? What’s the utility of this focntion ?<BR>>><BR>>> <BR>>><BR>>> Thanks you<BR>>><BR>>><BR>>><BR>>>
------------------------------------------------------------------------<BR>>><BR>>> _______________________________________________<BR>>> gdal-dev mailing list<BR>>> <A href="mailto:gdal-dev@lists.osgeo.org" ymailto="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</A><BR>>> <A href="http://lists.osgeo.org/mailman/listinfo/gdal-dev" target=_blank>http://lists.osgeo.org/mailman/listinfo/gdal-dev</A><BR>> <BR><BR><BR>-- <BR>---------------------------------------+--------------------------------------<BR>I set the clouds in motion - turn up | Frank Warmerdam, <A href="mailto:warmerdam@pobox.com" ymailto="mailto:warmerdam@pobox.com">warmerdam@pobox.com</A><BR>light and sound - activate the windows | <A href="http://pobox.com/~warmerdam" target=_blank>http://pobox.com/~warmerdam</A><BR>and watch the world go round - Rush | Geospatial Programmer for Rent<BR><BR></DIV></div><br>
</body></html>