Skip to content

Commit

Permalink
Add no url geojson method (#1155)
Browse files Browse the repository at this point in the history
  • Loading branch information
msbarry authored Jan 25, 2025
1 parent 8cb867f commit a5cc284
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,11 @@ public Planetiler addGeoJsonSource(String name, Path defaultPath, String default
() -> GeoJsonReader.process(name, List.of(path), featureGroup, config, profile, stats)));
}

/** Same as {@link #addGeoJsonSource(String, Path, String)} except don't download a remote file. */
public Planetiler addGeoJsonSource(String name, Path defaultPath) {
return addGeoJsonSource(name, defaultPath, null);
}

/**
* Adds a new Natural Earth sqlite file source that will be processed when {@link #run()} is called.
* <p>
Expand Down

0 comments on commit a5cc284

Please sign in to comment.