public class OSMEntitySnapshot extends Object implements OSHDBMapReducible
Alongside the entity and the timestamp, also the entity's geometry is provided.
| Constructor and Description |
|---|
OSMEntitySnapshot(CellIterator.IterateByTimestampEntry data) |
OSMEntitySnapshot(OSMEntitySnapshot other,
org.locationtech.jts.geom.Geometry reclippedGeometry)
Creates a copy of the current entity snapshot with an updated geometry.
|
| Modifier and Type | Method and Description |
|---|---|
OSMEntity |
getEntity()
The entity for which the snapshot has been obtained.
|
org.locationtech.jts.geom.Geometry |
getGeometry()
The geometry of this entity at the snapshot's timestamp clipped to the requested area of
interest.
|
org.locationtech.jts.geom.Geometry |
getGeometryUnclipped()
The geometry of this entity at the snapshot's timestamp.
|
OSHEntity |
getOSHEntity()
The (parent) osh entity of the osm entity for which the snapshot has been obtained.
|
OSHDBTimestamp |
getTimestamp()
The timestamp for which the snapshot of this data entity has been obtained.
|
public OSMEntitySnapshot(CellIterator.IterateByTimestampEntry data)
public OSMEntitySnapshot(OSMEntitySnapshot other, org.locationtech.jts.geom.Geometry reclippedGeometry)
public OSHDBTimestamp getTimestamp()
public org.locationtech.jts.geom.Geometry getGeometry()
public org.locationtech.jts.geom.Geometry getGeometryUnclipped()
public OSMEntity getEntity()
This is the (not deleted) version of a OSHEntity that was valid at the provided snapshot timestamp.
public OSHEntity getOSHEntity()
Copyright © 2016–2020 HeiGIT. All rights reserved.