Changeset 6069 in josm for trunk/src/org/openstreetmap/josm/data/imagery/Shape.java
- Timestamp:
- 2013-07-17T00:01:07+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/Shape.java
r5381 r6069 21 21 22 22 private List<Coordinate> coords = new ArrayList<Coordinate>(); 23 23 24 24 public Shape(String asString, String separator) throws IllegalArgumentException { 25 25 CheckParameterUtil.ensureParameterNotNull(asString, "asString"); … … 49 49 return coords; 50 50 } 51 51 52 52 public boolean contains(LatLon latlon) { 53 53 if (latlon == null) … … 65 65 66 66 double lat, lon; 67 67 68 68 try { 69 69 lat = Double.parseDouble(sLat); … … 81 81 throw new IllegalArgumentException(MessageFormat.format("Illegal double value ''{0}''", sLon)); 82 82 } 83 83 84 84 coords.add(new Coordinate(LatLon.roundToOsmPrecision(lat), LatLon.roundToOsmPrecision(lon))); 85 85 }
Note:
See TracChangeset
for help on using the changeset viewer.