Problem creating TMS .tab and xml

201 views
Skip to first unread message

burton449

unread,
Feb 2, 2016, 3:43:02 PM2/2/16
to MapInfo-L
Hi !

I am trying to create a TMS table using this tiles server: https://geoegl.msp.gouv.qc.ca/cgi-wms/mapcache.fcgi/tms/1.0.0/carte_gouv_qc_public@EPSG_3857/

I have a problem with tiles not displayed in correct order in MapInfo. The tile origin for this server is defined at x="-20037508.342789" y="-20037508.342789" (bottom left corner instead of the default top left corner for TMS).

Is it possible to define the origin in the .xml ?

This is my .tab and .xml

!table
!version 1050
!charset WindowsLatin1

Definition Table
    File "tms.xml"
    Type "TILESERVER"
    CoordSys Earth Projection 10, 157, "m", 0 Bounds (-20037508.3428, -20037508.343) (20037508.3428, 20037508.343)
ReadOnly



<?xml version="1.0" encoding="utf-8"?>
<TileServerInfo Type="LevelRowColumn">
  <Url>https://geoegl.msp.gouv.qc.ca/cgi-wms/mapcache.fcgi/tms/1.0.0/carte_gouv_qc_public@EPSG_3857/{LEVEL}/{ROW}/{COL}.png</Url>
  <MinLevel>3</MinLevel>
  <MaxLevel>20</MaxLevel>
  <TileSize Height="256" Width="256" />
</TileServerInfo>


Thank you for your help!

Maxime Demers

Peter Horsbøll Møller

unread,
Feb 3, 2016, 2:46:09 AM2/3/16
to mapi...@googlegroups.com

You can specify an origin using this clause:

  <Origin>SW</Origin>

 

From the MapBasic Help:

The Origin clause is optional for tables of type TileServer. If this clause is present, you must include one of the two values - "NW" or "SW". "SW" represents a South-West origin in which the tiles in the TileServer table are arranged in a bottom-up manner, starting from the lower-left corner. "NW" represents a North-West origin of the tiles, starting from the upper-left corner. If no value is included, "NW" is used by default.

 

I think we added this option with v12.0

 

Peter Horsbøll Møller

GIS/LI Presales Specialist

Location Intelligence | MapInfo

 

M: +45 29 133 769

peter....@pb.com | @phorsbollmoller

pitneybowes.com/dk | mapinfo.com

--
--
You received this message because you are subscribed to the
Google Groups "MapInfo-L" group.To post a message to this group, send
email to
mapi...@googlegroups.com
To unsubscribe from this group, go to:
http://groups.google.com/group/mapinfo-l/subscribe?hl=en
For more options, information and links to MapInfo resources (searching
archives, feature requests, to visit our Wiki, visit the Welcome page at
http://groups.google.com/group/mapinfo-l?hl=en

---
You received this message because you are subscribed to the Google Groups "MapInfo-L" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapinfo-l+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.




burton449

unread,
Feb 3, 2016, 7:55:42 AM2/3/16
to MapInfo-L
Thank you Peter, thats exactly what I was looking for. Why put the documentation about tiles layer in the MapBasic help? It's not closely related to MapBasic...

Maxime Demers

Peter Horsbøll Møller

unread,
Feb 3, 2016, 8:38:13 AM2/3/16
to mapi...@googlegroups.com

Well, yes it is.

 

The Create Table statement supports created Tile Server tables.

That’s where this is documented

Reply all
Reply to author
Forward
0 new messages