Hello all,
With d3js, it’s easy use d3.geopath(projection) to switch from a geojson file to a path svg. It’s very usefull. But is it possible to simply project the coordinates to have a json file with the same structure but with the projected coordinates ? Or, is it possible to go from a path svg to a json file with the coordinates of the polygons ? What I’m trying to find out is if it is possible to switch from a json file with polygons defined by latitude and longitude coordinates to a json file with the same structure, but with coordinates that match the svg document? Any help is welcome.
I think d3.geoProject is what you’re looking for?
2 Likes
Thank you Fil, This is exactly what I was looking for.