OsmSharp / ui

The UI components.
http://osmsharp.com/
GNU General Public License v2.0
139 stars 90 forks source link

Vector Map File format #219

Open netvandal opened 9 years ago

netvandal commented 9 years ago

In the sample *Vector a .map file is used to render the map, but I'm not sure in what format it is. I tried with mapsforge map but with no luck. In the sample comment i read "preprocessed vector data", preprocessed how? Thanyou

xivk commented 9 years ago

The .map files are generated using this project:

https://github.com/OsmSharp/OsmSharpDataProcessor

There are some instructions here on how to generate things:

https://github.com/OsmSharp/OsmSharpDataProcessor/wiki

xivk commented 9 years ago

@netvandal What area do you want to use. I can create one for you just draw a polygon for me here:

http://geojson.io/#map=2/20.0/0.0

... and post it here.

netvandal commented 9 years ago

I need to automate this as I need to generate ondemand maps in my application. I'm trying to recompile the tool as it seems that I can't run the nightly build on linux. But i fear that it will be nearly impossible to build as it use some dll from the OsmSharp UI parts that need Xamarin Studio. I'm wrong? i think that would be really useful to have a standalone tool to generate vector maps. It will hard to separate the two? Anyway you are doing a really amazing job, I hope I can help soon. Thankyou

xivk commented 9 years ago

The tool should be able to run fine on Linux using Mono. There is an open issue for this. I'll have a look:

https://github.com/OsmSharp/OsmSharpDataProcessor/issues/2

netvandal commented 9 years ago

Updating to mono 3.2.8 allow me to execute the odp.exe without exceptions! Testing it now, it's seems quite slow even on a powerful machines. Anyway, you have looked at the mapsforge .map file format? Meanwhile Thankyou!

charlenni commented 9 years ago

I'm interessted in using mapsforge format too. It is very common on Android and many sites offer ready made map files for any region. If I understand all correct, than the mapsforge format is only a special database format for vector informations.

xivk commented 9 years ago

Mapsforge format is unsupported and will probably stay unsupported for a while but I may consider putting it on the development plan. You guys mean this right:

https://github.com/mapsforge/mapsforge/blob/master/docs/Specification-Binary-Map-File.md

charlenni commented 9 years ago

Wow, really fast :)

Yes, that's the format. On Android it is very common, because it is small.

charlenni commented 9 years ago

Is it possible to support you to implement the Mapsforge format? If yes, what do you think is the best way to implement it? As DataSourceReadOnlyBase? Or is there a better way?

xivk commented 9 years ago

Sorry for the very-late response.

I'm not sure if we can implement this in OsmSharp but if you still want to discuss in more detail get in touch directly with us via this web form:

http://osmsharp.com/contact#overlay-context=contact