Ignore:
Timestamp:
2014-05-30T10:27:18+02:00 (10 years ago)
Author:
bastiK
Message:

added right- and left-hand traffic database
(new mapcss pseudo-class-condition :righthandtraffic)

Data file (data/left-right-hand-traffic.osm) license: CC0.
Loosely based on boundary lines data from naturalearthdata.com.
Traffic law info from wikipedia.
Boundaries generalized, especially in areas where there seem to be no roads.
Should be mostly correct, but some remote islands and atolls may be assigned wrongly.
Alway check before you start driving. :)

Added fast lookup index similar to QuadBuckets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/BBox.java

    r6890 r7193  
    22package org.openstreetmap.josm.data.osm;
    33
     4import java.awt.geom.Rectangle2D;
    45import java.util.Arrays;
    56
     
    259260        return idx1;
    260261    }
     262   
     263    public Rectangle2D toRectangle() {
     264        return new Rectangle2D.Double(xmin, ymin, xmax - xmin, ymax - ymin);
     265    }
    261266
    262267    @Override
Note: See TracChangeset for help on using the changeset viewer.