public class DataSource extends Object
| Modifier and Type | Field and Description |
|---|---|
Bounds |
bounds
The bounds of this data source
|
String |
origin
The textual description of the origin (example: "OpenStreetMap Server")
|
| Constructor and Description |
|---|
DataSource(Bounds bounds,
String origin)
Constructs a new
DataSource. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Area |
getDataSourceArea(Collection<DataSource> dataSources)
Returns the total area of downloaded data (the "yellow rectangles").
|
static List<Bounds> |
getDataSourceBounds(Collection<DataSource> dataSources)
Replies the list of data source bounds.
|
int |
hashCode() |
String |
toString() |
public DataSource(Bounds bounds, String origin)
DataSource.bounds - The bounds of this data sourceorigin - The textual description of the origin (example: "OpenStreetMap Server")IllegalArgumentException - if bounds is nullpublic static Area getDataSourceArea(Collection<DataSource> dataSources)
dataSources - list of data sourcesData.getDataSourceArea()public static List<Bounds> getDataSourceBounds(Collection<DataSource> dataSources)
Replies the list of data source bounds.
Dataset maintains a list of data sources which have been merged into the data set. Each of these sources can optionally declare a bounding box of the data it supplied to the dataset.
This method replies the list of defined (non null) bounding boxes.
dataSources - list of data sourcesData.getDataSourceBounds()