Hi Murat, 
I put together a PYthon script that uses OGR, just for you actually :)
 
https://github.com/spatialguru/NME/blob/master/ogr_explode.py
 
Run it like:
python ogr_explode.py e34c3_line.shp output.csv
 
It doesn't automatically create a shape file but you can convert from CSV to a 
shapefile with one more step.  But let me know first if this works for you.  
Depending on how the Z or 3D dimension is stored, it may only have zeros in the 
third column of the CSV.  Try it and let me know!
 
Tyler

________________________________

From: [email protected] on behalf of Murat BEYHAN
Sent: Thu 1/31/2013 7:41 AM
To: [email protected]
Subject: [gdal-dev] convert linestring to point data



Dear All,

I would like to convert linestring shape (.shp) file into point shape (.shp)
file using gdal. Is this made by gogr2ogr

ogr2ogr -f "ESRI Shapefile"  -nlt POINT e34c3_point.shp e34c3_line.shp
I have tried this but it gives an error
Please How can I do using command
I do this using qgis but I have to do using command.
Thanks
Murat


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev


_______________________________________________
gdal-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to