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

2012-02-21 Thread Frank Warmerdam
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 l

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

2012-02-21 Thread ahmet temiz
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 : > Ahmet, > > If you want to divide the shapefile to reduce file size or the number of > features,

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

2012-02-20 Thread Jeff McKenna
On 12-02-17 3:25 PM, ahmet temiz wrote: hello how can I divide a big shape file into 5 equal pieces using ogr2ogr ? You could use shp2tile to split your shp into equal parts: http://imaptools.com/download-software.html -jeff -- Jeff McKenna MapServer Consulting and Training Services http:

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

2012-02-17 Thread Chaitanya kumar CH
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 > hello > > how

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

2012-02-17 Thread Matt Perry
2012/2/17 ahmet temiz : > hello > > how can I divide a big shape file into 5 equal pieces using ogr2ogr ? > "equal" with regard to what? Number of features? Area of features? File size? Some attribute field? -- ·´¯`·.¸. , . .·´¯`·.. ><º>`·.¸¸.·´¯`·.¸.·´¯`·...¸><º> "The best way to predic

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

2012-02-17 Thread ahmet temiz
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 _