Skip to main content
Question

Read in GeoSpan from CSV

  • Jun 14, 2022 6:53 AM UTC
  • 2 replies
  • 50 views

nedwaterman
Contributor
Forum|alt.badge.img+9

Hi all,

 

I have been given a csv file containing a GeoSpan column representing line data. Any idea how I read this into FME and create the geometry from the GeoSpan?

 

Thanks

NCapture

2 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • Jun 14, 2022 8:14 AM UTC

Try GeometryReplacer.

You have to figure out what type of Geometry Encoding your data has. I would start with Hex Encoded OGC WKB (because of the 0x in front).

If nothing seems to work, trim the 0x from the start of the string and try again.


nedwaterman
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • Jun 14, 2022 9:04 AM UTC

Thank you - the encoding is supposed to be OCB WKB but the majority of features are rejected. I'll refer back to the provider as error is in their output I think.