[Mapserver-users] Empty screen with .tab file?

Chiang Zeliang chiang_8_3 at hotmail.com
Tue Dec 16 20:30:09 EST 2003


Hi,

This is my .map file, you might want to give it a go?
For the certain .tab files that doesn't work, I've put a '*' on the whole 
layer coding.
The other layers without the * works fine...

From,
Zeliang





NAME Malaysia
STATUS on
SIZE 640 480
EXTENT -706345.000 143165.000 1204775.000 1501370.000
UNITS meters
IMAGECOLOR 204 255 255
FONTSET   ../../Fonts/fonts.list
DATAPATTERN "*.*"
SHAPEPATH "C:\Inetpub\wwwroot\Data"

PROJECTION
  "proj=utm"
  "ellps=WGS84"
  "datum=WGS84"
  "zone=48"
END

WEB
TEMPLATE "vtrack.html"
IMAGEPATH "\Inetpub\wwwroot\Tmp\"
IMAGEURL "/Tmp/"
EMPTY "/Empty.html"
#ERROR "/Error.html"
END

SCALEBAR
COLOR 0 0 80
IMAGECOLOR 204 204 204
INTERVALS 3
STATUS on
STYLE 1
TRANSPARENT on
UNITS kilometers
END

LEGEND
STATUS ON
KEYSIZE 18 15
IMAGECOLOR 255 255 255
LABEL
   FONT arialbd
   TYPE truetype
   SIZE  12
   COLOR 0 0 89
   POSITION ur
END
STATUS on
TEMPLATE "../../Legend.html"
END

LAYER
NAME 'Asia'
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "C:\Inetpub\wwwroot\Data\ASIA.TAB"
STYLEITEM "AUTO"
CLASS
   NAME 'Asia'
END
PROJECTION
   "AUTO"
END
END # Layer


LAYER
NAME 'States'
TYPE POLYGON
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "C:\Inetpub\wwwroot\Data\Msia_States.TAB"
STYLEITEM "AUTO"
MAXSCALE 5000000.0
CLASS
   NAME 'States'
END
PROJECTION
   "AUTO"
END
END

*LAYER
*NAME 'Railways'
*TYPE line
*STATUS DEFAULT
*CONNECTIONTYPE OGR
*CONNECTION "C:\Inetpub\wwwroot\Data\Msia_Railways.TAB"
*STYLEITEM "AUTO"
*MAXSCALE 5000000.0
*CLASS
*   NAME 'Railways'
*END
*PROJECTION
*  "AUTO"
*END
END # Layer

*LAYER
*NAME 'Mainroads'
*TYPE line
*STATUS DEFAULT
*CONNECTIONTYPE OGR
*CONNECTION "C:\Inetpub\wwwroot\Data\Msia_Mainroads.TAB"
*STYLEITEM "AUTO"
*MAXSCALE 5000000.0
*CLASS
*    NAME 'Mainroads'
*END
PROJECTION
   "AUTO"
END
END # Layer

LAYER
NAME 'Inlandwaters'
TYPE polygon
STATUS DEFAULT
CONNECTIONTYPE OGR
CONNECTION "C:\Inetpub\wwwroot\Data\Msia_Inlandwaters.TAB"
STYLEITEM "AUTO"
MAXSCALE 5000000.0
CLASS
   NAME 'Inlandwaters'
END
PROJECTION
   "AUTO"
END
END # Layer

*LAYER
*NAME 'Towntext'
*TYPE polygon
*STATUS DEFAULT
*CONNECTIONTYPE OGR
*CONNECTION "C:\Inetpub\wwwroot\Data\Msia_Towntext.TAB"
*STYLEITEM "AUTO"
*MAXSCALE 5000000.0
*CLASS
*   NAME 'Towntext'
*END
*PROJECTION
*   "AUTO"
*END
END


>From: "Hugo Nathaniel Rodrigues" <hugo at pbh.gov.br>
>To: "Chiang Zeliang" <chiang_8_3 at hotmail.com>
>CC: <mapserver-users at lists.gis.umn.edu>
>Subject: Re: [Mapserver-users] Empty screen with .tab file?
>Date: Tue, 16 Dec 2003 10:49:56 -0200
>
>please, send the contents of your .map file, because im trying to open one
>.tab file myself and maybe your map file works for me
>
>cheers
>Hugo Rodrigues
>Analista/Consultor
>SSSS - Prodabel
>----- Original Message -----
>From: "Chiang Zeliang" <chiang_8_3 at hotmail.com>
>To: <Mapserver-users at lists.gis.umn.edu>
>Sent: Tuesday, December 16, 2003 2:50 AM
>Subject: [Mapserver-users] Empty screen with .tab file?
>
>
> > Hi all,
> >
> >
> > I seem to have problems in opening a certain .tab file. The .tab file is 
>a
> > map of roads with its name and reference. It shows an empty screen
>whenever
> > I use mapserver to open it, is this suppose to happen? Need help. 
>Thanks.
> >
> >
> > From,
> > Zeliang
> >
> > _________________________________________________________________
> > Are you in love? Find a date on MSN Personals http://match.msn.com.my/
> >
> > _______________________________________________
> > Mapserver-users mailing list
> > Mapserver-users at lists.gis.umn.edu
> > http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
>

_________________________________________________________________
Using a handphone prepaid card? Reload your credit online! 
http://www.msn.com.my/reloadredir/default.asp




More information about the mapserver-users mailing list