Skip to main content

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?

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,


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.

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


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!

 

 


Reply