SHAPE TO CSV

View: New views
4 Messages — Rating Filter:   Alert me  

SHAPE TO CSV

by Pedro Ruiz :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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

_______________________________________________
FWTools mailing list
FWTools@...
http://lists.maptools.org/mailman/listinfo/fwtools
http://fwtools.maptools.org/

Re: SHAPE TO CSV

by Newman, Michael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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@... [mailto:fwtools-bounces@...] On Behalf Of Pedro Ruiz
Sent: Tuesday, October 13, 2009 3:16 PM
To: fwtools@...
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


_______________________________________________
FWTools mailing list
FWTools@...
http://lists.maptools.org/mailman/listinfo/fwtools
http://fwtools.maptools.org/

Re: SHAPE TO CSV

by Newman, Michael :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

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@... [mailto:fwtools-bounces@...] On Behalf Of Newman, Michael (Windsor,CT-US)
Sent: Tuesday, October 13, 2009 3:19 PM
To: Pedro Ruiz; fwtools@...
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@... [mailto:fwtools-bounces@...] On Behalf Of Pedro Ruiz
Sent: Tuesday, October 13, 2009 3:16 PM
To: fwtools@...
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


_______________________________________________
FWTools mailing list
FWTools@...
http://lists.maptools.org/mailman/listinfo/fwtools
http://fwtools.maptools.org/

Re: SHAPE TO CSV

by Simon O'Keefe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Pedro,

Try this:
ogr2ogr -f CSV C:\Temp\OutputFolder C:\Temp\InputFile.SHP

This will create a folder called C:\Temp\OutputFolder and put the CSV
file in there. In my experience, I haven't been able to get this to
work if the output folder already exists.

Cheers,

Simon
_______________________________________
Simon O'Keefe
Geospatial Systems Developer
Groundtruth Mapping Systems
Level 2, 140 Queen Street
Melbourne VIC 3000 Australia
phone:  +61 409 413 890
email:  simon.okeefe@...
web:    http://www.groundtruth.com.au
_______________________________________


2009/10/14 Pedro Ruiz <pedrojoseruiz@...>:

> 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
> _______________________________________________
> FWTools mailing list
> FWTools@...
> http://lists.maptools.org/mailman/listinfo/fwtools
> http://fwtools.maptools.org/
>
>
_______________________________________________
FWTools mailing list
FWTools@...
http://lists.maptools.org/mailman/listinfo/fwtools
http://fwtools.maptools.org/