Author Topic: [Theme] elevation contour only  (Read 1757 times)

Offline barbudor

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
[Theme] elevation contour only
« on: February 21, 2016, 21:12:50 »
Hello

Does anyone knows about an on-line map source for transparent elevation contour lines that could be used as an overlay over satellite imagery maps ?

I am looking to achieve something like in Strava (see below) by adding elevation contour on-top of Google or others satellite  maps.

Thanks in advance

best regards

barbudor

« Last Edit: March 04, 2016, 15:51:14 by gynta »
 

Offline john_percy

  • Padavan of Locus
  • ***
  • Posts: 391
  • Thanked: 17 times
    • View Profile
  • Device: MotoG
It would be quite easy to do that with a custom theme for an offline vector map.

In the screenshot below, the overlay map is an appropriate vector map, the theme is contours (attached). Blend mode is SRC_OVER.

Both Locus Maps and OpenAndroMaps maps have contour lines with height marked for major intervals.



Updated upload
« Last Edit: February 22, 2016, 19:45:43 by john_percy »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10108
  • Thanked: 73 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Thanks @john_percy! My suggestion may be exactly same, there is probably no better solution (at least I'm not aware of any better).
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline barbudor

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
Hi John

Thanks, it's working great.

I am not yet much aware about XML theme files.
I would like to try to make the lines more visibles.
What should I look for in the XML file (color, thickness, ...) ?

It would be great if I could make the countour line as a pair of black+white lines side by side to increase the contrast.

If you know a good place to learn about tweaking XML files, that would me much appreciated.

EDIT : Question : There are 2 contoursxml files in the ZIP. Is that normal ? Shall I keep both ?


Thanks a lot

Best regards

Barbudor
« Last Edit: February 22, 2016, 19:19:22 by barbudor »
 

Offline barbudor

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
@Menion

I am trying to use this over offline map too.
It appears that sqlitedb files supports overlay but rmap doesn't.
Both have been made by MobAC.

Thanks
 

Offline john_percy

  • Padavan of Locus
  • ***
  • Posts: 391
  • Thanked: 17 times
    • View Profile
  • Device: MotoG
I am not yet much aware about XML theme files.
I would like to try to make the lines more visibles.
What should I look for in the XML file (color, thickness, ...) ?
It would be great if I could make the contour line as a pair of black+white lines side by side to increase the contrast.
I'm sorry about the two contour.xml files in the zip. My fault. I've now uploaded a corrected zipfile in my previous post above.
The lines are a very pale green with a grey outline.
The colours are defined by
Code: [Select]
stroke="#4A5255" and
Code: [Select]
stroke="#B5C7A1 and
Code: [Select]
fill="#B5C7A1" Two colours appearing several times. You can do a global search and replace: for example, #FFFFFF would be white and #000000 would be black.

The thickness is defined by
Code: [Select]
stroke-width="1.4dp" with various thicknesses for differing zoom levels. That needs approaching with some care, seeing what gives you the look you want.
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10108
  • Thanked: 73 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
It appears that sqlitedb files supports overlay but rmap doesn't.

Correct. That's how it's done.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline barbudor

  • More than Newbie
  • *
  • Posts: 23
    • View Profile
@John

Many thanks. I'll experiment with this.

@Menion

Ok. I was moving more to rmap because I can share the same file between Locus and desktop CompeGPSLand application.

Many thanks.

Best regards
 

Offline gynta

  • Global Moderator
  • Professor of Locus
  • *****
  • Posts: 3520
  • Thanked: 25 times
    • View Profile
    • Locus live tracking service
  • Device: SGS5m (4.4.2 root), SGTab10.1 (4.0.4)
It would be quite easy to do that with a custom theme for an offline vector map
@john_percy
Hi John
' don't know why - but this theme doesn't work for me.

any ideas?

Offline john_percy

  • Padavan of Locus
  • ***
  • Posts: 391
  • Thanked: 17 times
    • View Profile
  • Device: MotoG
Re: [Theme] elevation contour only
« Reply #9 on: June 08, 2016, 21:45:20 »
It's not working properly for me now. Zooming in or out results in incorrect segments of contour lines on the map.
If you choose the theme again, it redraws correctly. So it's some kind of bug?
« Last Edit: June 09, 2016, 09:26:32 by john_percy »
 

Offline john_percy

  • Padavan of Locus
  • ***
  • Posts: 391
  • Thanked: 17 times
    • View Profile
  • Device: MotoG
Re: [Theme] elevation contour only
« Reply #10 on: June 09, 2016, 09:17:23 »
The problem I find is connected to the rendering of the transparency of the fill defined in the theme. Used as a theme on its own, contours is rendered with spurious segments of contours when the zoom level is changed.
However, it seems to work as an overlay:
1. Select a non-vector map as the base
2. Select a vector map as the overlay
3. Blend=disabled, etc
4. Select contours as the theme
5. Zoom in and out.

As an alternative, set the background fill in the contours theme to #FFFFFF, and the blend to multiply in the overlay. That way the theme works as a standalone map and as an overlay.

I attach a slightly simplified theme as well as an opaque version.
« Last Edit: June 09, 2016, 09:33:19 by john_percy »