This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Modify style file for osm2pgsql

0

Im a beginner and want to modify a style_default file befor import to osm2pgsql, can somebody answer me please?

asked 29 Apr '23, 00:45

Rezzzat's gravatar image

Rezzzat
11223
accept rate: 0%

Hello - you might need to provide a bit more information about what you are trying to do. The word "style" is unfortunately used for several different things:

Firstly, it's used for the entire map style, so https://github.com/gravitystorm/openstreetmap-carto is the "map style" for the "standard" tiles you see at openstreetmap.org. In there is a "style" directory https://github.com/gravitystorm/openstreetmap-carto/tree/master/style which contains the actual code for the map style.

There's also https://github.com/gravitystorm/openstreetmap-carto/blob/master/openstreetmap-carto.style , which determines which columns are created in the database by osm2pgsql.

Finally lua processing files such as https://github.com/gravitystorm/openstreetmap-carto/blob/master/openstreetmap-carto.lua are sometimes referred to as "style files".

(29 Apr '23, 12:44) SomeoneElse ♦

Source code available on GitHub .