Help needed with using .tab files with MapServer {Scanned} {Scanned}
Beales, Joe
Joe.Beales at NORTECHONLINE.CO.UK
Wed May 11 05:14:01 PDT 2005
Hi Zoltan,
At Last, I've got my map! Thanks!
But I don't understand, what is the difference between STATUS DEFAULT
and STATUS ON?
Many thanks,
Joe
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Siki Zoltan
Sent: 11 May 2005 14:56
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Re: [UMN_MAPSERVER-USERS] Help needed with using .tab files
with MapServer {Scanned} {Scanned}
Hi Joe,
First of all try STATUS DEFAULT in the layer section.
Second remove any projection parameter from your map file.
It should work, I use MapInfo tabs a lot in mapserver
Bye
Zoltan
On Wed, 11 May 2005, Beales, Joe wrote:
> Hi,
>
> I'm new to MapServer and I'm having problems in producing a map from
> Mapinfo files.
> I've got Mapserver 4.5 installed (with ogr support) on apache 2 under
> Windows XP Pro. (I've downloaded some tutorials and got them producing
> the correct results.) I've searched the mail list archive and seen
> some people have had the same problem but I can't find a definitive
> answer.
>
> I've used ogrinfo to try and get the correct extent and units.
> Below is the Map file I'm using, I am missing something?
> I've tried various projections but they don't seem to make a
difference.
> I've also tried referencing a non-existent .TAB file in the CONNECTION
> parameter and don't receive any errors is that normal?
> All I get is a blank gif.
>
> MAP
> DEBUG ON
> NAME "Testing"
> EXTENT 57.308593 -20.525013 57.806386 -19.981773
> UNITS DD
> SHAPEPATH "C:/Program Files/Apache Group/Apache/htdocs/maur/"
> IMAGETYPE PNG
> IMAGECOLOR 255 255 200
> STATUS ON
> SIZE 400 400
>
> PROJECTION
> #"init=epsg:4326"
> "proj=latlong"
> "ellps=WGS84"
> END
>
> WEB
> LOG "C:\mapserv_err.txt"
> TEMPLATE "printable.html"
> IMAGEPATH "C:/Program Files/Apache Group/Apache2/htdocs/tmp/"
> IMAGEURL "/tmp/"
> END
>
> LAYER
> NAME "Districts"
> DEBUG ON
> TYPE POLYGON
> CONNECTIONTYPE OGR
> CONNECTION "C:/Program Files/Apache
> Group/Apache2/htdocs/maur/District.TAB"
> #DATA "District"
> STATUS ON
>
> PROJECTION
> #"init=epsg:4326"
> "proj=latlong"
> "ellps=WGS84"
> END
> #STYLEITEM "AUTO"
> CLASS
> OUTLINECOLOR 0 0 0
> COLOR 128 128 128
> END
> END
> END
>
> Part Results from ogrinfo:
>
> Layer name: District
> Geometry: Polygon
> Feature Count: 9
> Extent: (57.308593, -20.525013) - (57.806386, -19.981773) Layer SRS
> WKT:
> GEOGCS["unnamed",
> DATUM["WGS_1984",
> SPHEROID["WGS 84",6378137,298.257223563],
> TOWGS84[0,0,0,0,0,0,0]],
> PRIMEM["Greenwich",0],
> UNIT["degree",0.0174532925199433]]
>
>
> Also can anyone point me in the direction of any online resources
> intended for peole just getting started with MapServer?
> Regards,
>
> Joe Beales.
>
>
More information about the MapServer-users
mailing list