OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>

Join the forum, it's quick and easy

OruxMaps
Visit the new forum: <a href="http://www.oruxmaps.com/foro">OruxMaps</a>
OruxMaps
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Vector graphics format

+5
stetre76
joeuser
daaho
hansdampf
orux
9 posters

Go down

Vector graphics format Empty Vector graphics format

Post  hansdamp Thu Jul 28, 2011 9:17 am

It would be very very nice if it would be possible to use a vector graphics format or the maps as well. Vector graphics are much smaller and it would be possible to save bigger areas offline as well. Navit or Osmand are using vector graphics (both are OpenSource), google maps fpr Android also supports a verctor graphics format. This would be a really important und needy improvement. What do you think about it?

hansdamp
Guest


Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  orux Fri Jul 29, 2011 7:38 am

hansdamp wrote:It would be very very nice if it would be possible to use a vector graphics format or the maps as well. Vector graphics are much smaller and it would be possible to save bigger areas offline as well. Navit or Osmand are using vector graphics (both are OpenSource), google maps fpr Android also supports a verctor graphics format. This would be a really important und needy improvement. What do you think about it?

You are right;

I will work with vector maps in next versions.

orux
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

Vector graphics format Empty GREAT!

Post  hansdampf Tue Aug 02, 2011 9:05 pm

That's a really good news, I am looking forward! Thanks a lot! By the way: You are doing a great job! ORUX is BEST

hansdampf

Cantidad de envíos : 18
Fecha de inscripción : 2011-07-28

Back to top Go down

Vector graphics format Empty Vector graphics format

Post  daaho Wed Aug 03, 2011 7:33 am

Hello Orux,

do you know this project?

MapsForge

The overall goal of mapsforge is to provide a free and open toolbox that enables the community to easily create new OpenStreetMap based applications. Provided tools and APIs include solutions for map rendering, route planning and navigation, POI indexing and search, map overlays and more.

bye, daaho

daaho

Cantidad de envíos : 12
Fecha de inscripción : 2011-01-06

Back to top Go down

Vector graphics format Empty MapsForge and NAVIT

Post  hansdampf Wed Aug 03, 2011 7:27 pm

daaho wrote:Hello Orux,

do you know this project?

mapsforge

The overall goal of mapsforge is to provide a free and open toolbox that enables the community to easily create new OpenStreetMap based applications. Provided tools and APIs include solutions for map rendering, route planning and navigation, POI indexing and search, map overlays and more.

bye, daaho

Just for interest I did have a look at this project. It seems like they still use tiles (no vector maps, as far as I could see in there AdvancedMapViewer-APK which I installed on my Android, but I might be wrong). Nevertheless: The map data are surprisingly small! Wou! I tried out Berlin: 12MB in size and very very detailed. I don't know how they do it.

Another interesting approach would be the rendering engine the use in the NAVIT project, which is also available for android. You can get maps in a binary format, extracted from OSM. And they can also render Garmin maps as well. And the rendering is pretty fast.

hansdampf

Cantidad de envíos : 18
Fecha de inscripción : 2011-07-28

Back to top Go down

Vector graphics format Empty Vector graphics format

Post  daaho Thu Aug 04, 2011 8:52 am

Hello hansdampf,

