Ignore:
Timestamp:
2016-03-07T23:29:30+01:00 (4 years ago)
Author:
simon04
Message:

see #11516 - Compute multipolygon area, include in MapCSS, JOSM search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r9940 r9952  
    13861386        @Override
    13871387        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();
    13921390        }
    13931391
Note: See TracChangeset for help on using the changeset viewer.