Skip to content

Commit a99dada

Browse files
committed
Add comment
1 parent e7de595 commit a99dada

File tree

1 file changed

+4
-0
lines changed
  • tiles/src/main/java/com/protomaps/basemap/layers

1 file changed

+4
-0
lines changed

tiles/src/main/java/com/protomaps/basemap/layers/Earth.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,13 @@ public void processNe(SourceFeature sf, FeatureCollector features) {
3030
} else if (sourceLayer.equals("ne_10m_land")) {
3131
features.polygon(this.name()).setZoomRange(5, 5).setBufferPixels(8).setAttr("kind", "earth");
3232
}
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.
3336
if (sourceLayer.equals("ne_10m_glaciated_areas")) {
3437
try {
3538
Point centroid = (Point) sf.centroid();
39+
// Web Mercator Y = 0.7 is roughly 60 deg South, i.e., Antarctica.
3640
if (centroid.getY() > 0.7) {
3741
features.polygon("landcover")
3842
.setAttr("kind", "glacier")

0 commit comments

Comments
 (0)