Skip to main content
Question

Is it possible to convert shapefile to topojson?

  • July 17, 2017
  • 4 replies
  • 43 views

Forum|alt.badge.img

Is it possible to convert shape file to topojson? I didn't see this format in options, but perhaps it is possible to customize in a way?

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.

4 replies

danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • July 17, 2017

Hi @jitkam, is not possible to work with topojson.

Has a link suggested Idea to implement in future Beta version

https://knowledge.safe.com/idea/18867/topojson.html

Thanks,


jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • July 18, 2017

There is no easy solution, but you can buildup the topojson using the TopologyBuilder to create the topology, and a JSONTemplater to build up the json as per the specification https://github.com/topojson/topojson-specification/blob/master/README.md.

 

 

The easiest way to get the arc strings is probably to use the geometryExtractor as ESRIJSON and replace the word paths with arcs.

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • July 18, 2017

Alternatively, there is a javascript TopoJSON Server module you may be able to leverage in FME via the JavaScriptCaller. https://github.com/topojson/topojson-server/blob/master/README.md#topology


Forum|alt.badge.img
  • Author
  • July 18, 2017

Alternatively, there is a javascript TopoJSON Server module you may be able to leverage in FME via the JavaScriptCaller. https://github.com/topojson/topojson-server/blob/master/README.md#topology

Thank you!