[Geomoose-users] NFHL WMS from mapfile
Miller, Elizabeth (DOT)
Elizabeth.Miller at state.mn.us
Wed Sep 15 09:33:21 EDT 2010
Here is the map-source from the mapbook:
<map-source name="fema" type="mapserver" tiled="false" reference="false">
<file>/ms4w/apps/metrogis/maps/mapfiles_metro/WMS/fema_wms.map</file>
<layer name="Flood Data Availability"/>
</map-source>
And in the catalog portion of the mapbook:
<layer title="Flood Data Availability" src="fema/Flood Data Availability" legend="false" status="off" metadata="true"><metadata>http://msc.fema.gov</metadata></layer>
I should also add that there are scale restrictions on the various layers in the service, but I have tried various layers and can’t get any of them to work. “Flood Data Availability” may not have been the best example to use here because it does not display at large scales (larger than 1:300,000).
Also, the service is not tiled and the maximum image size is 1024 x 1024 pixels. ArcMap is able to bring it in and it displays correctly.
I can get the service to display in Geomoose if I reference it directly from the mapbook but I would like to use a mapfile and bring it in that way. If I pull it in directly in the mapbook this works:
<map-source name="fema" type="wms" tiled="false" reference="false" projection="EPSG:4326">
<url>http://hazards.fema.gov/wmsconnector/wmsconnector/Servlet/NFHL?</url>
<layer name="Flood_Hazard_Zones_General"/>
<layer name="Q3 Flood Hazards (red)"/>
<layer name="Floodways"/>
<param name="format" value="image/jpeg"/>
<param name="TRANSPARENT" value="TRUE"/>
<param name="styles" value=""/>
</map-source>
From: Dan Little [mailto:danlittle at yahoo.com]
Sent: Tuesday, September 14, 2010 3:19 PM
To: Miller, Elizabeth (DOT); geomoose-users at lists.sourceforge.net
Subject: Re: [Geomoose-users] NFHL WMS from mapfile
Can you attach the Mapbook? or Copy and paste the mapbook entry that pertains to the WMS?
From: "Miller, Elizabeth (DOT)" <Elizabeth.Miller at state.mn.us>
To: "geomoose-users at lists.sourceforge.net" <geomoose-users at lists.sourceforge.net>
Sent: Tue, September 14, 2010 11:32:59 AM
Subject: [Geomoose-users] NFHL WMS from mapfile
I have not been able to bring in the FEMA NFHL Flood Mapping WMS into my Geomoose map via a mapfile. What am I missing? Can anyone help??? Here is my mapfile. I have tried both “Flood Data Availability” and “HDM:Q3_COUNTYMAP” as the wms_name, and have tried calling both from the map-source in the mapbook file. Maybe there is a problem with the extent?
Thank you for any help.
Liesa Miller
MnDOT
Saint Paul, Minnesota
---------------------------------------------------------------------------------------------------------------------
MAP
NAME 'fema_wms'
SIZE 800 650
STATUS ON
EXTENT 189783.560000 4816309.330000 761653.524114 5472346.500000
UNITS METERS
IMAGETYPE PNG
TRANSPARENT TRUE
WEB
INCLUDE "../../temp_directory.map"
END
PROJECTION
'init=epsg:26915'
END
LAYER
NAME Flood Data Availability
TYPE RASTER
STATUS DEFAULT
OFFSITE 0 0 0
CONNECTIONTYPE WMS
CONNECTION "http://hazards.fema.gov/wmsconnector/wmsconnector/Servlet/NFHL?"
METADATA
"wms_title" "Flood Data Availability"
"wms_srs" "EPSG:4326"
"wms_name" "HDM:Q3_COUNTYMAP"
"wms_server_version" "1.1.1"
"wms_format" "image/png"
"wms_styles" ""
"wms_exceptions" "application/vnd.ogc.se_inimage"
END
PROJECTION
"init=epsg:4326"
END
END #layer
END #Map
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20100915/2daf8aaf/attachment.html
More information about the Geomoose-users
mailing list