OK Frank and Guillaune Here are more precisions: 1. I work with OSGEO4W with plugins oci. 2. My datatable is a table Oracle spatial with a column geometry. 3. If I launch ogr.exe with -sql select * from myTable or with -sql select * from myTable -spat XMIN YMIN XMAX YMAX => the result is the same. That's the reasons why I don't understand. Do you have a example? > Actually it SHOULD work as I use it really often. Check your > data/values/result, and provide more precise test case if it doesn't. Guillaume, what's your database ? Thanks you very much
----- Message d'origine ---- De : Frank Warmerdam <[EMAIL PROTECTED]> À : [EMAIL PROTECTED] Cc : GOUBET LIONEL <[EMAIL PROTECTED]>; gdal-dev@lists.osgeo.org Envoyé le : Jeudi, 9 Octobre 2008, 15h35mn 19s Objet : Re: [gdal-dev] ogr option-spat Guillaume Sueur wrote: > Weird to say why it doesn't work when you don't know yourself what it > should really do... > > This option (and not function) is designed to extract a specific extent > of your input data when using ogr2ogr. > > Actually it SHOULD work as I use it really often. Check your > data/values/result, and provide more precise test case if it doesn't. Folks, The only thing I might add is that -spat does not actually clip the returned geometries. It returns all features whose geometries touch the selection region but it returns the geometries intact, not clipped. Lionel, I think you will need to supply a specific example that is not working for us to followup. I will say that the spatial filtering is done by the individual driver and there is always the chance that some drivers do not do it properly. Best regards, > GOUBET LIONEL a écrit : >> Hi, >> >> >> >> How use the options –spat XMIN YMIN XMAX YMAX ? >> >> >> >> I try but it doesn’t work … All data layer is returned (same if I add in >> a table these columns). >> >> What’s the problem ? What’s the utility of this focntion ? >> >> >> >> Thanks you >> >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> gdal-dev mailing list >> gdal-dev@lists.osgeo.org >> http://lists.osgeo.org/mailman/listinfo/gdal-dev > -- ---------------------------------------+-------------------------------------- I set the clouds in motion - turn up | Frank Warmerdam, [EMAIL PROTECTED] light and sound - activate the windows | http://pobox.com/~warmerdam and watch the world go round - Rush | Geospatial Programmer for Rent
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/gdal-dev