Commit 69d8c9a 1 parent fed3cf4 commit 69d8c9a Copy full SHA for 69d8c9a
File tree 2 files changed +15
-9
lines changed
tiles/src/main/java/com/protomaps/basemap
2 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 8
8
import com .protomaps .basemap .layers .Boundaries ;
9
9
import com .protomaps .basemap .layers .Buildings ;
10
10
import com .protomaps .basemap .layers .Earth ;
11
- import com .protomaps .basemap .layers .Landuse ;
12
11
import com .protomaps .basemap .layers .Landcover ;
12
+ import com .protomaps .basemap .layers .Landuse ;
13
13
import com .protomaps .basemap .layers .Natural ;
14
14
import com .protomaps .basemap .layers .PhysicalLine ;
15
15
import com .protomaps .basemap .layers .PhysicalPoint ;
@@ -133,7 +133,8 @@ static void run(Arguments args) throws Exception {
133
133
"https://osmdata.openstreetmap.de/download/water-polygons-split-3857.zip" )
134
134
.addShapefileSource ("osm_land" , sourcesDir .resolve ("land-polygons-split-3857.zip" ),
135
135
"https://osmdata.openstreetmap.de/download/land-polygons-split-3857.zip" )
136
- .addGeoPackageSource ("landcover" , sourcesDir .resolve ("daylight-landcover.gpkg" ), "https://r2-public.protomaps.com/datasets/daylight-landcover.gpkg" );
136
+ .addGeoPackageSource ("landcover" , sourcesDir .resolve ("daylight-landcover.gpkg" ),
137
+ "https://r2-public.protomaps.com/datasets/daylight-landcover.gpkg" );
137
138
138
139
// Downloader.create(planetiler.config()).add("ne", neUrl, nePath)
139
140
// .add("qrank", "https://qrank.wmcloud.org/download/qrank.csv.gz", sourcesDir.resolve("qrank.csv.gz")).run();
Original file line number Diff line number Diff line change 6
6
import com .onthegomap .planetiler .geo .GeometryException ;
7
7
import com .onthegomap .planetiler .reader .SourceFeature ;
8
8
import com .protomaps .basemap .feature .FeatureId ;
9
-
10
9
import java .util .List ;
11
10
12
11
public class Landcover implements ForwardingProfile .FeaturePostProcessor {
13
12
14
13
public void processLandcover (SourceFeature sf , FeatureCollector features ) {
15
14
String kind = sf .getString ("class" );
16
- if (kind .equals ("urban" )) kind = "urban_area" ;
17
- if (kind .equals ("crop" )) kind = "farmland" ;
18
- if (kind .equals ("grass" )) kind = "grassland" ;
19
- if (kind .equals ("trees" )) kind = "forest" ;
20
- if (kind .equals ("snow" )) kind = "glacier" ;
21
- if (kind .equals ("shrub" )) kind = "scrub" ;
15
+ if (kind .equals ("urban" ))
16
+ kind = "urban_area" ;
17
+ if (kind .equals ("crop" ))
18
+ kind = "farmland" ;
19
+ if (kind .equals ("grass" ))
20
+ kind = "grassland" ;
21
+ if (kind .equals ("trees" ))
22
+ kind = "forest" ;
23
+ if (kind .equals ("snow" ))
24
+ kind = "glacier" ;
25
+ if (kind .equals ("shrub" ))
26
+ kind = "scrub" ;
22
27
// barren is passed through
23
28
24
29
features .polygon (this .name ())
You can’t perform that action at this time.
0 commit comments