ui
ui copied to clipboard
Vector Map File format
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
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
@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.
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
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
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!
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.
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
Wow, really fast :)
Yes, that's the format. On Android it is very common, because it is small.
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?
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