[mapserver-users] Calculation of scale in mapserver

Worth Lutz wal3 at mindspring.com
Mon Oct 27 05:04:31 PDT 2014


WMS call has WIDTH and HEIGHT in pixels and combined with BBOX 
calculates the scale.

http://localhost/wms/maps?LAYERS=parcels&TRANSPARENT=TRUE&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&FORMAT=image%2Fpng&SRS=EPSG%3A2264&BBOX=1843216.8888889,468292.22222222,2517439.1111111,835847.77777778&WIDTH=1517&HEIGHT=827


*Worth Lutz*
------------------

On 10/27/2014 06:23 AM, Malm Paul wrote:
>
> Hi,
>
> I wounder how MapServer can know the current scale I’m using in my 
> client, it must be calculated from the URL BBOX. But how does WMS know 
> the physical size of this box on the clients screen?
>
> The MIN/MAX-SCALEDENOM are used in WMS but not in WFS.
>
> I would like to search for WFS objects from objects that are visible 
> om my screen (WMS).
>
> To do that I need to know what scale WMS is currently using, or how 
> it’s calculated. Otherwise I can’t filter out the correct layers in my 
> WFS query (layers that are not WMS-rendered).
>
> Any ideas?
>
> Kind regards,
>
> Paul
>
>
>
> _______________________________________________
> 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/20141027/af4b3cbe/attachment.html>


More information about the mapserver-users mailing list