[FWTools] SHAPE TO CSV

Newman, Michael (Windsor,CT-US) MNewman at trcsolutions.com
Tue Oct 13 14:21:32 EST 2009


Sorry, I meant to suggest this instead:

ogr2ogr -f CSV -lco GEOMETRY=AS_WKT output_wkt input_line.shp

 

WKT will work better for lines. You can then post-process the WKT to
become a CSV of the type you want.

 

From: fwtools-bounces at lists.maptools.org
[mailto:fwtools-bounces at lists.maptools.org] On Behalf Of Newman, Michael
(Windsor,CT-US)
Sent: Tuesday, October 13, 2009 3:19 PM
To: Pedro Ruiz; fwtools at lists.maptools.org
Subject: Re: [FWTools] SHAPE TO CSV

 

Try this command:

 

ogr2ogr -f CSV -lco GEOMETRY=AS_XY output_csv input_line.shp

 

Michael B. Newman, PE
Project Consulting Chemical Engineer

TRC
21 Griffin Road North
Windsor, CT 06095

 

From: fwtools-bounces at lists.maptools.org
[mailto:fwtools-bounces at lists.maptools.org] On Behalf Of Pedro Ruiz
Sent: Tuesday, October 13, 2009 3:16 PM
To: fwtools at lists.maptools.org
Subject: [FWTools] SHAPE TO CSV

 

Hi Lister

I need an example 

How  I write the command to turn a line shapefiel in csv?

 

ogr2ogr -f "CSV" ...........????

 

thank in advance .... Pedro 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/fwtools/attachments/20091013/8177183b/attachment.htm 


More information about the FWTools mailing list