logo separator

[mkgmap-dev] Strange behavior of contour lines for different resolutions

From Daniel Vogelbacher daniel at vogelbacher.name on Sun Mar 26 14:01:23 BST 2023

On 3/18/23 13:21, Gerd Petermann wrote:
> Hi Daniel,
> 
> I don't know for sure but I think you may have to set option --levels or --overview-levels to the values that you want.
> There is a hard-coded default for --levels in mkgmap:
> public static final String DEFAULT_LEVELS = "0:24, 1:22, 2:20, 3:18, 4:16";
> and the options file in the default style overwrites this:
> levels = 0:24, 1:22, 2:20, 3:18
> overview-levels = 4:17, 5:16, 6:15, 7:14, 8:13
> So, you have different places to check.

I've found the levels line in the *.cfg file I use.
After adjustment, it works now, thanks!

> 
> Gerd
> 
> ________________________________________
> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag von Daniel Vogelbacher <daniel at vogelbacher.name>
> Gesendet: Samstag, 18. März 2023 07:36
> An: mkgmap-dev at lists.mkgmap.org.uk
> Betreff: [mkgmap-dev] Strange behavior of contour lines for different   resolutions
> 
> Hi all,
> 
> I want to generate an overlay map with contour lines. The following
> style works as expected:
> 
> contour=elevation & contour_ext=elevation_minor  & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x20 resolution 24]
> contour=elevation & contour_ext=elevation_medium & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x21 resolution 20]
> contour=elevation & contour_ext=elevation_major  & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x22 resolution 17]
> 
> 
> Major lines are visible up from resolution 17, medium from resolution 20
> and minor on highest resolution (24).
> 
> If I change the style to:
> 
> contour=elevation & contour_ext=elevation_minor  & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x20 resolution 24]
> contour=elevation & contour_ext=elevation_medium & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x21 resolution 21]
> contour=elevation & contour_ext=elevation_major  & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x22 resolution 17]
> 
> 
> Major lines are visible up from resolution 17, but together with medium
> lines, minor lines are visible starting from resolution 21, too.
> Same effect for choosing resolution 22 or 23 for medium lines. Medium
> and minor lines are visible always together for medium-resolutions >= 21.
> 
> As the effect is the same on QMapShack and GPSMap 66s, I assume the
> problem is in the map.
> 
> Any ideas what can cause the problem? What I finally want to build is:
> 
> contour=elevation & contour_ext=elevation_major  & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x20 resolution 18-21 continue]
> 
> contour=elevation & contour_ext=elevation_minor  & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x20 resolution 24]
> contour=elevation & contour_ext=elevation_medium & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x21 resolution 23]
> contour=elevation & contour_ext=elevation_major  & (ele > 0 | ele < 0) {
> name '${ele|conv:m=>ft}'; }           [0x22 resolution 22]
> 
> 
> I've reduced this to the styles above to isolate the problem.
> 
> mkgmap r4907 here. Tried r4900 as well.
> 
> java -jar
> fzk-mde-garmin/Freizeitkarte-Entwicklung/tools/mkgmap/mkgmap.jar
> --copyright-message="Sonny DEM" --series-name="DEM Europe 10m"
> --description="DEM for Europe v17 10m 250m/50m" --family-name="DEM
> Europe" --country-name=Europe --country-abbr=EU --area-name=EU
> --product-version="202303" --reduce-point-density=0.2
> --reduce-point-density-polygon=0.2 --min-size-polygon=1
> --name-tag-list=name,place_name,loc_name --order-by-decreasing-area
> --style-file=contourmap/style/ --latin1 --transparent --no-poi-address
> --gmapsupp -c contourmap/mkgmap.europe.cfg -c
> /workbench/main/osm/splitter/contours_v17_10m_250_50/template.args
> contourmap/typ/contours.txt
> 
> 
> 
> --
> Best regards / Mit freundlichen Grüßen
> Daniel Vogelbacher
> 
> --
> Best regards / Mit freundlichen Grüßen
> Daniel Vogelbacher
> 
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

-- 
Best regards / Mit freundlichen Grüßen
Daniel Vogelbacher



More information about the mkgmap-dev mailing list