Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New master build needs specifying default style #515

Closed
hyperknot opened this issue Dec 12, 2015 · 3 comments · Fixed by #537
Closed

New master build needs specifying default style #515

hyperknot opened this issue Dec 12, 2015 · 3 comments · Fixed by #537
Milestone

Comments

@hyperknot
Copy link

A month or so ago, before the CMAKE version I was able to run this command.

osm2pgsql --create --slim --drop --hstore --flat-nodes flat.bin --cache 26000 --number-processes 8 --database osm planet-latest.osm.pbf

Today, with the new CMAKE build, the command fails with:

Osm2pgsql failed due to ERROR: Couldn't open style file './default.style': No such file or directory

Adding the --style argument as below, fixes it.

--style /usr/local/share/osm2pgsql/default.style 

OS is FreeBSD 10.2.

@ghost
Copy link

ghost commented Jul 23, 2024

I was running into this on arch linux. It never gave an error but because no styles had been specified all my columns like attr:housenumber was null. Took me awhile to realize it was not using the default styles though the file was found /usr/share/osm2pgsql/default.style

@pnorman
Copy link
Collaborator

pnorman commented Jul 24, 2024

This is a 8 year old issue that was fixed long ago. We do not support versions that old.

@ghost
Copy link

ghost commented Jul 24, 2024

Clearly this is old but I found this as a result of googling this very issues so its relevant to say if you run into unexpected behavior this is likely an issue. For me I was not aware there even was a default styles let alone it was not loading by default and that I had to be specific about it. I assume on its own it's probably a bug even for newer supported versions which I'm likely running. I'm not even asking for you to address this, I'm merely making a statement. Also I'm running 1.11.0. Also regressions do happen otherwise they would not be called regressions. But thanks for making feel stupid for even trying to provide any feed back. Lesson learned. Good luck

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

Successfully merging a pull request may close this issue.

3 participants