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

Delete Admin borders from postgresql map data

1

Hi,

I have setup my own tile server and rendered India Map. I want to remove admin boundary. It was suggested in a post that you can achieve this by deleting admin borders from postgresql map database.

Can somebody help and tell me what do I need to do to remove admin boundary from the map I am rendering from my server.

asked 28 Nov '18, 13:01

Reshma%20Maner's gravatar image

Reshma Maner
235303136
accept rate: 0%


One Answer:

0

You should look at the corresponding layer configuration in the osm-carto style (see https://github.com/gravitystorm/openstreetmap-carto/blob/master/project.mml#L1140 and https://github.com/gravitystorm/openstreetmap-carto/blob/master/admin.mss) (if you are using that) and either remove the corresponding data from the database (not something that I would recommend), or simply remove/disable the corresponding layer configuration in the style (you could then add a border layer from another source for example).

answered 30 Nov '18, 13:15

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 30 Nov '18, 13:18

Source code available on GitHub .