Welcome, Guest. Please login or register.

Login with username, password and session length
Forums Search:  


Author Topic: Polygon renders differently on GPSMAP64 and etrex30  (Read 4057 times)

glendeni

  • Mapper
  • ***
  • Posts: 80
  • Karma: 0
    • View Profile
Polygon renders differently on GPSMAP64 and etrex30
« on: January 18, 2017, 07:41:19 PM »
I've produced a map which renders differently on my GPSMAP64 and etrex30. Specifially, I've produced an .IMG file which when placed in the "Garmin" directory of the GPSMAP64 renders "correctly", with contour lines displaying above a polygon.  But when loaded onto the etrex30 the polygon is rendered _above_ the contour lines, so they cannot be seen.

That map was created by combining separate IMG files for the contours, polygon, and etc. I also used those to produce a Windows .EXE file which when in installed into the Windows registry displays correctly in BaseCamp.  But when BaseCamp then installs the file to the GPS, again on the etrex30 the polygon is rendered above the contour lines.

I couldn't find any reference in previous postings to such behavior.  Has anyone else seen disparities between the two platforms ?

popej

  • Expert Advisor
  • *****
  • Posts: 329
  • Karma: 30
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #1 on: January 19, 2017, 05:34:02 AM »
Are you sure, that contours are compiled as transparent map?

glendeni

  • Mapper
  • ***
  • Posts: 80
  • Karma: 0
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #2 on: January 19, 2017, 11:45:19 AM »
Those were compiled so long ago that I can't be sure - I have notes made back then, but could not be certain that I had not later made some change.  So I recompiled those, with the mkgmap compiler with --transparent flag (which seems to override whatever "Transparent" is set to in the .mp file, but that was already "Y").  FWIW I've now upgraded the mkgmap compiler to the most recent version,  vice what was used back in the original compilation.

Combining all IMGs, I get the same result as before.  Interestingly, the etrex is so slow that the map-drawing occurs in visible stages and I can see the contours being drawn but then afterward being overlaid by the polygon.

glendeni

  • Mapper
  • ***
  • Posts: 80
  • Karma: 0
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #3 on: January 20, 2017, 12:22:48 AM »
I must correct what I said.  I later discovered that a map I'd previously downloaded to the etrex via BaseCamp in previous testing was still on it when I loaded my new IMG file (the IMG files  have slightly different names) and the former apparently took precedence - so that was what I was seeing and reporting on.  When I removed that, the contour and stream lines were ABOVE the polygon.  So your suspicion was correct.

But that also triggered a memory of why years ago I had decided to change to make them non-transparent.  For some strange reason when compiled with mkgmap with --transparent (even with the latest compiler) the MP "Level" command is apparently not respected, at least to my understanding, since even with
  Levels=2
  Level0=24
  Level1=23
the lines are being displayed at ALL zoom levels, which is rather ugly at the lower zooms when everything blends together.  I don't think I can live with that.  So i will go back to not using --transparent and simply stop trying to produce a polygon, since it is less important than the contour and stream lines.

popej

  • Expert Advisor
  • *****
  • Posts: 329
  • Karma: 30
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #4 on: January 20, 2017, 02:08:28 AM »
Probably last layer of your contour map is always visible. You could create transparent map with more layers, so last one should be empty.

Red90

  • Sr. Member
  • ****
  • Posts: 171
  • Karma: 12
    • View Profile
    • Southern Alberta Trail Maps
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #5 on: January 20, 2017, 09:00:34 AM »
Are you not suppose to always have an empty last layer?

popej

  • Expert Advisor
  • *****
  • Posts: 329
  • Karma: 30
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #6 on: January 20, 2017, 11:32:02 AM »
My understanding is that there are 2 kind of layers in Garmin img. One type is a real layer with data, other type is a virtual layer with no real data. Last layer is always virtual and it doesn't cover data from the layer below. You need to create real empty layer to hide data.

I think cgpsmapper always make virtual layer, when there is no data  (and you can't put data on last one). For my contour maps I put a single empty label (point type 0x2800) one level above contours, to get real empty layer. Mkgmap always makes real layers (and then adds a virtual one on top), it is enough to define more levels to get contours hidden.

glendeni

  • Mapper
  • ***
  • Posts: 80
  • Karma: 0
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #7 on: January 20, 2017, 03:00:28 PM »
Sorry, but reading the responses has definitely confused me.  For thing, I think in terms of layers being above or below  - and "last" confuses me.  To me a "last" layer would be the "bottom most" layer, i.e. the last one an eye would see when looking down on the map - but the context seemingly implies it here means the "top most" layer.

« Last Edit: January 20, 2017, 04:06:23 PM by glendeni »

popej

  • Expert Advisor
  • *****
  • Posts: 329
  • Karma: 30
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #8 on: January 20, 2017, 05:14:28 PM »
Yes, last for me is the top most. Assuming that top layer means layer with the lowest resolution ;)

glendeni

  • Mapper
  • ***
  • Posts: 80
  • Karma: 0
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #9 on: January 20, 2017, 09:24:42 PM »
Probably last layer of your contour map is always visible. You could create transparent map with more layers, so last one should be empty.

My interpretation of what you are saying is that in the MP file if one has polylines all defined for "Data0" then if "Levels=1" (which is a mistake since there should always bean empty level)  the lines will be visible at the Data0 level and also all levels above, but if "Levels=2" and "Level1" is set then the lines will not be visible for levels at and above that value
« Last Edit: January 20, 2017, 09:43:56 PM by glendeni »

popej

  • Expert Advisor
  • *****
  • Posts: 329
  • Karma: 30
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #10 on: January 21, 2017, 04:16:31 AM »
Yes, this is the idea. Only you have to force cgpsmapper to create a real layer by putting some real object at this level. Or use mkgmap.

Or you can create multilayered contour map, where on topmost layer are only selected main contours, which won't clutter map.

glendeni

  • Mapper
  • ***
  • Posts: 80
  • Karma: 0
    • View Profile
Re: Polygon renders differently on GPSMAP64 and etrex30
« Reply #11 on: January 22, 2017, 08:45:47 PM »
Thanks to your help, I now have the map displaying correctly with contours+streams displayed only at higher map zoom levels and a polygon being displayed at all levels but always below the contour+stream lines.

 

anything