public abstract class AbstractLocation extends Object
ISO 19112 describes the following properties as mandatory, but Apache SIS relaxes this restriction by
providing default values (possibly null
) in most cases:
ModifiableLocationType
,
ReferencingByIdentifiers
,
LocationFormat
Defined in the sis-referencing-by-identifiers
module
Modifier | Constructor and Description |
---|---|
protected |
AbstractLocation(ModifiableLocationType type,
CharSequence identifier)
Creates a new location for the given geographic identifier.
|
Modifier and Type | Method and Description |
---|---|
AbstractParty |
getAdministrator()
Returns the organization responsible for defining the characteristics of the location instance.
|
Collection<? extends InternationalString> |
getAlternativeGeographicIdentifiers()
Returns other identifier(s) for the location instance.
|
Collection<? extends AbstractLocation> |
getChildren()
Returns location instances of a different location type which subdivides this location instance.
|
Envelope |
getEnvelope()
Returns an envelope that encompass the location.
|
GeographicExtent |
getGeographicExtent()
Returns a description of the location instance.
|
InternationalString |
getGeographicIdentifier()
Returns a unique identifier for the location instance.
|
ModifiableLocationType |
getLocationType()
Returns a description of the nature of this geographic identifier.
|
Collection<? extends AbstractLocation> |
getParents()
Returns location instances of a different location type, for which this location instance is a sub-division.
|
Position |
getPosition()
Returns coordinates of a representative point for the location instance.
|
TemporalExtent |
getTemporalExtent()
Returns the date of creation of this version of the location instance.
|
String |
toString()
Returns a string representation of this location.
|
protected AbstractLocation(ModifiableLocationType type, CharSequence identifier)
null
arguments, but this is not recommended.
type
argument may be generalized to the
org.opengis.referencing.gazetteer.Location
interface.
This change is pending GeoAPI revision.type
- the description of the nature of this geographic identifier.identifier
- the geographic identifier to be returned by getGeographicIdentifier()
.public InternationalString getGeographicIdentifier()
LocationType.getIdentifications()
contain “name”, then geographic identifiers may be country
names like “Japan” or “France”, or places like “Eiffel Tower”. If location type identifications contain
“code”, then geographic identifiers may be “SW1P 3AD” postcode.
ModifiableLocationType.getIdentifications()
public Collection<? extends InternationalString> getAlternativeGeographicIdentifiers()
public TemporalExtent getTemporalExtent()
null
.null
if none.public GeographicExtent getGeographicExtent()
null
value. If non-null, SIS implementations typically
provide instances of geographic bounding boxes.null
if none.DefaultGeographicBoundingBox
,
DefaultBoundingPolygon
public Envelope getEnvelope()
getGeographicExtent()
, except that this method allows envelopes in non-geographic CRS.
The default implementation copies the getGeographicExtent()
in a new envelope associated
to the default geographic CRS.
null
if none.public Position getPosition()
The default implementation returns the getEnvelope() median position.
null
if none.public final ModifiableLocationType getLocationType()
org.opengis.referencing.gazetteer.Location
interface.
This change is pending GeoAPI revision.
If applied, this method will be made non-final.public AbstractParty getAdministrator()
org.opengis.metadata.citation.Party
interface. This change is pending
GeoAPI revision for upgrade from ISO 19115:2003 to ISO 19115:2014.null
.ModifiableLocationType.getOwner()
,
ReferencingByIdentifiers.getOverallOwner()
public Collection<? extends AbstractLocation> getParents()
org.opengis.referencing.gazetteer.Location
interface.
This change is pending GeoAPI revision.ModifiableLocationType.getParents()
public Collection<? extends AbstractLocation> getChildren()
org.opengis.referencing.gazetteer.Location
interface.
This change is pending GeoAPI revision.ModifiableLocationType.getChildren()
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.