[Geomoose-users] WMS Legend size

Jim Klassen klassen.js at gmail.com
Thu Jul 5 11:49:05 PDT 2012


I believe GeoMoose works with WMS request=GetFeature via identify.php but have not set that up in awhile.  IIRC it was simple to enable.

On Jul 5, 2012, at 12:44, "Reynolds, Michael J. (DOT)" <mike.reynolds at state.mn.us> wrote:

> Good information.  Thanks.  I think I will see if there is a way to set layer getLegendGraphic parameter defaults on Geoserver.  However, I’m not sure how defaults in any case can override user supplied parameters.
>  
> The second question – can geomoose be configured to identify against a wms?
>  
> From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org] On Behalf Of Jim Klassen
> Sent: Thursday, July 05, 2012 10:26 AM
> To: Reynolds, Michael J. (DOT)
> Cc: Geomoose-users at lists.osgeo.org
> Subject: Re: [Geomoose-users] WMS Legend size
>  
> Sounds like MapServer and GeoServer are different w.r.t. the WMS spec.
>  
> MapServer uses the height and width and bbox to compute the scale and location of what would be displayed for a map view defined by the bbox, width and height and provides a legend of the size specified in its configuration file.
>  
> My read of what you are saying GeoServer is doing is giving a legend of the size specified by the width and height parameters (and possibly doesn't support dynamic legends?)
> 
> 
> If this is true, I'm not sure how to rectify the two behaviors.   
>  
> Jim
> 
> On Jul 5, 2012, at 9:33, "Reynolds, Michael J. (DOT)" <mike.reynolds at state.mn.us> wrote:
> 
> I have set up a clean geomoose 2.6 and I am trying to add a WMS from a geoserver running on the same machine.
>  
> So far the WMS appears fine when I turn it on.
>  
> The legend comes in really large…  938x492 (see attached).  Where is that configured from?  The legend html result is below.
> Also, it doesn’t appear that the legend has any label.  It just shows the symbol.
> What are my next steps for getting an identify result from a WMS?
>  
> <img src="http://localhost:8080/geoserver/wms?FORMAT=image%2Fpng&SRS=EPSG%3A3857&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetLegendGraphic&STYLES=&LAYERS=school_districts&BBOX=-10364637.47957,5556873.6037397,-10346712.99644,5566275.3582175&WIDTH=938&HEIGHT=492&SCALE=54168.00204368367&LAYER=school_districts" class="catalog-legend-image">
> <geoserver-GetLegendGraphic.png>
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
> _______________________________________________
> Geomoose-users mailing list
> Geomoose-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geomoose-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120705/3c447565/attachment.html>


More information about the Geomoose-users mailing list