Die Suche ergab 5 Treffer

von grums
Sa Apr 27, 2019 9:02 pm
Forum: Map Composer
Thema: Elevation: round/chop?
Antworten: 7
Zugriffe: 2465

Re: Elevation: round/chop?

Thanks, Nop I think you misunderstood my suggestion for a new feature in MC: i never intended you to code anything to circumvent this problem, my suggestion was of a more general character: would you enhance the osmosis command to include extra, user-specified parameters, in this case a transform? M...
von grums
Fr Apr 26, 2019 1:22 pm
Forum: Map Composer
Thema: Elevation: round/chop?
Antworten: 7
Zugriffe: 2465

Re: Elevation: round/chop?

I managed to transform a small osm.pbf clip, stripping decimal point and decimal(s) in all ele tags: osmosis --read-pbf file=malaga-ORIGINAL.osm.pbf --tag-transform file=ele-nodecimals.xml --write-pbf omitmetadata=true file=malaga.osm.pbf ele-nodecimals.xml : <?xml version="1.0"?> <translations> <tr...
von grums
Fr Apr 26, 2019 10:49 am
Forum: Map Composer
Thema: Elevation: round/chop?
Antworten: 7
Zugriffe: 2465

Re: Elevation: round/chop?

I agree that the best approach is to change the OSM data. I skimmed through the mkgmap style manual : http://www.mkgmap.org.uk/doc/pdf/style-manual.pdf but I can't see any obious way to truncate or round a value... Maybe an OSMOSIS transform ( https://wiki.openstreetmap.org/wiki/Osmosis/TagTransform...
von grums
Mi Apr 24, 2019 11:27 pm
Forum: Map Composer
Thema: Elevation: round/chop?
Antworten: 7
Zugriffe: 2465

Re: Elevation: round/chop?

Nop, in the thread referred to in my first post the answer is I think it uses mkgmap and therefore you might edit the style rules to use rounded values - where it is Map Composer . Is he right, and if so: are these style rules under my control or buried in your java libraries? I know that I can just...
von grums
Mi Mär 27, 2019 2:35 pm
Forum: Map Composer
Thema: Elevation: round/chop?
Antworten: 7
Zugriffe: 2465

Elevation: round/chop?

Can Elevation values be made into integers using MC?
I see the Ersetzung Pässe mit Höhenangabe darstellen which is desirable, but how do I cut away the decimals (if present)?

Background: https://forum.openstreetmap.org/viewtop ... pid=743447