[Geomoose-users] NFHL WMS from mapfile

Brent Fraser bfraser at geoanalytic.com
Tue Sep 14 16:15:36 EDT 2010


The Map file looks good.  I tried it with shp2img (I had to set IMAGEPATH):

C:\Users\brent>shp2img -m test1.map -o test1.png
msPrepareWMSLayerRequest(): WMS server error. WEB.IMAGEPATH must be set to
use W
MS client connections. <br>

C:\Users\brent>shp2img -all_debug 5 -m test1.map -o test1.png
msLoadMap(): 0.047s
HTTP: Starting to prepare HTTP requests.
HTTP request: id=0,
http://hazards.fema.gov/wmsconnector/wmsconnector/Servlet/NF
HL?LAYERS=HDM%3AQ3_COUNTYMAP&REQUEST=GetMap&SERVICE=WMS&FORMAT=image/png&STYLES=
&HEIGHT=650&VERSION=1.1.1&SRS=EPSG:4326&WIDTH=800&BBOX=-98.8846158164264,43.3774
394383682,-87.7798103990676,49.4038054972862&TRANSPARENT=TRUE&EXCEPTIONS=applica
tion/vnd.ogc.se_inimage
HTTP: Before download loop
msHTTPWriteFct(id=0, 3930 bytes)
msHTTPWriteFct(id=0, 3541 bytes)
HTTP: After download loop
msHTTPExecuteRequests() timing summary per layer (connect_time +
time_to_first_p
acket + download_time = total_time in seconds)
Layer 0: 0.250 + 0.764 + 0.422 = 1.436s
msDrawRasterLayerLow(Flood): entering.
msResampleGDALToMap in effect: cellsize = 0.013898
msDrawGDAL(Flood): using RAW_WINDOW=0 0 800 650
msDrawGDAL(): red,green,blue,alpha bands = 1,2,3,0
msDrawMap(): Layer 0 (Flood), 0.609s
msDrawMap(): Drawing Label Cache, 0.000s
msDrawMap() total time: 1.841s
msSaveImage() total time: 0.078s
msFreeMap(): freeing map at 015CD1E0.
shp2img total time: 2.013s

And I got a reasonable looking png file...

Best Regards,
Brent Fraser


> 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
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geomoose-users
>







More information about the Geomoose-users mailing list