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

How to edit the map boundaries for local OSM server?

0

Hi,

I have a local OSM map server setup using ModTile and Renderd. I have two requirements:

  1. How to edit the administrative boundaries of a country?
  2. How can I change color of boundary?

asked 12 Jul '17, 10:21

Reshma%20Maner's gravatar image

Reshma Maner
235303136
accept rate: 0%


One Answer:

0

There are a number of ways that I can think of to do what you want, plus more that I haven't though of:

  • don't use any borders directly from OSM by disabling the entry in your style, extract the boundaries from your DB in to, say a .SHP file, edit with QGIS, add shapefile as a separate layer to the style, with whatever styling your want.
  • just replace the border in question by not rendering it specifically (modify the query in the style), and then add a modified boundary as above (note: this will be a bit wobbly as OSM IDs are not stable, and will likely be ugly as other borders will not match up)

Changing the colour requires changing the style for the specific border.

As said there are probably other ways of doing this, but as you can see, none of them are likely to be super simple.

answered 13 Jul '17, 09:39

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

edited 19 Jul '18, 13:26

don't use any borders directly from OSM by disabling the entry in your style

Can you help me how to implement this? Which file exactly to modify?

(19 Jul '18, 12:33) Reshma Maner

Which style are you currently using?

(19 Jul '18, 13:27) SimonPoole ♦
1

GIven your other question you probably want to read this post by PlaneMad: https://www.openstreetmap.org/user/PlaneMad/diary/38176.

There are also multiple other questions on this site relating to Jammu and Kashmir. Most of the answers are still applicable and may be of help to you.

(19 Jul '18, 18:36) SK53 ♦

Source code available on GitHub .