Skip to main content
Question

How can I convert shapefile into asc or text file?


Forum|alt.badge.img

I´d like to know how can I convert the shapefile into (formated) asc file.

6 replies

Forum|alt.badge.img
  • Author
  • March 9, 2018
I need to extract the shapefile geometry (x, y).

 

 


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • March 9, 2018

You can use a CoordinateExtractor followed by a listExploder to get one set of x,y coordinates per fetaure (per line when written out as a text file), but without knowing the exact format of the the acc file, it's a little hard to give concrete suggestions.


takashi
Evangelist
  • March 10, 2018

What is the geometry type of your Shapefile dataset? Point?


Forum|alt.badge.img
  • Author
  • March 10, 2018

My shapefile geometry is point.

I really don´t worry about the asc format. My main objective is extract the xy coordinate from shapefile geometry.


takashi
Evangelist
  • March 11, 2018
mdamorim75 wrote:

My shapefile geometry is point.

I really don´t worry about the asc format. My main objective is extract the xy coordinate from shapefile geometry.

As @jdh suggested, you can use the CoordinateExtractor. If the geometry type is single point (not multipoint), you can use the transformer with these parameters.

 

  • Mode: Specify Coordinate
  • Coordinate Index: 0

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • March 12, 2018

Depends on what you want to do with the stored geometry.

Depending on that and the geometry type of the shapefile you have multiple options.

Apart from creating a geometry string yourself (more complex) u can use a geometry extractor (to WKT for instance).


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings