public class DefaultBoundingPolygon extends AbstractGeographicExtent implements BoundingPolygon
The following property is mandatory in a well-formed metadata according ISO 19115:
EX_BoundingPolygon
└─polygon…………………
The sets of points defining the bounding polygon.Limitations:
XML
instead.Defined in the sis-metadata
module
identifiers
Constructor and Description |
---|
DefaultBoundingPolygon()
Constructs an initially empty bounding polygon.
|
DefaultBoundingPolygon(BoundingPolygon object)
Constructs a new instance initialized with the values from the specified metadata object.
|
DefaultBoundingPolygon(Geometry polygon)
Creates a bounding polygon initialized to the specified polygon.
|
Modifier and Type | Method and Description |
---|---|
static DefaultBoundingPolygon |
castOrCopy(BoundingPolygon object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Collection<Geometry> |
getPolygons()
Returns the sets of points defining the bounding polygon or other geometry.
|
void |
setPolygons(Collection<? extends Geometry> newValues)
Sets the sets of points defining the resource boundary.
|
castOrCopy, getInclusion, setInclusion
freeze, getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
getInclusion
public DefaultBoundingPolygon()
public DefaultBoundingPolygon(Geometry polygon)
polygon
- the sets of points defining the bounding polygon.public DefaultBoundingPolygon(BoundingPolygon object)
object
- the metadata to copy values from, or null
if none.castOrCopy(BoundingPolygon)
public static DefaultBoundingPolygon castOrCopy(BoundingPolygon object)
null
, then this method returns null
.DefaultBoundingPolygon
, then it is returned unchanged.DefaultBoundingPolygon
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 Collection<Geometry> getPolygons()
getPolygons
in interface BoundingPolygon
public void setPolygons(Collection<? extends Geometry> newValues)
newValues
- the new boundaries.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.