mapshaper

QGIS generated shapefile malformed when converted to topojson by mapshaper

梦想与她 提交于 2019-12-12 01:55:19
问题 So I started with a really small example that is working well. I used QGIS to draw a line and then converted it to topojson with mapshaper . Then I use D3.js to load and visualize it. This is the bigger but not working example: jsfiddle.net/kwoxer/kpL1uyy2/2/ As you can see it not showing just one line, it is showing crazy lines as if the convert gone wrong. Already tested different browsers. But as I said I already did a small line before with QGIS, converted it, and everything was fine. So

d3 toposjon map troubleshooting … why does it look like all zig zags and shards?

耗尽温柔 提交于 2019-12-11 12:13:59
问题 UPDATE: solved, kind of. I spent some time learning ogr2ogr and topojson and made a topojson that works beautifully in D3. I'm not sure why the file spit out by mapshaper.org turned into shards in my hands; on their site, the file displays fine. ORIGINAL POST: There may be an answer out there, but how do you ask google "why does my d3 map look like zig zags and shards?" FWIW, "search by image" turned up nothing. ;) I suspect it's something with wrong projection or wrong conversion from