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

ahmet temiz ahmettemiz88 at gmail.com
Tue Feb 21 03:29:43 EST 2012


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 ?

regards

2012/2/18 Chaitanya kumar CH <chaitanya.ch at gmail.com>:
> Ahmet,
>
> If you want to divide the shapefile to reduce file size or the number of
> features, use the -where option. Restrict the features copied to the new
> shapefile by specifying the range of FIDs.
> Ex: ogr2ogr -where "FID >= 0 and FID < 1000" dst.shp src.shp
>
> 2012/2/18 ahmet temiz <ahmettemiz88 at gmail.com>
>>
>> hello
>>
>> how can I divide a big shape file into 5 equal pieces using ogr2ogr ?
>>
>> regards
>>
>> --
>> Ahmet Temiz
>> Jeoloji Müh.
>> Afet ve Acil Durum Yönetimi Başkanlığı
>> Planlama ve Zarar Azaltma Dairesi Başkanlığı
>> Bilgi ve CBS grubu
>> Eskişehir Yolu 10. km.
>> Lodumlu / Ankara
>> Tel : 0 312 2872680 / 1535
>> ________________________
>>
>> Ahmet Temiz
>> Geological Eng.
>> Information Systems - GIS Group
>> Disaster and Emergency Management
>> of Presidency
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>
>
>
>
> --
> Best regards,
> Chaitanya kumar CH.
>
> +91-9494447584
> 17.2416N 80.1426E



-- 
Ahmet Temiz
Jeoloji Müh.
Afet ve Acil Durum Yönetimi Başkanlığı
Planlama ve Zarar Azaltma Dairesi Başkanlığı
Bilgi ve CBS grubu
Eskişehir Yolu 10. km.
Lodumlu / Ankara
Tel : 0 312 2872680 / 1535
________________________

Ahmet Temiz
Geological Eng.
Information Systems - GIS Group
Disaster and Emergency Management
of Presidency


More information about the gdal-dev mailing list