You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While we are at it, I haven’t investigated closely, but countries50’s Antarctica gets a bounding box that does not go all the way to the south pole.
Graphically, both of these issues result in:
Edit:
uh....
Ring 0 of the polygon:
{varantarctica=JSON.parse(JSON.stringify(countries50.features[239].geometry));antarctica.coordinates=antarctica.coordinates.slice(2,3);// Polygon 2 of the MultiPolygonantarctica.coordinates[0]=antarctica.coordinates[0].slice(0,1);// Ring 0 of the Polygonreturnd3.geoBounds(antarctica);}
-> [[-180,-90], [180,90]]
Ring 1 of the polygon:
{varantarctica=JSON.parse(JSON.stringify(countries50.features[239].geometry));antarctica.coordinates=antarctica.coordinates.slice(2,3);// Polygon 2 of the MultiPolygonantarctica.coordinates[0]=antarctica.coordinates[0].slice(1,2);// Ring 1 of the Polygonreturnd3.geoBounds(antarctica);}
-> [[-180,-90], [180,-63.22635473573485]]
Rings 0 and 1 together:
{varantarctica=JSON.parse(JSON.stringify(countries50.features[239].geometry));antarctica.coordinates=antarctica.coordinates.slice(2,3);// Polygon 2 of the MultiPolygonantarctica.coordinates[0]=antarctica.coordinates[0];// Both rings of the Polygonreturnd3.geoBounds(antarctica);}
If I do:
The result is
[[-180,-16.541749856561054],[180,-16.43238163897263]]
I would instead expect the left longitude to be 179.something and the right longitude to be -179.something.
After conversion from topojson to geojson, the polygon in question has coordinates:
The text was updated successfully, but these errors were encountered: