d3-geo-projection
                                
                                 d3-geo-projection copied to clipboard
                                
                                    d3-geo-projection copied to clipboard
                            
                            
                            
                        d3.geoStitch should return {type: "Sphere"} for whole-earth polygons.
Currently it returns an empty Polygon, which is invalid!
See https://bl.ocks.org/mbostock/83c0be21dba7602ee14982b020b12f51 for an example.
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.
I've adapted your bl.ock here https://beta.observablehq.com/@fil/geotiff-contours-ii