Ticket #2150 (closed bug: fixed)

Opened 4 years ago

Last modified 4 years ago

WMSGetCapabilities: scalehint values seem incorrect

Reported by: bartvde Owned by: tschaub
Priority: minor Milestone: 2.9 Release
Component: Format Version: 2.8 RC4
Keywords: Cc:
State: Complete

Description

This is what Mapserver reports in the WMS GetCapabilities:

<ScaleHint min="39.5998292216226" max="835.651436166369" />

In the MAP file this corresponds to:

MINSCALE 100000
MAXSCALE 2.11024e+06

Format.WMSCapabilities gives:

4220480
200000

So this is doubled somehow!

Attachments

ticket2150.patch Download (0.8 KB) - added by bartvde 4 years ago.
ticket250.1.patch Download (3.2 KB) - added by elemoine 4 years ago.

Change History

Changed 4 years ago by bartvde

The problem here is that the value is multiplied with rad2, and it should be divided.

Changed 4 years ago by bartvde

Changed 4 years ago by bartvde

  • state set to Review

Added patch, still needs a testcase though, but this can be easily added after #2145 has been committed to trunk.

Changed 4 years ago by elemoine

  • state changed from Review to Commit

ticket250.1.patch Download adds tests. Thanks Bart for providing me with the numbers to test against. Please commit if the patch works for you.

Changed 4 years ago by elemoine

Changed 4 years ago by bartvde

  • status changed from new to closed
  • state changed from Commit to Complete
  • resolution set to fixed

(In [9571]) correctly parse ScaleHint values from WMS GetCapabilities response, thanks elemoine for the testcase, r=elemoine (closes #2150)

Note: See TracTickets for help on using tickets.