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

How do I use the osm tile map server in mapinfo 10.5? What do the .tab and .xml files have to contain? What does the projection data look like?

asked 02 Dec '10, 15:04

jp_osm's gravatar image

jp_osm
1111
accept rate: 0%

edited 20 Jan '11, 14:11

TomH's gravatar image

TomH ♦♦
3.3k83943


OpenStreetMap tiles are in Spherical Mercator EPSG:900913 (EPSG:3857). The origin is top left. The URL layout is http://tile.openstreetmap.org/%Z/%X/%Y.png

I've never used MapInfo, but a likely good starting point is to modify an existing .tab/.xml setup designed for Google Maps or similar map service.

The OpenStreetMap Tile server has a usage policy: http://wiki.openstreetmap.org/wiki/Tile_Usage_Policy

permanent link
This answer is marked "community wiki".

answered 02 Dec '10, 17:41

Firefishy's gravatar image

Firefishy ♦♦
1.3k73652
accept rate: 29%

edited 02 Dec '10, 17:43

Thnx The documentation of MapInfo is not very elaborate on it : V 10.5 has Bing incorporated, and further the documentation just says OSM is fully supported.

So from the Bing files and the info of Firefishy I produced :

TAB file:

!table !version 1050 !charset WindowsLatin1

Definition Table

File "open_street.xml"

Type "TILESERVER"

CoordSys Earth Projection 10, 157, 7, 0 Bounds (-20037508.343,-20037508.343) (20037508.343,20037508.343)

and XML file :

[?xml version="1.0" encoding="utf-8"?]

[TileServerInfo Type="LevelRowColumn"]

[Url]http://tile.openstreetmap.org/{LEVEL}/{ROW}/{COL}.png[/Url]

[MaxLevel]18[/MaxLevel]

[TileSize Height="256" /]

[AttributionText Font="Font("Arial",3,12,0,16777215)"]OpenStreetMap[/AttributionText] [/TileServerInfo]

This works fairly well, but it has the same problem as I had with Bing (which promted my efforts in the first place) : the produced maps are not very sharp, they appear somewhat fuzzy at any zoom level.

Probably has to do with resolution of mapwindows in MapInfo, compared to the downloaded tiles : I suppose I have to somehow adjust the MapWindow to multiples of 256 pixels or so ...

Not sure on how to go about that : Any ideas are welcom

By the way, I am a very light user.

jp_osm

permanent link

answered 03 Dec '10, 09:28

jp_osm's gravatar image

jp_osm
1111
accept rate: 0%

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:

×123
×57
×1

question asked: 02 Dec '10, 15:04

question was seen: 18,054 times

last updated: 20 Jan '11, 14:11

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