Custom vector maps as overlay

851 views
Skip to first unread message

Rodolfo

unread,
Aug 19, 2013, 1:46:56 PM8/19/13
to osm...@googlegroups.com
I would like to display several country wide theme maps like: average rainfall, temperature, population density, soil type etc...
To get the idea, see: http://www.ign.es/espmap/mapas_clima_bach.htm
Many of these maps are available as jpg files, so it will require some steps to get it done (geo-calibrating, converting raster to vector format, then to obf)
But is it possible to display a custom (offline) vector map as an underlay / overlay map?
An alternative could be to generate a huge amount of raster tiles, but this looks a bit ridiculous for this use case.
Any info would be very welcome, thanks!  

Victor Shcherb

unread,
Aug 19, 2013, 6:36:36 PM8/19/13
to osmand
Of course!

With latest version, you don't even need to prepare a map you can create on device and use it for overlay. And nice feature was added of map time expiration.

Regards,
Victor


--
You received this message because you are subscribed to the Google Groups "Osmand" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osmand+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Rodolfo

unread,
Aug 20, 2013, 3:02:38 PM8/20/13
to osm...@googlegroups.com
Thank you Victor,

In between, I learned from the wiki, that vector maps are always 100% opaque in Osmand.
So the theme maps can only be an underlay map, fair enough.

Then I put a (test) file Spain_rainfall.obf in the base Osmand folder and in the tiles folder, but when I go to select an underlay map, I only see the usual raster maps.
What do I do wrong? Please help, Thanks!

Best regards, Rodolfo

Victor Shcherb

unread,
Aug 20, 2013, 5:22:20 PM8/20/13
to osmand
Nope, vector maps are not supported to be underlay. And it will be strange.

If you want to use vector+vector combination, just define rendering style and that's it.
Raster map + vector, works only with raster overlay.

Regards,
Victor

Hardy

unread,
Aug 23, 2013, 6:14:33 AM8/23/13
to osm...@googlegroups.com
Victor,   "you don't even need to prepare a map you can create on device " sounds interesting. Do you have some details, so I can create a brief Wiki article for us?   Thx - Hardy
 

Victor Shcherb

unread,
Aug 23, 2013, 10:52:44 AM8/23/13
to osmand
Hm... No :)
Just open "Online Maps" and select "Define/Edit" tile source, so you can explore quite simple UI.

Regards,
Victor


On Fri, Aug 23, 2013 at 12:14 PM, Hardy <hm.gg...@gmail.com> wrote:
Victor,   "you don't even need to prepare a map you can create on device " sounds interesting. Do you have some details, so I can create a brief Wiki article for us?   Thx - Hardy
 

--

Andre

unread,
Aug 23, 2013, 10:55:10 AM8/23/13
to osm...@googlegroups.com

That's a pity.  No kml overlays then..

Andre.oid

Op 23 aug. 2013 16:52 schreef "Victor Shcherb" <victor....@gmail.com> het volgende:

Rodolfo

unread,
Aug 25, 2013, 12:50:06 PM8/25/13
to osm...@googlegroups.com
The raster solution was not a big problem after all, because these kinds of overlays are useless at high zooms. I generated the zooms 4 to 9, which was no more than 4 MB for the whole country. Works ok.

For the in-device map source creation, I found out, that it works fine for map servers, that can be queried like the OSM server with the zoom, x and y parameters.
Other map servers require different parameters.
For example, I would like to use the Spanish PNOA server, that seems to require an url like this:

http://www.idee.es/wms/PNOA/PNOA?REQUEST=GetMap&VERSION=1.1.1&SERVICE=WMS&SRS={proj}&LAYERS=pnoa&STYLES=default&FORMAT=image/jpeg&WIDTH={width}&HEIGHT={height}&BBOX={bbox}

So the proj, width, height and bbox parameters are needed.
Are there parameter names available in Osmand, to query those servers?

In fact, it would be a "nice to have" option to be able to use all the map servers, that can also be used in JOSM as imagery.
Is there any information about this?
Thanks!

Andre

unread,
Aug 25, 2013, 1:48:47 PM8/25/13
to osm...@googlegroups.com

That are WMS (web service system) maps,  OGC (Open Gis Consortium ) compliant maps.  Osmand does not support that but a very nice Android application that does,  is My Trails.  It even allows you to create these maps offline. Oruxmaps also should support it and some other apps but I think MyTrails is the best.

Op 25 aug. 2013 18:50 schreef "Rodolfo" <rodo...@gmail.com> het volgende:

Rodolfo

unread,
Aug 27, 2013, 9:31:29 AM8/27/13
to osm...@googlegroups.com
Thank you, André, for pointing me to MyTrails. I'll keep it for the map types, that Osmand doesn't support now.
However, it doesn't solve the PNOA issue because as far as I can see the "bbox" parameter is not supported, or did I miss it?
So I hope Osmand will incorporate this feature in a next release, as more people seem to be looking for map types outside the OSM world (and there are many maps available!!). Right, Osmand IS all about OSM, so no complaints here :)  Still very happy with it!
Best regards, Rodolfo

Andre

unread,
Aug 27, 2013, 10:29:18 AM8/27/13
to osm...@googlegroups.com

Hi Rodolfo,

I think you missed it indeed ;-)
You only have to configure the part http://www.idee.es/wms/PNOA/PNOA/ in mytrails, see screenshot 1. The remaining part is composed by the WMS client that MyTrails is. Bbox means bounding box so it depends on where you zoom in or out in the map, and the app handles that and lot of other parameters for you so you don't have to bother about that. By the way, Locus is a very nice app to to show these maps too. See screenshot 2.

Most servers deliver a lot of layers with different names, and Locus lets you choose in the list of layers it can serve by configuring only the base url of the server, that might be
http://www.idee.es/wms/PNOA or http://www.idee.es/wms or http://www.idee.es
Give it a try!

Andre.oid

Op 27 aug. 2013 15:31 schreef "Rodolfo" <rodo...@gmail.com> het volgende:

Screenshot_Mytrails.png
Screenshot_Locus.png

Rodolfo

unread,
Aug 28, 2013, 8:35:51 AM8/28/13
to osm...@googlegroups.com
Yes, I missed that option indeed.
But I'm still unsure to make a feature request for WMS map servers support in Osmand, as it is unclear how many users are actually going to use this.
If there is anyone in this user group who really needs this feature, please stand up and tell.
Thanks!

Victor Shcherb

unread,
Aug 29, 2013, 5:45:18 PM8/29/13
to osmand
There WMS maps proxy, so you they could be used as normal tile maps

Regards,
Victor


--
Reply all
Reply to author
Forward
0 new messages