[gdal-dev] Re: howto flattening of 3D shapefiles
WolfgangZ
wollez at gmx.net
Mon Jun 8 01:51:17 EDT 2009
thank you very much, I managed to flatten my shapefile.
Best regards
Wolfgang
Even Rouault schrieb:
> Wolfgang,
>
> There are at least 2 ways of achieving this :
>
> - use -nlt flag of ogr2ogr. For example if your src.shp contains 3D points :
> ogr2ogr dest.shp src.shp -nlt POINT. See http://gdal.org/ogr2ogr.html
>
> - or, equivalently, use the SHPT creation option of the Shape driver : ogr2ogr
> dest.shp src.shp -lco SHPT=POINT. See http://gdal.org/ogr/drv_shapefile.html
>
> Le Sunday 07 June 2009 13:52:22 WolfgangZ, vous avez écrit :
>> Hi,
>>
>> I hope that I'm on the correct mailing list. Otherwise please excuse my
>> posting here.
>>
>> How can I flatten a 3D shapefile? The problem is, that a software, where
>> I need to import my shapefile, does not handle 3D shapfiles and
>> therefore it can only display 2D shapefiles. However my shp is generated
>> automatically and there is no option to flatten the shapes.
>>
>> I just had a look at ogr2ogr but I did not figure out how to do this
>> task. Any ideas?
>>
>> Best regards
>> Woflgang
>>
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
More information about the gdal-dev
mailing list