Question

Is it possible to convert shapefile to topojson?


Badge

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?


4 replies

Userlevel 4
Badge +30

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,

Badge +22

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.
Badge +22

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

Badge

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