I have 2 layers in the map file with different extents. In QGIS, I am able to see them one over the other in proper positions. However, when I am adding those 2 layers in the map file for MapServer (actually MS4W), only one of the 2 layers are visible depending upon whose extent is used in Map EXTENT.
Only that layer is visible whose extent (as shown in QGIS for that layer) is used in Map's EXTENT property.
When EXTENT=-7117600.0000000000000000 1367760.0000000000000000 4897040.0000000000000000 7809680.0000000000000000
When EXTENT=-164.1598054400749902 57.4191918763605997 -148.4810114236049969 70.7414186722972005
Following is the mapfile:
MAP
#EXTENT -164.1598054400749902 57.4191918763605997 -148.4810114236049969 70.7414186722972005
EXTENT -7117600.0000000000000000 1367760.0000000000000000 4897040.0000000000000000 7809680.0000000000000000
SIZE 3663 1964
IMAGECOLOR 255 255 255
SHAPEPATH "../data"
IMAGETYPE PNG
WEB
IMAGEPATH '/ms4w/tmp/ms_tmp/'
IMAGEURL '/ms_tmp/'
END
PROJECTION
"init=epsg:2964"
END
#
# Start of LAYER DEFINITIONS ---------------------------------------------
LAYER # Landcover raster layer begins here
NAME "landcover"
DATA "landcover-2.tif"
#EXTENT -7117600.0000000000000000 1367760.0000000000000000 4897040.0000000000000000 7809680.0000000000000000
STATUS OFF
TYPE RASTER
PROJECTION
"init=epsg:2964"
END
END # Landcover raster layer ends here
LAYER # Combined lakes layer begins here
NAME "combined-lakes"
DATA "combined-lakes.shp"
#EXTENT -164.1598054400749902 57.4191918763605997 -148.4810114236049969 70.7414186722972005
STATUS OFF
TYPE POLYGON
PROJECTION
"init=epsg:2964"
END
CLASS
NAME "lakes"
STYLE
COLOR 0 0 0
OUTLINECOLOR 32 32 32
END
END
END # Combined lakes layer ends here
# End of LAYER DEFINITIONS -------------------------------
END # end of map file
In QGIS, I am able to view both the layers properly:
What am I missing in my Map File that is causing this behavior?