Re: [gdal-dev] Shape files 3D -> 2D

2009-09-09 Thread Chaitanya kumar CH
Christoph, It looks like all three methods are working as they should. In the first one, the ogr2ogr converts it to two dimensions,. In the second one, the shapefile driver does that. In the third method you are getting the geometry type, which is in wkb format. I would guess them to contain the

AW: [gdal-dev] Shape files 3D -> 2D

2009-09-08 Thread Christoph Dohmen
> You're not very explicit about what you want to do. From the tile, I guess > you want to get rid of the Z coordinate of the geometry to produce 2D only > geometries ? Okay, sorry, I will describe it with more detail. I have a shape file where ogrinfo reports it is a "Geometry: 3D Line String".

Re: [gdal-dev] Shape files 3D -> 2D

2009-09-08 Thread Even Rouault
Selon Christoph Dohmen : You're not very explicit about what you want to do. From the tile, I guess you want to get rid of the Z coordinate of the geometry to produce 2D only geometries ? If so, you need to specify '-nlt LINESTRING' (remove the 25D otherwise you'll still get the Z coordinate) or

[gdal-dev] Shape files 3D -> 2D

2009-09-08 Thread Christoph Dohmen
Hi list, I have a set of shape files which are reported as 'Geometry: 3D Line String'. The geometries are all LINESTRING, but they have 3D coordinates. Playing around with ogr2ogr and different options like '-nlt LINESTRING25D' or '-dsco "SHPT=LINESTRING25D"' did not bring the expected results.