[Geomoose-users] NFHL WMS from mapfile
Dan Little
danlittle at yahoo.com
Wed Sep 15 10:07:25 EDT 2010
Given the email I just got from Elizabeth and looking at the results of shp2img
(from Brent's email), I would bet serious money (like $20 or a couple cases of
beer) that MapServer is trying to request an image greater than 1024 x 1024.
This is causing MapServer to get an invalid response and returning a blank
image.
Tell GeoMOOSE to tile the layer and see if you start getting reasonable results.
>
>From: "Miller, Elizabeth (DOT)" <Elizabeth.Miller at state.mn.us>
>To: Dan Little <danlittle at yahoo.com>; "geomoose-users at lists.sourceforge.net"
><geomoose-users at lists.sourceforge.net>
>Sent: Wed, September 15, 2010 8:59:00 AM
>Subject: RE: [Geomoose-users] NFHL WMS from mapfile
>
>
>No, no pink screen. Just nothing.
>
>From:Dan Little [mailto:danlittle at yahoo.com]
>Sent: Wednesday, September 15, 2010 8:46 AM
>To: Miller, Elizabeth (DOT); geomoose-users at lists.sourceforge.net
>Subject: Re: [Geomoose-users] NFHL WMS from mapfile
>
>Are you getting a Pink Screen of Death in GeoMOOSE? If the image is blank then I
>would be that MapServer is trying to request an image larger than the restricted
>size (1024x1024).
>
>>From:"Miller, Elizabeth (DOT)" <Elizabeth.Miller at state.mn.us>
>>To: Dan Little <danlittle at yahoo.com>; "geomoose-users at lists.sourceforge.net"
>><geomoose-users at lists.sourceforge.net>
>>Sent: Wed, September 15, 2010 8:33:21 AM
>>Subject: RE: [Geomoose-users] NFHL WMS from mapfile
>>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:
>>
>>http://msc.fema.gov
>>
>>
>>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">
>>
>>http://hazards.fema.gov/wmsconnector/wmsconnector/Servlet/NFHL?
>> <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/15f52b72/attachment.html
More information about the Geomoose-users
mailing list