Changeset 15891 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2020-02-22T13:27:03+01:00 (5 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data/osm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSet.java
r15609 r15891 430 430 } 431 431 432 /** 433 * Searches for all primitives in the given bounding box 434 * 435 * @param bbox the bounding box 436 * @return List of primitives in the given bbox. Can be empty but not null 437 * @since 15891 438 */ 439 public List<OsmPrimitive> searchPrimitives(BBox bbox) { 440 List<OsmPrimitive> primitiveList = new ArrayList<>(); 441 primitiveList.addAll(searchNodes(bbox)); 442 primitiveList.addAll(searchWays(bbox)); 443 primitiveList.addAll(searchRelations(bbox)); 444 return primitiveList; 445 } 446 432 447 @Override 433 448 public Collection<Relation> getRelations() { -
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r13764 r15891 586 586 public List<T> search(BBox searchBbox) { 587 587 List<T> ret = new ArrayList<>(); 588 if ( !searchBbox.isValid()) {588 if (searchBbox == null || !searchBbox.isValid()) { 589 589 return ret; 590 590 }
Note:
See TracChangeset
for help on using the changeset viewer.