Ignore:
Timestamp:
2017-04-09T11:08:10+02:00 (7 years ago)
Author:
bastiK
Message:

fixed #7427 - Support reprojection (warping) of imagery layer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/projection/CustomProjection.java

    r11746 r11858  
    875875        return result;
    876876    }
     877
     878    @Override
     879    public ProjectionBounds getEastNorthBoundsBox(ProjectionBounds box, Projection boxProjection) {
     880        final int n = 8;
     881        ProjectionBounds result = null;
     882        for (int i = 0; i < 4*n; i++) {
     883            EastNorth en = latlon2eastNorth(boxProjection.eastNorth2latlon(getPointAlong(i, n, box)));
     884            if (result == null) {
     885                result = new ProjectionBounds(en);
     886            } else {
     887                result.extend(en);
     888            }
     889        }
     890        return result;
     891    }
    877892}
Note: See TracChangeset for help on using the changeset viewer.