ui icon indicating copy to clipboard operation
ui copied to clipboard

Vector Map File format

Open netvandal opened this issue 10 years ago • 10 comments

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

netvandal avatar Feb 23 '15 09:02 netvandal

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 avatar Mar 02 '15 11:03 xivk

@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.

xivk avatar Mar 02 '15 12:03 xivk

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

netvandal avatar Mar 02 '15 14:03 netvandal

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

xivk avatar Mar 02 '15 14:03 xivk

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!

netvandal avatar Mar 02 '15 16:03 netvandal

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.

charlenni avatar Mar 10 '15 09:03 charlenni

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

xivk avatar Mar 10 '15 09:03 xivk

Wow, really fast :)

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

charlenni avatar Mar 10 '15 09:03 charlenni

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?

charlenni avatar May 27 '15 11:05 charlenni

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

xivk avatar Jun 23 '15 07:06 xivk