It seems like they still use tiles (no vector maps, as far as I could see in there AdvancedMapViewer

From the MapsForge Web page:

The overall goal of mapsforge is to provide a free and open toolbox that enables the community to easily create new OpenStreetMap based applications.
Provided tools and APIs include solutions for map rendering, route planning and navigation, POI indexing and search, map overlays and more.

Features

Fast on-device rendering of OpenStreetMap data
Powerful and flexible overlay API
Compact file format for map data storage
Support for multi-touch gestures (e.g. pinch-to-zoom)
Runs on all devices with Android 1.5 and higher
Small library (~ 400 KB, including sources and images)
100% free and open source (LGPL license)


And here is an article which describes the map rendering

bye, daaho

daaho

Cantidad de envíos : 12
Fecha de inscripción : 2011-01-06

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  orux Fri Aug 05, 2011 7:16 pm

daaho wrote:Hello hansdampf,

It seems like they still use tiles (no vector maps, as far as I could see in there AdvancedMapViewer

From the MapsForge Web page:

The overall goal of mapsforge is to provide a free and open toolbox that enables the community to easily create new OpenStreetMap based applications.
Provided tools and APIs include solutions for map rendering, route planning and navigation, POI indexing and search, map overlays and more.

Features

Fast on-device rendering of OpenStreetMap data
Powerful and flexible overlay API
Compact file format for map data storage
Support for multi-touch gestures (e.g. pinch-to-zoom)
Runs on all devices with Android 1.5 and higher
Small library (~ 400 KB, including sources and images)
100% free and open source (LGPL license)


And here is an article which describes the map rendering

bye, daaho

Hi, thanks;

You are right; still not vector support.

I am investigating about garmin format. Therea are some libraries.

orux
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  daaho Sat Aug 06, 2011 9:29 am

orux wrote:

It seems like they still use tiles (no vector maps, as far as I could see in there AdvancedMapViewer

From the MapsForge Web page:

The overall goal of mapsforge is to provide a free and open toolbox that enables the community to easily create new OpenStreetMap based applications.
Provided tools and APIs include solutions for map rendering, route planning and navigation, POI indexing and search, map overlays and more.

Features

Fast on-device rendering of OpenStreetMap data
Powerful and flexible overlay API
Compact file format for map data storage
Support for multi-touch gestures (e.g. pinch-to-zoom)
Runs on all devices with Android 1.5 and higher
Small library (~ 400 KB, including sources and images)
100% free and open source (LGPL license)



And here is an article which describes the map rendering

bye, daaho

Hi, thanks;

You are right; still not vector support.

I am investigating about garmin format. Therea are some libraries.

orux


Hello Orux,

the data are vector data, they are only rendered to tile maps on the fly on the android device (instead of prerendering the data with MOBAC).

One big advantage of this approach is the small size of the map data. E.g. Germany has only 1 GByte.

How the data is display relays only on the rendering engine (Canvas, Mapnik or OpenCycleMap).Maybe you can adjust the style of the rendering engine, so that only streets are displayed.

bye, daaho

PS To use Garmin maps would be fantastic

daaho

Cantidad de envíos : 12
Fecha de inscripción : 2011-01-06

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  joeuser Sat Aug 06, 2011 9:37 am

of course mapsforge uses vector maps, thats the whole point of offline osm rendering isnt it? they just render it into tiles before sending them to the display engine. mapsforge is by far oruxmaps best bet for direct osm support. everything is basically served on a silver platter Smile.


joeuser

Cantidad de envíos : 35
Fecha de inscripción : 2011-01-25

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  hansdampf Sat Aug 06, 2011 1:22 pm

joeuser wrote:of course mapsforge uses vector maps, thats the whole point of offline osm rendering isnt it? they just render it into tiles before sending them to the display engine. mapsforge is by far oruxmaps best bet for direct osm support. everything is basically served on a silver platter Smile.


Well, let's see it relaxed. If you look at mapsforge presentation layer the maps are not in a vector graphics format. If you have a look at Garmin you can see that they really use a vector graphic format, which gives you different results e.g. if you rotate your map: In this case labels stay horizontal.
Nevertheless: The main goal about mapsforge is that they bring the data in a binary data format and do some live rendering. This is a very interesting and promising approach and has the big advantage that the row data are very small. I like it! It seems to be a brillant choice to use in oruxmaps (small libray optimized for android, small data, nice maps). As it is optimized for Android maybe it is not to much effort to use in Oruxmaps? What do you think about it, Orux?

On the other hand it would be very nice to have garmin maps in oruxmaps as well, which also has a lot of advantages (plenty of nice topo maps etc.). And of course, thousands of Garmin users would be very happy.

The best would be to have both. I know this is a lot of work to do. I am just dreaming... :-)

hansdampf

Cantidad de envíos : 18
Fecha de inscripción : 2011-07-28

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  joeuser Sat Aug 06, 2011 2:23 pm

the .map source file format for mapsforge is still osm vector data. it's just arranged/sorted/packed in a way that makes it very quick to access, contrary to the original osm source files (.osm/.pbf). for example, regions are broken down into tiles, features are sorted from top to bottom, coordinates are stored in decimal microdegrees, etcpp.

the specification is in
https://code.google.com/p/mapsforge/wiki/SpecificationBinaryMapFile

and the description of how to assemble raw osm data into .map file with osmosis is in
https://code.google.com/p/mapsforge/wiki/MapFileWriterOsmosis

no rendering is taking place while .map files are created, the data is still pure vector data afterwards. it is simply better suited for offline realtime rendering by the mapsforge android library.

joeuser

Cantidad de envíos : 35
Fecha de inscripción : 2011-01-25

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  orux Sun Aug 07, 2011 3:45 pm

joeuser wrote:the .map source file format for mapsforge is still osm vector data. it's just arranged/sorted/packed in a way that makes it very quick to access, contrary to the original osm source files (.osm/.pbf). for example, regions are broken down into tiles, features are sorted from top to bottom, coordinates are stored in decimal microdegrees, etcpp.

the specification is in
https://code.google.com/p/mapsforge/wiki/SpecificationBinaryMapFile

and the description of how to assemble raw osm data into .map file with osmosis is in
https://code.google.com/p/mapsforge/wiki/MapFileWriterOsmosis

no rendering is taking place while .map files are created, the data is still pure vector data afterwards. it is simply better suited for offline realtime rendering by the mapsforge android library.

Hi;

thanks;

I will take a look,

orux
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  joeuser Tue Aug 16, 2011 10:38 am

There is a thread in the mapsforge development google group that deals with a local tile server:

http://groups.google.com/group/mapsforge-dev/browse_thread/thread/b7c3aa36c882e31e

Maybe something good will come out of it.

In my opinion, this kind of separation (tileserver app that does the osm rendering) would be preferable to stuffing the code into oruxmaps directly. Oruxmaps would hardly need to be changed at all. Depending on what the tileserver does, caching for localhost tiles might need to be handled differently. But thats about it.

The slight overhead of transfering tiles through a http pipe shouldnt really matter a lot.

joeuser

Cantidad de envíos : 35
Fecha de inscripción : 2011-01-25

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  orux Tue Aug 16, 2011 3:48 pm

joeuser wrote:There is a thread in the mapsforge development google group that deals with a local tile server:

http://groups.google.com/group/mapsforge-dev/browse_thread/thread/b7c3aa36c882e31e

Maybe something good will come out of it.

In my opinion, this kind of separation (tileserver app that does the osm rendering) would be preferable to stuffing the code into oruxmaps directly. Oruxmaps would hardly need to be changed at all. Depending on what the tileserver does, caching for localhost tiles might need to be handled differently. But thats about it.

The slight overhead of transfering tiles through a http pipe shouldnt really matter a lot.

Hi;

Meanwhile, OruxMaps is ready for reading offline .map files Smile

Vector graphics format Device20110815204516



With minor changes in mapsforge library.

I will have a beta soon.

orux
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  joeuser Tue Aug 16, 2011 4:09 pm

I am surprised Smile

joeuser

Cantidad de envíos : 35
Fecha de inscripción : 2011-01-25

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  stetre76 Mon Sep 05, 2011 6:00 am

orux wrote:

Hi;

Meanwhile, OruxMaps is ready for reading offline .map files Smile

I will have a beta soon.

orux

just a short question - were do you have to put the .map file?

and when will this new beta be out?
i've got a couple of vector files and would like to try them in oruxmaps.

stetre76

Cantidad de envíos : 8
Fecha de inscripción : 2011-06-22

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  orux Mon Sep 05, 2011 3:24 pm

stetre76 wrote:
orux wrote:

Hi;

Meanwhile, OruxMaps is ready for reading offline .map files Smile

I will have a beta soon.

orux

just a short question - were do you have to put the .map file?

and when will this new beta be out?
i've got a couple of vector files and would like to try them in oruxmaps.

Hi;

-->http://www.oruxmaps.com/cs

Create a new directory inside mapfiles/ directory, put your .map inside, then 'restart map sources'

orux
orux
orux

Cantidad de envíos : 3946
Fecha de inscripción : 2009-07-06

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  stetre76 Mon Sep 05, 2011 6:51 pm

thanks for the latest update - vector maps work like a charm!!!

stetre76

Cantidad de envíos : 8
Fecha de inscripción : 2011-06-22

Back to top Go down

Vector graphics format Empty Great!!!

Post  hansdampf Wed Oct 12, 2011 9:26 am

Hi Orux,

Oruxmaps with mapsforge works fine! I love it! Thank you for implementing it. Now I don't have to bother to have the map I need at the moment.

Thank you!!!

hansdampf

Cantidad de envíos : 18
Fecha de inscripción : 2011-07-28

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  jech Sun Oct 23, 2011 9:01 pm

Hi, I'd like to know how could I get or create vector maps. Thank you.

jech

Cantidad de envíos : 4
Fecha de inscripción : 2011-10-23

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  twoten Mon Oct 24, 2011 8:09 am

You can get more information and get maps from mapsforge
http://code.google.com/p/mapsforge/

twoten

Cantidad de envíos : 115
Fecha de inscripción : 2010-10-04

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  hansdampf Mon Oct 24, 2011 12:32 pm

You can get maps from:
http://download.mapsforge.org/

Create a folder mapsforge in /oruxmaps/mapfiles on your android.
Copy the *.map files to /oruxmaps/mapfiles/mapsforge

After that you can select the maps from offline maps inside oruxmaps.

hansdampf

Cantidad de envíos : 18
Fecha de inscripción : 2011-07-28

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  jech Mon Oct 24, 2011 10:00 pm

Thanks, this works fine. I'm wondering, if it is possible to display the map in other formats (for example like Opencyclemap or Hike & Bike map). Also are there any plans to implement routing now that vector maps are supported?

Anyway thank you for your great work!

jech

Cantidad de envíos : 4
Fecha de inscripción : 2011-10-23

Back to top Go down

Vector graphics format Empty Cool

Post  jonny-blue Mon Oct 31, 2011 6:22 pm

It's so cool Smile ... Thanks.

jonny-blue

Cantidad de envíos : 28
Fecha de inscripción : 2011-08-03
Localización : Germany

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  syl35 Fri Jan 20, 2012 2:59 pm

How can i make oruxmaps display a vector .map file to look just like opencyclemap with topo lines?

Do i need to create a different .map or is the source the same, you just need to code a different render engine?

syl35

Cantidad de envíos : 1
Fecha de inscripción : 2012-01-20

Back to top Go down

Vector graphics format Empty Re: Vector graphics format

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum