charlenni / MapsforgeSharp

Mapsforge port to C#
10 stars 7 forks source link

Status of project? #7

Open TomQv opened 7 years ago

TomQv commented 7 years ago

You mentioned, that there is still a lot of work. But how complete would you consider just these two projects?

charlenni commented 7 years ago

The project works but lacks of two things: text and POIs. Text should be on a extra layer when you want to rotated the map and could be cross different tiles. And for POIs you should use SVG images. When I last worked on the project, SkiaSharp couldn't handle SVG images. Should now be possible.

That said, the project should be able to create any tile from a Mapsforge file without text and POIs. It should even be possible to use different style files.

TomQv commented 7 years ago

Ok, so this means, Core and Reader are complete? I actually only would need these two.

charlenni commented 7 years ago

Yes, I assume. Didn't tested it very well.

TomQv commented 7 years ago

Ok, will let you know, if I notice something. So far, its cool stuff 👍

TomQv commented 6 years ago

Hi Charleni, its been a while, but now I decided to come back and spent some time here. I just need to read the ways and pois and this works already great just with:

using MapsforgeSharp.Core.Model;
using MapsforgeSharp.Reader;

using (var stream = File.OpenRead(mapfile))
{
    var mapFile = new MapFile(stream, string.Empty);
    var tile = new Tile(4254, 2746, 13, 512);          //köln
    // var tile = new Tile(68082, 43941, 17, 512);     // rodenkirchen
    // var tile = new Tile(136164, 87882, 18, 512);
    var mapReadResult = mapFile.ReadMapData(tile);
}

Basically, that's all I would need, Just one question, what about the renderthemes? I know that mapsforge are using a specific xml-file. Is this part of the mapsforge-binary and if, can I access it with MapsforgeSharp.Core/Reader? Or is this always separate loaded?

Thanks Tom

TomQv commented 6 years ago

OK, I figured it out. There is no rendertheme contained in the map-binary, its always a separate xml.