Ignore:
Timestamp:
2010-11-10T20:39:33+01:00 (14 years ago)
Author:
extropy
Message:

pdfimport: autodetection of rotation +90, -90 degrees.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/pdfimport/src/pdfimport/OsmBuilder.java

    r24056 r24186  
    3535
    3636        public Bounds getWorldBounds(PathOptimizer data) {
    37                 LatLon min = placement.tranformCoords(data.bounds.getMinX(), data.bounds.getMinY());
    38                 LatLon max = placement.tranformCoords(data.bounds.getMaxX(), data.bounds.getMaxY());
     37                LatLon min = placement.tranformCoords(new Point2D.Double(data.bounds.getMinX(), data.bounds.getMinY()));
     38                LatLon max = placement.tranformCoords(new Point2D.Double(data.bounds.getMaxX(), data.bounds.getMaxY()));
    3939                return new Bounds(min, max);
    4040        }
     
    6262                for(Point2D pt: layer.points) {
    6363                        Node node = new Node();
    64                         node.setCoor(this.placement.tranformCoords(pt.getX(), pt.getY()));
     64                        node.setCoor(this.placement.tranformCoords(pt));
    6565
    6666                        target.addPrimitive(node);
Note: See TracChangeset for help on using the changeset viewer.