0

There are many articles about how convert GeoJSON to TopoJSON using JavaScript, but I could not find how to convert TopoJSON to GeoJSON in the browser.

Response:

Using http://d3js.org/topojson.v1.min.js, TopoJSON API’s feature() method we can convert a high-level TopoJSON object back into a GeoJSON structure:

geojson = topojson.feature(topojson,topojson.objects[topologyKey]);
  • 1
    Which is the best article you could find? At what point did you get stuck? – Mesa Jan 28 at 19:55
  • I find the answer, thx very much, using the TopoJson: d3js.org/topojson.v1.min.js, i can convert topoJson in GeoJson: – gurrumo Jan 28 at 20:20
  • Using the TopoJSON API’s feature() method we can convert a high-level TopoJSON object back into a GeoJSON structure – gurrumo Jan 28 at 20:21
  • 1
    Welcome to GIS SE! As a new user, please be sure to take the short tour to learn about this site's focused Q&A format. Please also consider editing your question to address @Mesa's comment. And if you found your own solution, you can post (and accept) it as an answer! – Andy Jan 28 at 20:22
  • 1
    Please write your self-answer in the area reserved for answers and not inside the question body. – PolyGeo Jan 28 at 21:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.