gvSIG bugs #2982
Viewport for tiles is not correctly computed
Status: | Closed | % Done: | 0% | |
---|---|---|---|---|
Priority: | Normal | Spent time: | - | |
Assignee: | Joaquín del Cerro Murciano | |||
Category: | - | |||
Target version: | 2.1.0-2255-testing | |||
Severity: | Minor | Add-on version: | ||
gvSIG version: | 2.1.0 | Add-on build: | ||
gvSIG build: | Add-on resolve version: | |||
Operative System: | Add-on resolve build: | |||
Keywords: | Proyecto: | |||
Has patch: | Yes | Hito: | ||
Add-on name: | Unknown |
Description
The class Tiling (in org.gvsig.destkop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.mapcontext/org.gvsig.fmap.mapcontext.api/src/main/java/org/gvsig/fmap/mapcontext/layers/) does not correctly compute the viewport for tiles, in method getTileViewPort().
The Viewport is cloned from the parent, then assigned the tile parameters (height, width and envelope) and then it gets assigned the affine transform from the parent viewport. This is incorrect as the new viewport automatically computes its own affine transform, which is different from the parent. Instead of assigning the parent affine transform, the new viewport has to be assigned the offset of the tile, in this way the affine transform is correctly (internally) calculated by the viewport itself.
I attach a patch that solves the problem.
This error causes the WMSs to don't get correctly printed (some tiles are missing). See related bug.
Related issues
Associated revisions
Viewport for tiles is not correctly computed, refs #2982 (cmartinez)
History
#1 Updated by Cesar Martinez Izquierdo over 9 years ago
- Related to gvSIG bugs #2983: WMS layers are not correctly printed or exported to PDF added
#2 Updated by Álvaro Anguix over 9 years ago
- Assignee set to Joaquín del Cerro Murciano
#3 Updated by Joaquín del Cerro Murciano over 9 years ago
- Target version changed from 2.1.0-2259-rc3 to 2.1.0-2255-testing
#4 Updated by Joaquín del Cerro Murciano over 9 years ago
- Status changed from New to Fixed
#5 Updated by Álvaro Anguix over 9 years ago
- Status changed from Fixed to Closed