[mapserver-users] Projection or Data Problem?
Moen, Paul T.
pmoen at nd.gov
Thu Mar 5 10:55:46 PST 2009
Can anyone get this WMS layer to reproject to a projected coordinate system like epsg:2266?
I found this service at.
http://www.geocommunicator.gov/blmMap/Map.jsp?MAP=Energy
http://206.16.47.174/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?version=1.1.1&service=WMS&request=GetCapabilities
LAYER
GROUP "Political Boundaries"
NAME "Public Lands"
TYPE RASTER
PROJECTION
"init=epsg:4326"
END
STATUS ON
CONNECTION "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4326"
"wms_name" "SMA_ALL"
"wms_server_version" "1.1.1"
"wms_format" "image/gif"
END
END
The layer matches fine when I reproject it to epsg:4269, but when I project it on the fly to epsg:2266 or epsg:26914 it doesn't line up.
My full mapfile is below. The other WMS layer matches perfectly no matter what I set the main projection to in the mapfile.
MAP
NAME Mapfile
# when using 2266
#EXTENT 869020 45625 3206883 1281490
#when using 4269
#EXTENT -125 18 -65 57
#when using 26914
EXTENT -439406 4470523 1330419 5622143
SIZE 978 517
MAXSIZE 3072
UNITS FEET
SHAPEPATH "../mapdata"
IMAGECOLOR 191 255 255
DEBUG OFF
SYMBOLSET "symbols.dat"
FONTSET "../mapfiles/fonts/fonts.list"
#**********************************************************************
# Start of web interface definition (including WMS enabling metadata) *
#**********************************************************************
WEB
MINSCALEDENOM 1000
MAXSCALEDENOM 10000000
#IMAGEPATH "/Volumes/swcsan/DataManagement/WebServices/html/tmp/"
IMAGEPATH "/Library/WebServer/newswc/tmp/"
IMAGEURL "/tmp/"
END
QUERYMAP
COLOR 255 255 0
#OUTLINE COLOR 0 0 0
STYLE hilite
END
OUTPUTFORMAT
NAME 'AGG_JPEG'
DRIVER AGG/JPEG
IMAGEMODE RGB
END
PROJECTION
"init=epsg:26914"
END
LAYER
GROUP "Political Boundaries"
NAME "US Forest Service Regions"
TYPE RASTER
PROJECTION
"init=epsg:4326"
END
STATUS ON
CONNECTION "http://206.16.47.174:80/wmsconnector/com.esri.wms.Esrimap/BLM_SURFACE_MGT_AGY?"
CONNECTIONTYPE WMS
METADATA
"wms_srs" "EPSG:4326"
"wms_name" "Forest Service Regions"
"wms_server_version" "1.1.1"
"wms_format" "image/gif"
END
END
LAYER
NAME "Flood Data Availability"
TYPE RASTER
STATUS ON
CONNECTION "http://hazards.fema.gov/wmsconnector/wmsconnector/Servlet/NFHL?"
CONNECTIONTYPE WMS
PROJECTION
"proj=longlat"
"ellps=GRS80"
"datum=NAD83"
"no_defs"
END
METADATA
"wms_srs" "EPSG:4269"
"wms_name" "HDM:Q3_COUNTYMAP"
"wms_server_version" "1.1.1"
"wms_format" "image/gif"
END
GROUP "Flood Plain"
END
LAYER
NAME "Midwest States"
PROJECTION
"init=epsg:2266"
END
DATA states_upmidwest
TYPE POLYGON
STATUS ON
CLASS
NAME "All States"
STYLE
OUTLINECOLOR 255 0 0
END
END
END
END
This works in Arcmap but who knows what extra talking goes on behind the scenes to ArcIMS.
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090305/de98d4d1/attachment.htm>
More information about the MapServer-users
mailing list