Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

osm2pgsql isn't complaining about a defective style file #2571

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments
Closed

osm2pgsql isn't complaining about a defective style file #2571

openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: TobWen
[Submitted to the original trac issue database at 2.20pm, Wednesday, 23rd December 2009]

This defect occured on osm2pgsql SVN version 0.69-19198P.
commandline: ./osm2pgsql -S . -c -l germany.osm.bz2

osm2pgsql does not complain about a defective style file. It proceeds working and ends without an error.

@openstreetmap-trac
Copy link
Author

Author: Ldp
[Added to the original trac issue at 7.31pm, Wednesday, 23rd December 2009]

In this case, you gave it a directory, instead of the actual style file.

Still, would be nice if osm2pgsql would abort or at least warn the user.

@openstreetmap-trac
Copy link
Author

Author: TobWen
[Added to the original trac issue at 7.32pm, Wednesday, 23rd December 2009]

True! This seems to be working:

./osm2pgsql -S ./default.style -c -l germany.osm.bz2

@openstreetmap-trac
Copy link
Author

Author: jburgess777[at]googlemail.com
[Added to the original trac issue at 11.59pm, Thursday, 11th February 2010]

Thanks for the report. I just submitted a fix for this in r19974. osm2pgsql will now abort if it gets an error when reading the style file or it does not define any valid columns.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant