[mapserver-users] WMS Mapfile implementation
Simon Mercier
mercier.simon at gmail.com
Sun Feb 7 09:33:50 PST 2010
Joseph,
you add in your CONNECTION tag a capabilitiess request...?? you have to put
this for your connection:
http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio<goog_1265503917657>
1)If you have to show county separately, you have to add one county in one
layer... But you can also cascading your request in other WMS to group them
in just one layer... (with the GROUP tag)
2)In a WMS layers, you sould have at least this in your Metadata tag:
wms_srs(you need for your service),
wms_name(WMS name you call),
wms_title(you want show in your service)
wms_server_version(usualy 1.1.1)
wms_format(format support by your WMS provider)
regards
simon mercier
2010/2/3 Joseph Harwood <joe.harwood at gmail.com>
> Greetings,
>
> I have a 2 part question.
> The USGS offers aerial imagery WMS service. This URL shows the location:
> http://seamless.usgs.gov/wms_services.php?layerid=15
>
> I want to incorporate a WMS service from the USGS that references many
> layers (in this case, county aerial imagery). The getcapabilites request
> show the layers in xml:
> ...
> OH_WoodCounty_1.0ft_Color_Mar_2006
> OH_WilliamsCounty_1.0ft_Color_Mar_2006
> OH_WayneCounty_1.0ft_Color_Mar_2006
> and so on.
>
> The online service URL is:
> http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio?REQUEST=capabilities&SERVICE=WMS
>
> 1. Is there a way to populate all these layers into my map with a single
> request, or do I need to make a mapfile layer object for each county?
>
> 2. If so, In doing this do I need the metadata to spell out each
> layer's(county) specific metadata? {title, bbox, name, layer, srid}
>
>
> My mapfile currently reads:
>
> LAYER
> NAME "OSIP-WMS"
> TYPE RASTER
> #TRANSPARENCY 40
> STATUS OFF
> #MINSCALEDENOM 6000
> CONNECTIONTYPE WMS
> CONNECTION "
> http://imsortho.cr.usgs.gov/wmsconnector/com.esri.wms.Esrimap/USGS_EDC_Ortho_Ohio?REQUEST=capabilities&SERVICE=WMS&layers=OH_AllenCounty_1.0ft_Color_Mar_2006
> "
>
> METADATA
> "wms_srs" "EPSG:4326"
> "wms_title" "OH_AllenCounty_1.0ft_Color_Mar_2006"
> "wms_name" "OH_AllenCounty_1.0ft_Color_Mar_2006"
> "wms_layer" "OH_AllenCounty_1.0ft_Color_Mar_2006"
> "wms_server_version" "1.1.1"
> "wms_format" "image/png"
> #"wms_latlonboundingbox" "-85.000000, 38.000000, -80.250000,
> 42.000000"
> #"wms_opaque" "255,255,255"
> "basemap" "1"
> END
>
> END
>
> As I have tried to get a single county to work, but I have had no success,
> yet.
> Any haelp would be appreciated.
>
> Thank you
>
> Joe
>
>
>
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20100207/d079ae88/attachment.htm>
More information about the MapServer-users
mailing list