Class FlaggedPoint

  • All Implemented Interfaces:
    java.io.Serializable, org.openstreetmap.atlas.geography.Located

    public class FlaggedPoint
    extends FlaggedObject
    A flag for a point Location P*
    See Also:
    Serialized Form
    • Constructor Detail

      • FlaggedPoint

        public FlaggedPoint​(org.openstreetmap.atlas.geography.Location point)
      • FlaggedPoint

        public FlaggedPoint​(org.openstreetmap.atlas.geography.atlas.items.LocationItem locationItem)
        Default constructor
        Parameters:
        locationItem - the LocationItem to flag
    • Method Detail

      • asGeoJsonFeature

        public com.google.gson.JsonObject asGeoJsonFeature​(java.lang.String flagIdentifier)
        Description copied from class: FlaggedObject
        A GeoJSON representation of the flagged object.
        Specified by:
        asGeoJsonFeature in class FlaggedObject
        Parameters:
        flagIdentifier - We always will want to know the id of the flag assocaited with this flag object.
        Returns:
        GeoJSON representation of the flagged object.
      • bounds

        public org.openstreetmap.atlas.geography.Rectangle bounds()
      • getAsCompleteFlaggedObject

        public FlaggedObject getAsCompleteFlaggedObject()
        Description copied from class: FlaggedObject
        Return either itself or a copy of itself where there is no memory reference to an Atlas.
        Specified by:
        getAsCompleteFlaggedObject in class FlaggedObject
        Returns:
        Flagged Object with no memory reference to an Atlas
      • getGeometry

        public java.lang.Iterable<org.openstreetmap.atlas.geography.Location> getGeometry()
        Specified by:
        getGeometry in class FlaggedObject
        Returns:
        flagged geometry
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.String> getProperties()
        Specified by:
        getProperties in class FlaggedObject
        Returns:
        flag key-value property map
      • getObject

        protected java.util.Optional<org.openstreetmap.atlas.geography.atlas.items.AtlasObject> getObject()
        Specified by:
        getObject in class FlaggedObject