File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
tiles/src/main/java/com/protomaps/basemap/layers Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -30,9 +30,13 @@ public void processNe(SourceFeature sf, FeatureCollector features) {
30
30
} else if (sourceLayer .equals ("ne_10m_land" )) {
31
31
features .polygon (this .name ()).setZoomRange (5 , 5 ).setBufferPixels (8 ).setAttr ("kind" , "earth" );
32
32
}
33
+ // Daylight landcover uses ESA WorldCover which only goes to a latitude of roughly 80 deg S.
34
+ // Parts of Antarctica therefore get no landcover = glacier from Daylight.
35
+ // To fix this, we add glaciated areas from Natural Earth in Antarctica.
33
36
if (sourceLayer .equals ("ne_10m_glaciated_areas" )) {
34
37
try {
35
38
Point centroid = (Point ) sf .centroid ();
39
+ // Web Mercator Y = 0.7 is roughly 60 deg South, i.e., Antarctica.
36
40
if (centroid .getY () > 0.7 ) {
37
41
features .polygon ("landcover" )
38
42
.setAttr ("kind" , "glacier" )
You can’t perform that action at this time.
0 commit comments