[gdal-dev] divide a big shape file using ogr2ogr

Frank Warmerdam warmerdam at pobox.com
Tue Feb 21 10:36:18 EST 2012


On 12-02-21 12:29 AM, ahmet temiz wrote:
> Thank you Chaitanya
>
> It worked.
> I had tried spat. But it couldn't achive.
> Could you tell me why spat can not be used to part shp file
> because of its big size ?

Ahmet,

Roughly speaking -spat could be used for this purpose, but any features
crossing the line between -spat windows would get included in both files
unless you also use -clipsrc which would split features on the clip
boundaries.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://home.gdal.org/warmerda
and watch the world go round - Rush    | Geospatial Software Developer



More information about the gdal-dev mailing list