MapTools.org

[maplab-users] .TAB files

Martin Kiuru Martin.Kiuru@Elion.ee
Wed, 10 Dec 2003 08:38:50 +0200
Yes, this mapfile works in gmapfactory. But if layer, which uses
TAB-file is on, gmfactory or browser window shows nothing. If this layer
is disabled, map works fine.
Btw, this question is allready addressed on the mapserver-users list,
and the answer is :

Hi,
As far as I know mapserver does not support georeference in mapinfo TAB
format. OGR (gdal) supports mapinfo vector files. You sould convert your
TAB to tfw file. See raster howto.
Bye
Zoltan Siki

Is it true, that TAB format is not supported ? 

Thanks in advice
Martin Kiuru.

-----Original Message-----
From: Zak James [mailto:zak-ms@hoppsan.org] 
Sent: Tuesday, December 09, 2003 5:30 PM
To: Martin Kiuru
Cc: maplab-users@lists.maptools.org
Subject: Re: [maplab-users] .TAB files


Can you confirm if this mapfile works in gmapfactory or the shp2img 
command line utility? If not, it may be better addressed on the 
mapserver-users list.

zak

--
Zak James
Applications and Software Development
DM Solutions Group Inc.
http://www.dmsolutions.ca

On Dec 9, 2003, at 3:51 AM, Martin Kiuru wrote:

> Greetings,
>
> I have a trouble with TAB-files in MapLab 2.1-rc3. I have a map-file 
> which uses 2 shapefiles and works fine. But when I am trying to add 
> TAB file connected to TIFF file, which covers small part of the big 
> map, browser MapBrowser window shows nothing, and there is no ROSA 
> controls in the window. I tryed to add TAB via MapLab interface, after

> that tryed to add it manually using this sample :
>
> LAYER
> NAME "Builtup_Areas_tab"
> TYPE POLYGON
> CONNECTIONTYPE OGR
> CONNECTION "data/tab/092b06_builtup_a.tab"
> STATUS ON
> CLASS
> ...
> END
> ...
> END
>
> But there it doesn't work. I also tried to build the mapfile with only

> one layer, which uses TAB but without any effect. During various 
> experiments with Extent, ROSA application starts (sometimes), but I 
> never saw my tiff image in MapBrowser or application window. Please, 
> give me some good advices.
>
> Here is configuration of my mapfile and .tab file.
>
> MAP
>   NAME "EESTI"
>   STATUS ON
>   EXTENT 352772 6360880.68 750300 6658590.32
>   SIZE 600 450
>   SHAPEPATH "C:/ms4w/Apache/htdocs/maplab/tutorial/data"
>   SYMBOLSET "C:/ms4w/Apache/htdocs/maplab/tutorial/etc/symbols.sym"
>   FONTSET "C:/ms4w/Apache/htdocs/maplab/tutorial/etc/fonts.txt"
>   IMAGETYPE png
>   IMAGECOLOR 255 255 255
>   UNITS METERS
>   WEB
>     MINSCALE 1000
>     MAXSCALE 5e+007
>     IMAGEPATH "C:/ms4w/Apache/htdocs/maplab/tmp/img/"
>     IMAGEURL "/maplab/tmp/img/"
>   END
>   QUERYMAP
>     STATUS OFF
>     SIZE -1 -1
>     COLOR 255 0 0
>     STYLE HILITE
>   END
>   LEGEND
>     STATUS ON
>     OUTLINECOLOR 255 255 255
>     IMAGECOLOR 255 255 255
>     POSITION LL
>     KEYSIZE 18 12
>     KEYSPACING 5 5
>     TEMPLATE 
> "C:/ms4w/Apache/htdocs/maplab/htdocs/mapbrowser/legend_template.html"
>     LABEL
>       TYPE BITMAP
>       SIZE TINY
>       OFFSET 0 0
>       BUFFER 0
>       MINDISTANCE -1
>       MINFEATURESIZE -1
>       COLOR 0 0 89
>       BACKGROUNDCOLOR 255 255 255
>       PARTIALS TRUE
>       FORCE FALSE
>     END
>   END
>   SCALEBAR
>     STATUS ON
>     COLOR 255 255 255
>     OUTLINECOLOR 0 0 0
>     BACKGROUNDCOLOR 0 0 0
>     IMAGECOLOR 255 255 255
>     UNITS KILOMETERS
>     INTERVALS 5
>     SIZE 150 5
>     STYLE 0
>     POSITION LL
>     LABEL
>       TYPE BITMAP
>       SIZE SMALL
>       OFFSET 0 0
>       BUFFER 0
>       MINDISTANCE -1
>       MINFEATURESIZE -1
>       COLOR 0 0 0
>       PARTIALS TRUE
>       FORCE FALSE
>     END
>   END
>   OUTPUTFORMAT
>     NAME "png"
>     MIMETYPE "image/png"
>     DRIVER "GD/PNG"
>     EXTENSION "png"
>     IMAGEMODE PC256
>     TRANSPARENT FALSE
>   END
>
>      .......
>
>  LAYER
>         NAME "Raster"
>         TYPE POLYGON
>         CONNECTIONTYPE OGR
>         CONNECTION 
> "C:/ms4w/Apache/htdocs/maplab/tutorial/data/44_75_E.TAB"
>         STATUS ON
>         CLASS
>           NAME"Raster"
> 	    COLOR 250 175 25
>           OUTLINECOLOR 255 0 0	
>         END
>      END
> END
>
> ------------TAB-FILE-------------
>
> !table
> !version 300
> !charset WindowsLatin1
>
> Definition Table
>   File "44_75.TIF"
>   Type "RASTER"
>   (650000.00,6380001.69) (0,0) Label "Pt 1",
>   (660000.00,6380001.69) (5904,0) Label "Pt 2",
>   (650000.00,6370000.00) (0,5905) Label "Pt 3",
>   (660000.00,6370000.00) (5904,5905) Label "Pt 4"
>   CoordSys Earth Projection 3, 33, "m", 24, 57.51755393056, 58, 
> 59.33333333, 500000, 6375000
>   Units "m"
>
>
>
>
> _______________________________________________
> Maplab-users mailing list
> Maplab-users@lists.maptools.org 
> http://lists.maptools.org/mailman/listinfo/maplab-users
>
>




This archive was generated by Pipermail.