You are not logged in.

Announcement

*** NOTICE: forum.openstreetmap.org is being retired. Please request a category for your community in the new ones as soon as possible using this process, which will allow you to propose your community moderators.
Please create new topics on the new site at community.openstreetmap.org. We expect the migration of data will take a few weeks, you can follow its progress here.***

#1 2011-03-09 14:02:15

stephanpls
Member
Registered: 2011-03-07
Posts: 21

Removing objects

I get more and more experience in converting .osm into .img using mkgmap. What I see on my Garmin unit is, among many other useful things, a bunch of white lines: boundaries. I do not need them, apart from national boundaries. How to leave them out with mkgmap? I can't find the proper option.

Offline

#2 2011-03-09 14:06:38

Lambertus
Inactive
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 3,269
Website

Re: Removing objects

There a many possible options to attack this problem, from adding a TYP file, adapting the stylesheet to ignore the boundaries or preprocessing the data with e.g. Osmosis to remove the boundaries before feeding the data to Mkgmap.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#3 2011-03-09 14:24:00

stephanpls
Member
Registered: 2011-03-07
Posts: 21

Re: Removing objects

Thank you. Nice home work to do :-)

Offline

#4 2011-05-04 09:36:34

laufkaefer
Member
Registered: 2009-09-25
Posts: 91

Re: Removing objects

best way: don't process these lines at all. that simply means deleting the appropriate code from the style.

example from the lines file:

#this would process national borders, but no other borders
boundary=national | (boundary=administrative & admin_level=2) [0x1e resolution 16])

leave out/delete all other boundary=administrative lines.

for more complex problems, have a look at the delete command, here: http://wiki.openstreetmap.org/wiki/Mkgm … les#delete

Offline

Board footer

Powered by FluxBB