I am trying to follow the excellent tutorial by Mike Bostock on medium with my own data.
Instead of a GeoJSON of California, I am trying to fit a small parcel somewhere in Norway to the map.
My input GeoJSON file is here, and looks like this:
Instead of using geproject to California Albers, I thought it would be better to use Transverse Mercator:
geoproject 'd3.geoTransverseMercator().fitSize([960, 960], d)' < se.json > se-transverse.json
The result of the project is [here]4, and it gave me the result I was hoping and expecting; all coordinates within the fitSize([960, 960] size. I am now wondering what I am missing to map this to scale. The resulting SVG I am getting after doing
geo2svg < se-transverse.json > se-transverse.svg
Which is just a tiny dot. It's the polygon, but not at scale. I thought the fitsize parameter fixed this, but there must be something else I am doing wrong.