Skip to content

Commit

Permalink
Print the tippecanoe command
Browse files Browse the repository at this point in the history
  • Loading branch information
dabreegster committed Oct 4, 2023
1 parent a426362 commit ec42039
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aggregate_routes/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,8 @@ fn main() -> Result<()> {

if !args.no_output_pmtiles {
timer.start("Converting to pmtiles for rendering");
let status = Command::new("tippecanoe")
.arg(format!("{directory}/output/output.geojson"))
let mut cmd = Command::new("tippecanoe");
cmd.arg(format!("{directory}/output/output.geojson"))
.arg("-o")
.arg(format!("{directory}/output/rnet.pmtiles"))
.arg("--force") // Overwrite existing output
Expand All @@ -178,9 +178,9 @@ fn main() -> Result<()> {
.arg("--extend-zooms-if-still-dropping")
// Plumb through the config as a JSON string in the description
.arg("--description")
.arg(serde_json::to_string(&output_metadata)?)
.status()?;
if !status.success() {
.arg(serde_json::to_string(&output_metadata)?);
println!("Running: {cmd:?}");
if !cmd.status()?.success() {
bail!("tippecanoe failed");
}
timer.stop();
Expand Down

0 comments on commit ec42039

Please sign in to comment.