Hi Tim,
As fas as I know, Seamless tables reference tabs as rectangles. It's
then very easy to create a Seamless table "by hand". I have used unix
shell to do that, but you can use other tools, especialy if you have
only Windows (like Msys/Mingw to have unix shell and utilities, or perl,
which can be used alone on either Unix/Linux or Windows) . The general
idea is to :
1- create the table in mif/mid format
2- use tab2tab (or MapInfo, but tab2tab can be used in batch script) to
transform the mif/mid file in .tab file
3- add the metadata information to transform your rectangle table in
seamless table
Hints :
1- The most complicated, because you should figure the extension of each
tab file you want to put in.
You must create 2 files.
- the .mid file contains two strings per line, separated by a comma
the first string is the path to the file (relative in the example)
the second cone is the MapInfo internal name for the layer (I just
used the name of the file). Here is an example :
------------------------
"N_SCAN25_DALLES\SC25_0780_2110_L2E.tab","SC25_0780_2110_L2E"
"N_SCAN25_DALLES\SC25_0780_2120_L2E.tab","SC25_0780_2120_L2E"
"N_SCAN25_DALLES\SC25_0780_2130_L2E.tab","SC25_0780_2130_L2E"
"N_SCAN25_DALLES\SC25_0780_2140_L2E.tab","SC25_0780_2140_L2E"
------------------------
- The second file is the .mif. The header is allways the same (I
don't remember if the blank line after this header is mandatory).
You have to complete the Coordsys line by the one that fits your
rasters (I just use the Coordys line of the first table I want to
put in. they should anyways be the same for each table !) :
------------------------
Version 450
Charset "WindowsLatin1"
Delimiter ","
CoordSys Earth Projection ................
Columns 2
Table Char(100)
Description Char(25)
Data
------------------------
You must now create the rectangles. Generaly (but you have to
verify this), you can find the extent of each raster in its .tab
file, like the Coordsys infos. "Region 1" means you have a polygon
"5" means 5 points (it's a closed rectangle, with the same
coordinates for the first and the last point). Then you have the
points (in the order for drawing a rectangle !), and the aspect
(pen, brush), which is not important (you don't draw them).
Example (you can use this as a template, just changing the 5
coordiantes lines) :
------------------------
Region 1
5
779950 2099950
779950 2110050
790050 2110050
790050 2099950
779950 2099950
Pen (1,2,0)
Brush (2,16777215,16777215)
------------------------
In conclusion, you must have one region record and one line in the
.mid file for each image you want in your seamless layer.
2- Straithforward... (tab2tab xxx.mif xxx.tab)
3- Simply add the following lines at the end of the .tab file
------------------------
ReadOnly
begin_metadata
"\IsSeamless" = "TRUE"
"\IsReadOnly" = "FALSE"
end_metadata
-------------------------
You should now see your raster data if you open the table.
I hope this can help you and other users to create seamless table. I
should have some example for doing this, but they are limited to the
kind af raster I have (french scanned Maps and orthophotographies).
I developped this because we wanted to convert images form tiff to ecw
then made a seamless layer. You can launch the command on a large
amount of files (say 6000), and directories and let your computer doing
the painfull job while you sleep or enjoy the week-end...
Tim Smith a écrit :
Thanks Bill.
I'm unsure how mapinfo references the other tabs in the seamless table.
I open the seamless table in MapInfo, but can't query it or open a new
browser window. How can see what tabs it references?
Do you have any ideas how I could create my own seamless table without
using the seamless layer tool? Are there any other tools around that
can do this? I don't have mapbasic.
[...]
--
Michel Wurtz
MAP/SG/SM/SDSI/CERIT/DIG
B.P. 12668 - 31326 Castanet-Tolosan Cedex
_______________________________________________
MapInfo-L mailing list
[email protected]
http://www.directionsmag.com/mailman/listinfo/mapinfo-l