d3-geo-projection icon indicating copy to clipboard operation
d3-geo-projection copied to clipboard

d3.geoStitch should return {type: "Sphere"} for whole-earth polygons.

Open mbostock opened this issue 8 years ago • 2 comments

Currently it returns an empty Polygon, which is invalid!

See https://bl.ocks.org/mbostock/83c0be21dba7602ee14982b020b12f51 for an example.

mbostock avatar Apr 08 '17 00:04 mbostock

There’s also the case where you have a MultiPolygon and all the resulting polygons are empty, which should be treated as a Sphere if the input MultiPolygon was non-empty.

mbostock avatar Apr 08 '17 16:04 mbostock

I've adapted your bl.ock here https://beta.observablehq.com/@fil/geotiff-contours-ii

Fil avatar Jan 20 '19 11:01 Fil