[gdal-dev] ogr option-spat

GOUBET LIONEL goubetli at yahoo.fr
Thu Oct 9 13:50:36 EDT 2008


Excuses me I forgot to say that I make file output f  "MapInfo File" ...

Best regards,
Lionel


 


----- Message d'origine ----
De : GOUBET LIONEL <goubetli at yahoo.fr>
À : Frank Warmerdam <warmerdam at pobox.com>; guillaume.sueur at neogeo-online.net
Cc : gdal-dev at lists.osgeo.org
Envoyé le : Jeudi, 9 Octobre 2008, 19h47mn 01s
Objet : Re : [gdal-dev] ogr option-spat


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 <warmerdam at pobox.com>
À : guillaume.sueur at neogeo-online.net
Cc : GOUBET LIONEL <goubetli at yahoo.fr>; gdal-dev at 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 at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
> 


-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up  | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20081009/24493b56/attachment.html


More information about the gdal-dev mailing list