Skip to main content
Question

How can I convert shapefile into asc or text file?

  • Mar 9, 2018 4:50 PM UTC
  • 6 replies
  • 167 views

Forum|alt.badge.img

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

Forum|alt.badge.img
  • Author
  • Mar 9, 2018 5:32 PM UTC
I need to extract the shapefile geometry (x, y).

 

 


jdh
Contributor
Forum|alt.badge.img+41
  • Contributor
  • Mar 9, 2018 5:56 PM UTC

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
Celebrity
  • Mar 10, 2018 5:21 AM UTC

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


Forum|alt.badge.img
  • Author
  • Mar 10, 2018 3:19 PM UTC

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
Celebrity
  • Mar 11, 2018 12:10 AM UTC

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
  • Mar 12, 2018 3:54 PM UTC

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).