[mapserver-users] Mapinfo TAB files and lcc projection
Ari Yakar
ayakar@globvision.com
Fri, 15 Mar 2002 15:27:20 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0000_01C1CC35.E5B6F3F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Hi All,
I am trying to use simple Mapinfo TAB files (Map of Canada,capitals and
Highways) with Mapserver 3.5. If I don't
apply any projection there is no problem. However when I specify the
projection
settings, map loads with 40x zoomed in. I have to Zoom out to see the whole
map.
I checked documentation of proj3 and proj4 but can't figure out the proper
settings
The following is the PROJECTION settings I have in the map file.
PROJECTION
"proj=lcc"
"ellps=GRS80"
"lat_0=60"
"lon_0=-105"
"lat_1=61.666666700"
"lat_2=63.333333300"
"datum=NAD83"
"units=m"
END
I am attaching the Map file just in case it might help to identify the
problem.
Thanks
Ari Yakar
Globvision Inc.
------=_NextPart_000_0000_01C1CC35.E5B6F3F0
Content-Type: text/plain;
name="demo.map"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="demo.map"
#
# Start of map file
#
NAME DEMO
STATUS ON
SIZE 600 600
#EXTENT -565918.875607 55035.833974 506926.040335 1264723.213684
EXTENT -180 -90 180 90
UNITS METERS
SHAPEPATH "data"
IMAGECOLOR 255 255 255
# you may need to change this to match your MapServer build
#IMAGETYPE PNG
#
# Projection definition, consult the PROJ.4 documentation for parameter =
discussion
#
PROJECTION
"proj=3Dlcc"
"ellps=3DGRS80"
"lat_0=3D60"
"lon_0=3D-105"
"lat_1=3D61.666666700"
"lat_2=3D63.333333300" =20
"datum=3DNAD83"
"units=3Dm"
END
#
# Start of web interface definition (including WMS enabling metadata)
#
WEB
HEADER demo_header.html
TEMPLATE demo.html
FOOTER demo_footer.html
#MINSCALE 1000
#MAXSCALE 1550000
IMAGEPATH "d:\virtual\Mapserver\tmp\"
IMAGEURL "/tmp/"
LOG "c:\temp\DemoApp.log"
METADATA
WMS_TITLE "Server Demo"
WMS_ABSTRACT "Sample Data"
WMS_ACCESSCONSTRAINTS none
# change this value to match your setup
WMS_ONLINERESOURCE "http://192.168.1.22/demo/demo_init.html"
WMS_SRS "EPSG:26915"
=09
END
END
QUERYMAP
SIZE 200 200
STATUS ON
STYLE HILITE
COLOR 255 0 0
END
#
# Start of reference map
#
REFERENCE
IMAGE graphics/reference.gif
#EXTENT 393234.393701263 5205405.16440722 495769.579718949 =
5307959.02579127
EXTENT -180 -90 180 90
SIZE 120 120
STATUS ON
COLOR -1 -1 -1
OUTLINECOLOR 255 0 0
END
#
# Start of legend
#
LEGEND
KEYSIZE 18 12
LABEL
TYPE BITMAP
SIZE MEDIUM
COLOR 0 0 89
END
STATUS ON
END
#
# Start of scalebar
#
SCALEBAR
IMAGECOLOR 255 255 255
LABEL
COLOR 255 255 255
SIZE tiny =20
END
STYLE 1
SIZE 80 2
COLOR 255 255 255
UNITS METERS
INTERVALS 1
TRANSPARENT TRUE
STATUS TRUE
END
#
# Start of symbol definitions (we're only using a few)
#
SYMBOL
NAME 'circle'
TYPE ELLIPSE
POINTS 1 1 END
FILLED TRUE
END
#
# Start of layer definitions
#
# *************************************************************
# Layer 1
# *************************************************************
LAYER
NAME Canada
TYPE POLYGON
STATUS ON
CONNECTIONTYPE OGR
CONNECTION "d:\MapserverData\eq\CANADA.TAB"
# STYLEITEM "AUTO"
CLASSITEM Province_Name
CLASSITEM Pop_1990
LABELITEM Province
CLASS
NAME "Ontario"
EXPRESSION 'Ontario'
COLOR 255 127 92
OUTLINECOLOR 200 200 200=20
TEMPLATE "resultL1.html"=09
END
CLASS
NAME "Quebec"
EXPRESSION 'Quebec'
COLOR 195 209 186
OUTLINECOLOR 200 200 200=20
TEMPLATE "resultL1.html"=09
END =20
CLASS
NAME "1990 Pop (0 - 1M)"
EXPRESSION ( ([Pop_1990] >=3D 0) and ([Pop_1990] < 1000000))
COLOR 127 0 10
OUTLINECOLOR 200 200 200=20
TEMPLATE "resultL1.html"=09
END
CLASS
NAME "1990 Pop (1M - 2M)"
EXPRESSION ( ([Pop_1990] >=3D 1000000 ) and ([Pop_1990] < 2000000))
COLOR 127 100 50
OUTLINECOLOR 200 200 200=20
TEMPLATE "resultL1.html"=09
END
CLASS
NAME "1990 Pop (2M - 3M)"
EXPRESSION ( ([Pop_1990] >=3D 2000000 ) and ([Pop_1990] < 3000000))
COLOR 0 30 255
OUTLINECOLOR 200 200 200=20
TEMPLATE "resultL1.html"=09
END
=20
CLASS
NAME "Canada"
COLOR 0 127 92
OUTLINECOLOR 200 200 200=20
TEMPLATE "resultL1.html"=09
END
=20
=20
=20
HEADER "resultL1_header.html"
FOOTER "resultL1_footer.html" =20
PROJECTION
"AUTO"
END
=20
END # Layer
# *************************************************************
# Layer 2
# *************************************************************
LAYER
NAME Canhiway
TYPE Line
STATUS ON
CONNECTIONTYPE OGR
CONNECTION "d:\MapserverData\eq\Canhiway.TAB"
STYLEITEM "AUTO"
CLASSITEM Highway
CLASS
NAME "Canhiway"
TEMPLATE "resultL2.html"=09
END
HEADER "resultL2_header.html"
FOOTER "resultL2_footer.html" =20
PROJECTION
"AUTO"
END
=20
END # Layer
# *************************************************************
# Layer 3
# *************************************************************
LAYER
NAME Can_caps
TYPE point
STATUS ON
CONNECTIONTYPE OGR
CONNECTION "d:\MapserverData\eq\Can_caps.TAB"
STYLEITEM "AUTO"
CLASSITEM Capital
CLASS
NAME "Can_caps"
TEMPLATE "resultL3.html"=09
END
=09
HEADER "resultL3_header.html"
FOOTER "resultL3_footer.html" =20
PROJECTION
"AUTO"
END
END
END # Map File
------=_NextPart_000_0000_01C1CC35.E5B6F3F0--