Re: [mapserver-users] WMS Mapfile implementation

2010-02-07 Thread Simon Mercier
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

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 

> 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.00, 38.00, -80.25,
> 42.00"
> #"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@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


[mapserver-users] Managing offset in the legend

2010-02-07 Thread Ben Madin
G'day all,

We have been showing some boolean information on the map using segments of a 
circle, created using vector symbols (of maximum dimension 1 x 1 pixel, and a 
size of 10.)

In order to keep sizes and stuff easy, all the vectors are just a quarter of a 
circle, and then we scale them up and use offsets to put them into position.
<>
While this is working great on the maps, we can't get the legend to work (see 
attachment) with all the segments being offset, sometimes out of the legend.

Is there some solution we could use to 'recentre' the segments. At the moment 
the only client friendly solution we have is to create manually an image for 
the legend and superimpose it on the map, but the map creation system allows 
clients to create their own maps.

cheers

Ben








___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users