Author Topic: Vector maps - library improvements  (Read 8244 times)

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9860
  • Thanked: 43 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Vector maps - library improvements
« on: February 08, 2013, 11:50:59 »
Hi to all,
  probably all who works with Vector maps themes , know something about MapsForge project. I really really! appreciate nice job that Thilo did. Mainly from my unexperienced point of view, very nice and clean code. A lot of code.

  Anyway every project and it's leadership will soon or later wants to do something more important.  (that's why I'm not a big fan of open source projects, or at least projects that do not generate any revenue to it's authors). And because
  • there are some unsolved bugs (maybe they're already solved, I wasn't checking their issue list for a long time)
  • MapsForge is created mainly as a separate library for project that will be build upon this lib
  • there is not enough active developers to fast do some improvements
I decided, to rewrote what is needed to Locus needs. Enough of waiting

I anyway need some help
1. I created list of all supported attributes - http://docs.locusmap.eu/doku.php/manual ... eme_config . This page is in preparation, but all main modifications are already described. These modification are based on my communication (as a Locus developer) with Peter (as person responsible for Vector maps rendering and themes). Anyway if you'll miss some features, I'll gladly improve library

And btw. what has already changed?
- support for multiple working map files at once
- added some attributes for themes
- added support for SVG icons (some icons in internal themes already use them)
- except few classes, I overwrite many functions to be less memory consuming and faster
- fixed many problems with low speed at high levels, problems with switching themes

2. Understanding MapsForge license - I'll of course release modified library. I don't think that someone will want to use modified almost year old MapsForge library code, but maybe someone will find some useful parts there. Anyway what about some connection on Locus itself? Know anyone if modified library have to be fully separate project or should I use some functions from Locus without publishing Locus under same license? Quite crazy these licenses ...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline jurajs

  • Apprentice of Locus
  • **
  • Posts: 129
    • View Profile
Re: Vector maps - library improvements
« Reply #1 on: April 18, 2013, 17:53:49 »
like (thumbs up)

one more humble question: what about mapwriter plugin ? ;-) ...are you expcting any progress also here ? the most recent one does not work with the newest osmosis(es) :-(
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9860
  • Thanked: 43 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Vector maps - library improvements
« Reply #2 on: April 18, 2013, 21:38:20 »
I was already looking on it, mainly why generating is so slow. There is some places to improve, but to be true, for me it's much more important part in application that generator. We'll see what brings new version of mapsforge lib, that may occur in next few months (as I read somewhere) ...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline jurajs

  • Apprentice of Locus
  • **
  • Posts: 129
    • View Profile
Re: Vector maps - library improvements
« Reply #3 on: April 18, 2013, 22:17:25 »
yes... you are right... the speed is awfull... the speed could be improved for sure...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9860
  • Thanked: 43 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Vector maps - library improvements
« Reply #4 on: April 19, 2013, 14:04:35 »
yes it could. I was measuring which part took most time, and it's not in osmosis either in mapsForge. MapsForge use small library for some geo operations - JTS. This library check and create cutted objects. I mean if way is too long, this library cut unnecessary parts. And it took so much time ...
« Last Edit: January 01, 1970, 01:00:00 by Guest »
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Vector maps - library improvements
« Reply #5 on: March 01, 2014, 20:55:27 »
Hi,

is this project still alive? Following the link form first post I have downloaded tag-mapping-locus.xml, but this file doesn't look like finished reference.

I have created a map of Poland with hiking trails, but mapsforge tools are very new to me and I have many doubts about configurations contained in tag-mapping.xml. My other attempt was to create an overlay with hiking trails, which could work with good maps from openandromaps.org, but I can't see how could I display both maps at once in Locus.
popej
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 9860
  • Thanked: 43 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Vector maps - library improvements
« Reply #6 on: March 02, 2014, 17:29:10 »
Hello

to display both maps at once, please check this feature http://docs.locusmap.eu/doku.php/manual:map_overlays - it's kind of feature that really require rewrite (at least an UI part), but it works.

About generating a map, I'll share this topic with Peter (voldapet) who will forward you to correct place as I'm not much familiar with this process.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline voldapet

  • Administrator
  • Padavan of Locus
  • *****
  • Posts: 413
  • Thanked: 2 times
    • View Profile
Re: Vector maps - library improvements
« Reply #7 on: March 02, 2014, 17:45:13 »
@popej
You wrote that you have created the map with hiking trails. So it looks like that you've been successful  with generation, am I right?
Menion already wrote how to overlay two maps, but please note: OpenAndroMaps such as Locus vector maps from store contain the hiking trails. From my point of view is not needed to overlay map but only customize the theme for rendering vector maps. Can you give me some clue what you want to achieve, please?
 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Vector maps - library improvements
« Reply #8 on: March 02, 2014, 20:28:39 »
Thanks for your infos, I was able to run my hiking trails as an overlay.

I have created a touristic map of Poland with trails presented in proper colors. This is the way we used to see trails on Polish maps. My map is here:
http://www.gmaptool.eu/en/content/locus-poland-osm

While compiling a map is relatively easy, making a good map is not a trivial task. I miss many details about work of Mapsforge plugin, my tag-mapping.xml is very coarse and I haven't tried to create any own style for maps yet. That's why I would prefer to use good maps form source like openandromaps and only add missing tracks with colors.
popej
 

Offline voldapet

  • Administrator
  • Padavan of Locus
  • *****
  • Posts: 413
  • Thanked: 2 times
    • View Profile
Re: Vector maps - library improvements
« Reply #9 on: March 03, 2014, 11:54:24 »
Good job - maps looks promisive

Tag mapping file which is used for generation Locus vector maps is possible to download:
http://support.locusmap.eu/hc/en-us/articles/200242931-Vector-map-content

Locus contains customized  version of MapsForge library. For this reason there some new attributes which can be used for creation own theme for rendering.
http://support.locusmap.eu/hc/en-us/articles/200242941

Please do not hesitate to ask If you have any questions
Petr

 

Offline popej

  • More than Newbie
  • *
  • Posts: 39
    • View Profile
    • GMapTool
Re: Vector maps - library improvements
« Reply #10 on: March 03, 2014, 12:33:52 »
Thanks, I know these resources.

Have you noticed, that file tag-mappings-locus.xml is slightly damaged? It needs a correction to work and even then I have seen some unexplained problems with missing paths. Maybe you could publish an updated version?
popej
 

Offline voldapet

  • Administrator
  • Padavan of Locus
  • *****
  • Posts: 413
  • Thanked: 2 times
    • View Profile
Re: Vector maps - library improvements
« Reply #11 on: March 04, 2014, 10:07:11 »
Page updated.
Here is the latest version of tag-mapping.xml we used during last generation https://asammsoftware.zendesk.com/hc/en-us/article_attachments/200081272/tag-mapping-tourist.xml