public class DefaultGeographicDescription extends AbstractGeographicExtent implements GeographicDescription
EX_GeographicDescription
└─geographicIdentifier…… The identifier used to represent a geographic area.
└─code…………………………………… Alphanumeric value identifying an instance in the namespace.1731 code in the EPSG codespace.
The natural language description for EPSG:1731 can be “France – mainland north of 48.15°N”.
Limitations:
XML instead.Defined in the sis-metadata module
identifiers| Constructor and Description |
|---|
DefaultGeographicDescription()
Constructs an initially empty geographic description.
|
DefaultGeographicDescription(CharSequence description)
Creates an inclusive geographic description initialized to the given natural language description.
|
DefaultGeographicDescription(Citation authority,
String code)
Creates an inclusive geographic description initialized to the given identifier.
|
DefaultGeographicDescription(GeographicDescription object)
Constructs a new instance initialized with the values from the specified metadata object.
|
| Modifier and Type | Method and Description |
|---|---|
static DefaultGeographicDescription |
castOrCopy(GeographicDescription object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Identifier |
getGeographicIdentifier()
Returns the identifier used to represent a geographic area.
|
void |
setGeographicIdentifier(Identifier newValue)
Sets the identifier used to represent a geographic area.
|
castOrCopy, getInclusion, setInclusionfreeze, getIdentifierMap, getIdentifiers, getStandardcheckWritePermission, clone, collectionType, copyCollection, copyList, copySet, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSetasMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toStringgetInclusionpublic DefaultGeographicDescription()
public DefaultGeographicDescription(Citation authority, String code)
true.
Usage note: if the description is a sentence like “Netherlands offshore”, it may not be suitable
for the code argument. Callers may consider using the identifier description as an alternative and keep the code for a more compact string (often a primary key).
new DefaultGeographicDescription(Citations.EPSG, "1731")
can stand for “France – mainland north of 48.15°N”.authority - the authority of the identifier code, or null if none.code - the identifier code used to represent a geographic area, or null if none.public DefaultGeographicDescription(CharSequence description)
true and the
identifier code to one of the following choices:
description string if it is a valid
Unicode identifier,description.description - the natural language description of the meaning of the code value, or null if none.public DefaultGeographicDescription(GeographicDescription object)
object - the metadata to copy values from, or null if none.castOrCopy(GeographicDescription)public static DefaultGeographicDescription castOrCopy(GeographicDescription object)
null, then this method returns null.DefaultGeographicDescription, then it is returned unchanged.DefaultGeographicDescription instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object - the object to get as a SIS implementation, or null if none.null if the argument was null.public Identifier getGeographicIdentifier()
"EPSG" code space,"1731" code, andgetGeographicIdentifier in interface GeographicDescriptionnull.public void setGeographicIdentifier(Identifier newValue)
newValue - the new geographic identifier.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.