Getting error when using my own .map file

  • Problem
  • Updated 2 years ago
  • Not a Problem
I have created a .map file and when I put it in the location /mnt/sdcard/Locus/mapsVector i am getting and error:

Problem with File 'mymap.map'!
FileOpenResult [success=false, errorMessage=invalid magic byte: # Map file created f]

I have tried a map that I downloaded from locusvectormaps "new_york.osm.map" and this .map file does work.

Any ideas?
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of gynta

gynta, Champion

  • 779 Posts
  • 63 Reply Likes
hi nick
can you load your map with an other app?
eg
https://code.google.com/p/mapsforge/d...
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
I can try. Let me try.
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
I tried to load with the app "AdvancedMapViewer" and this is what I get:

Error:

The selected file is invalid.

invalid magic byte: # Map file created f

Any ideas?
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
Hey gynta,

If I have a the map I want in a .shp file or .eml file can I convert that to a .map file to use with locus?
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
i meant to say .kml not .eml.
Photo of Menion

Menion, Official Rep

  • 2961 Posts
  • 210 Reply Likes
check this method ... http://docs.locusmap.eu/doku.php/manu...

should help
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
I tried making the kml...But when I try to import it into Locus, I get the following error:

Problem with file "Locus.kml"
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
Is there anyway to attach a file here so you can check it out?
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
Any help with this would be great.
Photo of gynta

gynta, Champion

  • 779 Posts
  • 63 Reply Likes
sorry nick
There are a lot of free web/ftp space, free upload services, free clouds,...
Feel free to search via google. Then upload your files and share it
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
Ok. If I can get it uploaded in a location for you .. Could you possible help me out?
Photo of Petr Voldan

Petr Voldan, Employee

  • 192 Posts
  • 23 Reply Likes
Hello Nick,
Some tips from my site:
- As Menion wrote Locus is limited with handling of complex KML files. Is it possible to split SHP files into smaller parts before you convert them into KML files?
- Problem with file "Locus.kml” Locus supports almost all KML features. Please try to open problematic KML file in Google Earth and check if this file is opened properly.
- Unfortunately there is no way how to attach file to this topic. This is limitation of GetSatisfaction service.
- My favorite service for sharing files is http://sharegadget.com/ You can attach problematic KML files – I’ll check it.
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
Hey Petr I have uploaded a .shp file in a zip at the following location using the service you recommended:

http://mysharegadget.com/786008826

Could you please let me know if you are able to convert this successfully to a .map.

Thanks.
Photo of Petr Voldan

Petr Voldan, Employee

  • 192 Posts
  • 23 Reply Likes
Hi Nick,
Is it possible to convert your SHP into map file. Converted file with XML definition files and style is placed in file: http://mysharegadget.com/162518213

COnverted map as overlay
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
When I try to add the .map file you provided to locus as an overlay I get a message saying:

"One vector file at a time or something like that."
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
Any ideas?
Photo of Petr Voldan

Petr Voldan, Employee

  • 192 Posts
  • 23 Reply Likes
Locus is not able to set two vector maps as overlay. Please turn-off previous vector map which you use for overlay (Menu > More > Map overlay). Then select as base map arbitrary online or personal map. Run again map overlay function and select generated vector map.
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
Can I use a vector map as a base map?
Photo of Petr Voldan

Petr Voldan, Employee

  • 192 Posts
  • 23 Reply Likes
Yes, you can.
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
I have tried to convert to .map but was not successful. So you were able to ? I don't understand why I was not able to. Could you explain what you needed to do?
Photo of Petr Voldan

Petr Voldan, Employee

  • 192 Posts
  • 23 Reply Likes
Hello Nick,

As you could see, is it possible to convert your SHP file into vector *.map format. So issue is not related with Locus.

If you still have some problem with generating own vector map, please visit official Mapsforge community site:
https://groups.google.com/forum/#!for...

On this forum you can directly contact developer of Mapsforge library and map
writer plugin for osmosis. I hope that they will be able to find out more about your issue.
Regards
Petr
Photo of Nick PietrosantiNP

Nick Pietrosanti

  • 41 Posts
  • 0 Reply Likes
Thank you for all the help Petr.