Skip to content

Commit

Permalink
Merge pull request #2113 from joto/check-for-flex
Browse files Browse the repository at this point in the history
Check that we are using flex output in osm2pgsql-gen
  • Loading branch information
lonvia authored Dec 22, 2023
2 parents 672bc7e + 26dd4e6 commit 4a8f42b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gen/osm2pgsql-gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,6 +796,11 @@ int main(int argc, char *argv[])
}
}

if (properties.get_string("output", "flex") != "flex") {
throw std::runtime_error{
"osm2pgsql-gen only works with flex output"};
}

bool const updatable = properties.get_bool("updatable", false);
genproc_t gen{style, conninfo, dbschema, append, updatable, jobs};
gen.run();
Expand Down

0 comments on commit 4a8f42b

Please sign in to comment.