Class OSMEntitySnapshotImpl

    • Constructor Detail

      • OSMEntitySnapshotImpl

        public OSMEntitySnapshotImpl​(OSMEntitySnapshot other,
                                     org.locationtech.jts.geom.Geometry reclippedGeometry)
        Creates a copy of the given entity snapshot object with an updated geometry.
      • OSMEntitySnapshotImpl

        public OSMEntitySnapshotImpl​(OSMEntitySnapshot other,
                                     LazyEvaluatedObject<org.locationtech.jts.geom.Geometry> reclippedGeometry)
        Creates a copy of the given entity snapshot object with an updated geometry.
    • Method Detail

      • getGeometry

        public org.locationtech.jts.geom.Geometry getGeometry()
        Description copied from interface: OSMEntitySnapshot
        The geometry of this entity at the snapshot's timestamp clipped to the requested area of interest.
        Specified by:
        getGeometry in interface OSMEntitySnapshot
        Returns:
        the geometry as a JTS Geometry
      • getGeometryUnclipped

        public org.locationtech.jts.geom.Geometry getGeometryUnclipped()
        Description copied from interface: OSMEntitySnapshot
        The geometry of this entity at the snapshot's timestamp. This is the full (unclipped) geometry of the osm entity.
        Specified by:
        getGeometryUnclipped in interface OSMEntitySnapshot
        Returns:
        the unclipped geometry of the osm entity snapshot as a JTS Geometry
      • getEntity

        public OSMEntity getEntity()
        Description copied from interface: OSMEntitySnapshot
        The entity for which the snapshot has been obtained.

        This is the (not deleted) version of a OSHEntity that was valid at the provided snapshot timestamp.

        Specified by:
        getEntity in interface OSMEntitySnapshot
        Returns:
        the OSMEntity object of this snapshot
      • getOSHEntity

        public OSHEntity getOSHEntity()
        Description copied from interface: OSMEntitySnapshot
        The (parent) osh entity of the osm entity for which the snapshot has been obtained.
        Specified by:
        getOSHEntity in interface OSMEntitySnapshot
        Returns:
        the OSHEntity object corresponding to this snapshot