NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi,

I would like to use the exact same map of the world that one finds on the home page website with same zoomable functionality, for use in MapInfo https://www.openstreetmap.org/export#map=0/-46/154

I have used it in a previous life in my old job so I know it is somehow possible. I want the ability to have a zoomable map that changes as I zoom in and out. As a result a single raster image layer is not what I am looking for. At the same time I do not want a shape file with multiple layers. I simply want a single file manageable map. If that single file requires additional space for supporting files I have that space available.

I have tried searching a number of different locations to download such a map but I have not found an answer as of yet. I am hoping someone might be able to help.

asked 07 Feb '18, 12:13

MapInfoNeeds's gravatar image

MapInfoNeeds
21112
accept rate: 0%

hi guys, I have the same problem but I don't know ho I have to import the xml file. Can you help me please?

(19 May '21, 16:59) raffux3

I would show openstreetmap on mapinfo but I don't know how. Can you help me please?

(20 May '21, 13:33) raffux3

From memory the OpenStreetMap layer is built into MapInfo (newer versions only), but you can add it yourself with these two files:

OpenStreetMap.tab:

!table
!version 1050
!charset WindowsLatin1


Definition Table
  File "OpenStreetMap.xml"
  Type "TILESERVER"
  CoordSys Earth Projection 10, 157, "m", 0 Bounds (-20037508.342789244, -20037508.343038857) 
       (20037508.342789244, 20037508.343038857)
ReadOnly

OpenStreetMap.xml:

<?xml version="1.0" encoding="utf-8"?>
<TileServerInfo Type="LevelRowColumn">
    <Url>https://a.tile.openstreetmap.org/{LEVEL}/{ROW}/{COL}.png</Url>
    <MinLevel>0</MinLevel>
    <MaxLevel>19</MaxLevel>
    <TileSize Height="256" Width="256" />
    <AttributionText Font="Font ("Tahoma",257,8,16777215,0)">© OpenStreetMap contributors</AttributionText>   
</TileServerInfo>
permanent link

answered 13 Feb '18, 03:39

aharvey's gravatar image

aharvey
5232913
accept rate: 21%

Thank you! It works. I had to fiddle with the XML a bit, as I was getting error messages when trying to open the TAB file. The error message stated that it was missing whitespace where you see "Tehoma" in line 7. After some trial and error, I found it didn’t like the quotation marks around Tehoma. Once those were removed, that error message no longer showed up. Instead, it choked on the copyright symbol on that same line. I removed that, and now it’s working fine.

That line now looks like this in my copy:

<attributiontext font="Font (Tehoma,257,8,16777215,0)"> OpenStreetMap contributors</attributiontext>

This is running under Windows 10, using MapInfo 12.0.0 Build 16.

permanent link

answered 04 Feb '19, 23:51

Mark_vdH's gravatar image

Mark_vdH
1
accept rate: 0%

hi, how I can import the xml file on mapinfo? thank you

(19 May '21, 22:52) raffux3

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×315
×2
×2
×1

question asked: 07 Feb '18, 12:13

question was seen: 13,365 times

last updated: 20 May '21, 13:53

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum