Changeset 11240 in josm for trunk/src/org/openstreetmap/josm/actions/SelectByInternalPointAction.java
- Timestamp:
- 2016-11-12T14:52:32+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/SelectByInternalPointAction.java
r10448 r11240 30 30 31 31 /** 32 * Returns the surrounding polygons/multipolygons 33 * ordered by their area size (from small to large) 32 * Returns the surrounding polygons/multipolygons ordered by their area size (from small to large) 34 33 * which contain the internal point. 35 34 * … … 38 37 */ 39 38 public static Collection<OsmPrimitive> getSurroundingObjects(EastNorth internalPoint) { 40 final DataSet ds = Main.getLayerManager().getEditDataSet(); 39 return getSurroundingObjects(Main.getLayerManager().getEditDataSet(), internalPoint); 40 } 41 42 /** 43 * Returns the surrounding polygons/multipolygons ordered by their area size (from small to large) 44 * which contain the internal point. 45 * 46 * @param ds the data set 47 * @param internalPoint the internal point. 48 * @return the surrounding polygons/multipolygons 49 * @since 11240 50 */ 51 public static Collection<OsmPrimitive> getSurroundingObjects(DataSet ds, EastNorth internalPoint) { 41 52 if (ds == null) { 42 53 return Collections.emptySet();
Note:
See TracChangeset
for help on using the changeset viewer.