Changeset 9952 in josm for trunk/src/org/openstreetmap/josm/actions/search
- Timestamp:
- 2016-03-07T23:29:30+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r9940 r9952 1386 1386 @Override 1387 1387 protected Long getNumber(OsmPrimitive osm) { 1388 if (!(osm instanceof Way && ((Way) osm).isClosed())) 1389 return null; 1390 Way way = (Way) osm; 1391 return (long) Geometry.closedWayArea(way); 1388 final Double area = Geometry.computeArea(osm); 1389 return area == null ? null : area.longValue(); 1392 1390 } 1393 1391
Note:
See TracChangeset
for help on using the changeset viewer.