Map creeping on updates
Gerry Creager N5JXS
gerry.creager at TAMU.EDU
Sat Feb 5 11:57:35 PST 2005
I've got a US map with extents set to keep the map to CONUS. The
Shapefiles (NWS CWS, States, Counties) potentially range from Alaska, to
Puerto Rico... much beyond CONUS.
When I simply try to create a new display or recenter, the map moves a
bit, like the curson was offset to the southeast if it's
click-to-recenter. The 'imgexts' flag in the URL is set to allow
extents for the full range (Alasoa to PR).
What've I done wrong?!?
I am including the mapfile.
*****
NAME polygon-warning
STATUS ON
# Map image size. Change size as desired
SIZE 800 800
#
# Start of web interface definition. Only the TEMPLATE parameter
# must be specified to display a map. See Mapserver documentation
#
WEB
# HEADER NWS-test1.html
# TEMPLATE polywarn1.html
# FOOTER NWS-test2.html
HEADER header2.php
TEMPLATE polywarn1.html
FOOTER footer2.php
# MINSCALE
# MAXSCALE
END
# Extent based on full extent of QGIS view
EXTENT -125 23 -65 50
UNITS dd
IMAGECOLOR 255 255 255
IMAGETYPE png
# Projection definition
# Projections are not currenlty supported. If desired, add your own
# projection information based on Mapserver documentation.
PROJECTION
"init=epsg:4269"
# "init=epsg:4326"
END
LAYER
NAME nwscounties
METADATA
"wfs_title" "CountyOutline"
END
TYPE POLYGON
STATUS DEFAULT
DATA /var/www/mesonet/texas/data/NWScounties.shp
TRANSPARENCY 100
DUMP TRUE
CLASS
NAME "NWScounties"
# TEMPLATE
# COLOR 0 0 0
OUTLINECOLOR 160 160 160
END
END
LAYER
NAME nwsstates
METADATA
"wfs_title" "StateOutlines"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/NWSstates.shp
DUMP TRUE
TRANSPARENCY 100
CLASS
NAME "NWSstates"
# TEMPLATE
# COLOR 0 0 0
OUTLINECOLOR 0 0 0
END
END
LAYER
NAME ffw
METADATA
"wfs_title" "FlashFlood"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/FFW.shp
DUMP TRUE
CLASS
NAME "FFW"
# TEMPLATE
COLOR 0 255 0
OUTLINECOLOR 0 255 0
END
END
LAYER
NAME smw
METADATA
"wfs_title" "SpecialMarine"
"wms_title" "Special Marine Warnings"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/SMW.shp
DUMP TRUE
CLASS
NAME "SMW"
# TEMPLATE
COLOR 255 255 0
OUTLINECOLOR 255 255 0
END
END
LAYER
NAME svr
METADATA
"wfs_title" "SevereTRW"
"wms_title" "Severe Thunderstorm Warnings"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/SVR.shp
DUMP TRUE
CLASS
NAME "SVR"
# TEMPLATE
COLOR 0 0 255
OUTLINECOLOR 0 0 255
END
END
LAYER
NAME tor
METADATA
"wfs_title" "TOR"
"wms_title" "Tornado Warning"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/TOR.shp
DUMP TRUE
CLASS
NAME "TOR"
# TEMPLATE
COLOR 255 0 0
OUTLINECOLOR 255 0 0
END
END
# Radar Layer
LAYER
TYPE RASTER
STATUS ON
NAME radar
METADATA
# "wfs_title" "CONUS Radar" ## REQUIRED
"wms_title" "CONUS Radar" ## REQUIRED
END
#SIZEUNITS pixels
# DUMP TRUE ### REQUIRED
DATA "/var/www/mesonet/gemdata/images/radar/USrad.gif"
OFFSITE 255 255 255
CLASS
COLOR -1 -1 -1
# NAME 'Doppler Radar Mosaic'
# TEMPLATE "radar.html"
END
END # LAYER
LAYER
NAME watch-outline
METADATA
"wfs_title" "WatchBox"
"wms_title" "Watch Outlines"
END
DUMP TRUE
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/WATCH.shp
# TRANSPARENCY 65
CLASS
NAME "Weather Watchs"
# TEMPLATE
OUTLINECOLOR 255 0 255
END
END
LAYER
NAME CWA
METADATA
"wfs_title" "CWSOutline"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/w_28de04.shp
TRANSPARENCY 90
DUMP TRUE
CLASS
NAME "CWA"
# TEMPLATE
# COLOR 0 0 0
OUTLINECOLOR 128 0 140
END
END
LAYER
NAME ffw-outline
METADATA
"wfs_title" "FFW Outline"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/FFW.shp
DUMP TRUE
CLASS
NAME "FFW-outline"
# TEMPLATE
# COLOR 0 0 0
OUTLINECOLOR 0 255 0
END
END
LAYER
NAME smw-outline
METADATA
"wfs_title" "SMWOutline"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/SMW.shp
DUMP TRUE
CLASS
NAME "SMW-outline"
# TEMPLATE
# COLOR 0 0 0
OUTLINECOLOR 255 255 0
END
END
LAYER
NAME svr-outline
METADATA
"wfs_title" "SVROutline"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/SVR.shp
DUMP TRUE
CLASS
NAME "SVR-outline"
# TEMPLATE
# COLOR 0 0 0
OUTLINECOLOR 0 0 255
END
END
LAYER
NAME tor-outline
METADATA
"wfs_title" "TOROutline"
END
TYPE POLYGON
STATUS ON
DATA /var/www/mesonet/texas/data/TOR.shp
DUMP TRUE
CLASS
NAME "TOR-outline"
# TEMPLATE
# COLOR 0 0 0
OUTLINECOLOR 255 0 0
END
END
END # Map File
*****
thanks!
gerry
--
Gerry Creager -- gerry.creager at tamu.edu
Texas Mesonet -- AATLT, Texas A&M University
Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.847.8578
Page: 979.228.0173
Office: 903A Eller Bldg, TAMU, College Station, TX 77843
More information about the MapServer-users
mailing list