id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	state
3173	Bad calculation of layer.maxScale while parsing OpenLayers.Format.WMSCapabilities	jachym	tschaub	"In v1 of OpenLayers.Format.WMSCapabilities, v1_1, 

[http://trac.osgeo.org/openlayers/browser/trunk/openlayers/lib/OpenLayers/Format/WMSCapabilities/v1_1.js#L76]

{{{
[...]
            ""ScaleHint"": function(node, obj) {
                var min = node.getAttribute(""min"");
                var max = node.getAttribute(""max"");
                var rad2 = Math.pow(2, 0.5);
                var ipm = OpenLayers.INCHES_PER_UNIT[""m""];
                obj.maxScale = parseFloat(
                    ((min / rad2) * ipm * 
                        OpenLayers.DOTS_PER_INCH).toPrecision(13)
                );
                obj.minScale = parseFloat(
                    ((max / rad2) * ipm * 
                        OpenLayers.DOTS_PER_INCH).toPrecision(13)
                );

}}}

If OpenLayers.DOTS_PER_INCH is set to 72, it seems to be working well. But if it is 96 (or other number), the result is different.

Is it right? "	bug	closed	minor	2.11 Release	Format.WMSCapabilities	2.10	invalid			
