From dc951d1777ef8165d2ce816ddf6e4ac2cfa05ca0 Mon Sep 17 00:00:00 2001 From: Mike Barry Date: Thu, 30 Nov 2023 21:35:44 -0500 Subject: [PATCH] rm --- .../planetiler/custommap/Power.java | 43 ------------------- 1 file changed, 43 deletions(-) delete mode 100644 planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/Power.java diff --git a/planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/Power.java b/planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/Power.java deleted file mode 100644 index d2a0fed4ce..0000000000 --- a/planetiler-custommap/src/main/java/com/onthegomap/planetiler/custommap/Power.java +++ /dev/null @@ -1,43 +0,0 @@ -import com.onthegomap.planetiler.FeatureCollector; -import com.onthegomap.planetiler.Planetiler; -import com.onthegomap.planetiler.Profile; -import com.onthegomap.planetiler.config.Arguments; -import com.onthegomap.planetiler.reader.SourceFeature; -import java.nio.file.Path; - -class Power implements Profile { - public void processFeature(SourceFeature source, FeatureCollector features) { - if (source.canBeLine() && source.hasTag("power", "line")) { - features - .line("power") - .setMinZoom(7) - .inheritAttrFromSource("power") - .inheritAttrFromSource("voltage") - .inheritAttrFromSource("cables") - .inheritAttrFromSource("operator"); - } else if (source.isPoint() && source.hasTag("power", "pole")) { - features - .point("power") - .setMinZoom(13) - .inheritAttrFromSource("power") - .inheritAttrFromSource("ref") - .inheritAttrFromSource("height") - .inheritAttrFromSource("operator"); - } - - } - - public String name() { - return "power"; - } - - void main(String[] argv) throws Exception { - Arguments args = Arguments.fromArgsOrConfigFile(argv); - var area = args.getString("area", "geofabrik area to download", "massachusetts"); - Planetiler.create(args) - .setProfile(new Power()) - .addOsmSource("osm", Path.of("data/sources/" + area + ".osm.pbf"), "geofabrik:" + area) - .overwriteOutput(Path.of("data/buildings.pmtiles")) - .run(); - } -}