Skip to main content
Solved

Convert linestring text to line geometry

  • Oct 29, 2020 2:46 PM UTC
  • 2 replies
  • 423 views

Forum|alt.badge.img

Greetings, I'm pulling from a datasource that has a column of linestrings (example below) and i just need to convert this to line geometry in order to derive a polyline shapefile. which transformer(s) can i use? Thanks

 

"Geometry": "LINESTRING (-107.726325 39.50062, -107.72632501 39.50062042, -107.72632492 39.50062061, -107.72632458 39.50062097, -107.72632481 39.50062182, -107.72632666 39.50062407)",

Best answer by ebygomm

This looks like WKT

LINESTRING (-107.726325 39.50062, -107.72632501 39.50062042, -107.72632492 39.50062061, -107.72632458 39.50062097, -107.72632481 39.50062182, -107.72632666 39.50062407)

If you can isolate this part  you can use it in the GeometryReplacer to rebuild the line

View original
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.

2 replies

ebygomm
Evangelist
Forum|alt.badge.img+54
  • Evangelist
  • Best Answer
  • Oct 29, 2020 3:13 PM UTC

This looks like WKT

LINESTRING (-107.726325 39.50062, -107.72632501 39.50062042, -107.72632492 39.50062061, -107.72632458 39.50062097, -107.72632481 39.50062182, -107.72632666 39.50062407)

If you can isolate this part  you can use it in the GeometryReplacer to rebuild the line


Forum|alt.badge.img

This looks like WKT

LINESTRING (-107.726325 39.50062, -107.72632501 39.50062042, -107.72632492 39.50062061, -107.72632458 39.50062097, -107.72632481 39.50062182, -107.72632666 39.50062407)

If you can isolate this part  you can use it in the GeometryReplacer to rebuild the line

Thank you, that worked