Class TLcdISO19115GeographicBoundingBox
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.metadata.model.util.TLcdISO19118Object
com.luciad.format.metadata.model.extent.TLcdISO19115GeographicExtent
com.luciad.format.metadata.model.extent.TLcdISO19115GeographicBoundingBox
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdBounds,ILcdShape,ILcdCloneable,ILcdDeepCloneable,Serializable,Cloneable
public class TLcdISO19115GeographicBoundingBox
extends TLcdISO19115GeographicExtent
implements ILcdBounds
Geographic position of the dataset. This is only an approximate so specifying the co-ordinate
reference system is unnecessary.
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to theeastBoundLongitudeelement.static final TLcdDataPropertyData property that maps to thenorthBoundLatitudeelement.static final TLcdDataPropertyData property that maps to thesouthBoundLatitudeelement.static final TLcdDataPropertyData property that maps to thewestBoundLongitudeelement.Fields inherited from class com.luciad.format.metadata.model.extent.TLcdISO19115GeographicExtent
EXTENT_TYPE_CODE_PROPERTYFields inherited from class com.luciad.format.metadata.model.util.TLcdISO19118Object
ID_PROPERTY, UUID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionTLcdISO19115GeographicBoundingBox(double aMinLon, double aMaxLon, double aMinLat, double aMaxLat) Creates a new box using the given longitude and latitude values.Creates a new box initialized to match the values of the specified bounds. -
Method Summary
Modifier and TypeMethodDescriptionReturns a deep clone of this object.Returns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds.Returns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds.booleancontains2D(double aX, double aY) Checks whether thisILcdShapecontains the given point in the 2D space.booleancontains2D(double aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBoundsobject contains the given rectangle in the 2D space.booleancontains2D(ILcdBounds aBounds) Checks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 2D space.booleancontains2D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 2D space.booleancontains3D(double aX, double aY, double aZ) Checks whether thisILcdShapecontains the given point in the 3D space.booleancontains3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBoundsobject contains the given box in the 3D space.booleancontains3D(ILcdBounds aBounds) Checks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 3D space.booleancontains3D(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.doublegetDepth()Returns the depth of the bounding box.Returns the role value contained in the value of theEAST_BOUND_LONGITUDE_PROPERTYproperty.Returns the focus point of thisILcdShape.doubleReturns the height of the bounding box.Returns the location of the bounding box (smallest x and y coordinates).Returns the role value contained in the value of theNORTH_BOUND_LATITUDE_PROPERTYproperty.Returns the role value contained in the value of theSOUTH_BOUND_LATITUDE_PROPERTYproperty.Returns the role value contained in the value of theWEST_BOUND_LONGITUDE_PROPERTYproperty.doublegetWidth()Returns the width of the bounding box.booleaninteracts2D(double aX, double aY, double aWidth, double aHeight) Checks whether thisILcdBoundsobject interacts with the given rectangle in the 2D space.booleaninteracts2D(ILcdBounds aBounds) Checks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject in the 2D space.booleaninteracts3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Checks whether thisILcdBoundsobject interacts with the given box in the 3D space.booleaninteracts3D(ILcdBounds aBounds) Checks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject.booleanIndicates whether this bounds object is valid.voidsetEastBoundLongitude(Double aValue) Sets the value of the property that maps to theeastBoundLongitudeelement.voidsetNorthBoundLatitude(Double aValue) Sets the value of the property that maps to thenorthBoundLatitudeelement.voidsetSouthBoundLatitude(Double aValue) Sets the value of the property that maps to thesouthBoundLatitudeelement.voidsetWestBoundLongitude(Double aValue) Sets the value of the property that maps to thewestBoundLongitudeelement.Methods inherited from class com.luciad.format.metadata.model.extent.TLcdISO19115GeographicExtent
getExtentTypeCode, setExtentTypeCodeMethods inherited from class com.luciad.format.metadata.model.util.TLcdISO19118Object
getId, getUuid, setId, setUuidMethods inherited from class com.luciad.datamodel.TLcdDataObject
clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue, toStringMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.ILcdBounds
getCenter, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZMethods inherited from interface com.luciad.util.ILcdCloneable
clone
-
Field Details
-
WEST_BOUND_LONGITUDE_PROPERTY
Data property that maps to thewestBoundLongitudeelement. The possible values for this property are instances ofTLcdISO19115Optional<Double>. -
EAST_BOUND_LONGITUDE_PROPERTY
Data property that maps to theeastBoundLongitudeelement. The possible values for this property are instances ofTLcdISO19115Optional<Double>. -
SOUTH_BOUND_LATITUDE_PROPERTY
Data property that maps to thesouthBoundLatitudeelement. The possible values for this property are instances ofTLcdISO19115Optional<Double>. -
NORTH_BOUND_LATITUDE_PROPERTY
Data property that maps to thenorthBoundLatitudeelement. The possible values for this property are instances ofTLcdISO19115Optional<Double>.
-
-
Constructor Details
-
TLcdISO19115GeographicBoundingBox
public TLcdISO19115GeographicBoundingBox() -
TLcdISO19115GeographicBoundingBox
Creates a new box initialized to match the values of the specified bounds.- Parameters:
aBounds- the bounds to use for this bounding box- Since:
- 2017.1
-
TLcdISO19115GeographicBoundingBox
public TLcdISO19115GeographicBoundingBox(double aMinLon, double aMaxLon, double aMinLat, double aMaxLat) Creates a new box using the given longitude and latitude values.- Parameters:
aMinLon- the west bound longitudeaMaxLon- the east bound longitudeaMinLat- the south bound longitudeaMaxLat- the north bound longitude- Since:
- 2017.1
-
TLcdISO19115GeographicBoundingBox
-
-
Method Details
-
getBounds
Description copied from interface:ILcdBoundedReturns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.If the geometry does not allow retrieving valid bounds (for example a polyline with 0 points) the return value is unspecified. It is highly recommended to return an
undefinedbounds. You can create undefined bounds using the default constructors ofTLcdLonLatBoundsorTLcdXYBounds.- Specified by:
getBoundsin interfaceILcdBounded- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
isDefined
public boolean isDefined()Description copied from interface:ILcdBoundsIndicates whether this bounds object is valid.- If
true, this bounds describes a valid geographic region. - If
false, this bounds does not represent a geographic region, and its location, width, height and depth should not be used.
- Specified by:
isDefinedin interfaceILcdBounds- Returns:
trueif this object describes actual bounds,falseif not
- If
-
cloneAs2DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Specified by:
cloneAs2DEditableBoundsin interfaceILcdBounds- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-
cloneAs3DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Specified by:
cloneAs3DEditableBoundsin interfaceILcdBounds- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-
contains2D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 2D space. Only the first two dimensions of theILcdBoundsobjects are considered.If either bounds is
undefined, the result is false.- Specified by:
contains2Din interfaceILcdBounds- Parameters:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double aX, double aY, double aWidth, double aHeight) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the given rectangle in the 2D space. Only the first two dimensions of theILcdBoundsobject are considered.If this bounds is
undefined, the result is false.- Specified by:
contains2Din interfaceILcdBounds- Parameters:
aX- the x coordinate of the rectangle.aY- the y coordinate of the rectangle.aWidth- the width of the rectangle.aHeight- the height of the rectangle.- Returns:
- the boolean result of the containment test.
-
contains3D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the givenILcdBoundsobject in the 3D space.If either bounds is
undefined, the result is false.- Specified by:
contains3Din interfaceILcdBounds- Parameters:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject contains the given box in the 3D space.If this bounds is
undefined, the result is false.- Specified by:
contains3Din interfaceILcdBounds- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.aWidth- the width of the box.aHeight- the height of the box.aDepth- the depth of the box.- Returns:
- the boolean result of the containment test.
- See Also:
-
getDepth
public double getDepth()Description copied from interface:ILcdBoundsReturns the depth of the bounding box. The depth has to be larger than or equal to 0.- Specified by:
getDepthin interfaceILcdBounds- Returns:
- the depth of the bounding box.
-
getHeight
public double getHeight()Description copied from interface:ILcdBoundsReturns the height of the bounding box. The height has to be larger than or equal to 0.- Specified by:
getHeightin interfaceILcdBounds- Returns:
- the height of the bounding box.
-
getLocation
Description copied from interface:ILcdBoundsReturns the location of the bounding box (smallest x and y coordinates).- Specified by:
getLocationin interfaceILcdBounds- Returns:
- the location of the bounding box.
-
getWidth
public double getWidth()Description copied from interface:ILcdBoundsReturns the width of the bounding box. The width has to be larger than or equal to 0.- Specified by:
getWidthin interfaceILcdBounds- Returns:
- the width of the bounding box.
-
interacts2D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject in the 2D space. Only the first two dimensions of theILcdBoundsobjects are considered.If either bounds is
undefined, the result is false.- Specified by:
interacts2Din interfaceILcdBounds- Parameters:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the interaction test.
- See Also:
-
interacts2D
public boolean interacts2D(double aX, double aY, double aWidth, double aHeight) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the given rectangle in the 2D space. Only the first two dimensions of theILcdBoundsobject are considered.If this bounds is
undefined, the result is false.- Specified by:
interacts2Din interfaceILcdBounds- Parameters:
aX- the x coordinate of the rectangle.aY- the y coordinate of the rectangle.aWidth- the width of the rectangle.aHeight- the height of the rectangle.- Returns:
trueif thisILcdBoundsobject touches or overlaps to any extent with the given rectangle,falseotherwise.
-
interacts3D
Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the givenILcdBoundsobject.If either bounds is
undefined, the result is false.- Specified by:
interacts3Din interfaceILcdBounds- Parameters:
aBounds- theILcdBoundsto compare with.- Returns:
- the boolean result of the interaction test.
- See Also:
-
interacts3D
public boolean interacts3D(double aX, double aY, double aZ, double aWidth, double aHeight, double aDepth) Description copied from interface:ILcdBoundsChecks whether thisILcdBoundsobject interacts with the given box in the 3D space.If this bounds is
undefined, the result is false.- Specified by:
interacts3Din interfaceILcdBounds- Parameters:
aX- the x coordinate of the box.aY- the y coordinate of the box.aZ- the z coordinate of the box.aWidth- the width of the box.aHeight- the height of the box.aDepth- the depth of the box.- Returns:
trueif thisILcdBoundsobject touches or overlaps to any extent with the given box,falseotherwise.
-
contains2D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 2D space. Only the first two dimensions of theILcdShapeand theILcdPointare considered.- Specified by:
contains2Din interfaceILcdShape- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double aX, double aY) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 2D space. Only the first two dimensions of theILcdShapeare considered.- Specified by:
contains2Din interfaceILcdShape- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.- Returns:
- the boolean result of the containment test.
-
contains3D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 3D space.- Specified by:
contains3Din interfaceILcdShape- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double aX, double aY, double aZ) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 3D space.- Specified by:
contains3Din interfaceILcdShape- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.- Returns:
- the boolean result of the containment test.
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Returns:
- the focus point of this
ILcdShape.
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. If the clone is not already present in the dictionary, a new instance if created as follows:- First, a new instance is created using Java's clone() mechanism.
- Then, all properties of this object are cloned and set on the newly created
instance. A property is cloned as follows:
- If the property value is an
ILcdDataObject, the value is cloned by first creating a new instance via thevalue.getDataType().newInstance()method, and then cloning its properties one by one. - If the value implements
ILcdDeepCloneableorILcdCloneablethen this interface is used to clone the value. - Otherwise, the property value is copied by reference.
- If the property value is an
- Specified by:
clonein interfaceILcdDeepCloneable- Overrides:
clonein classTLcdDataObject- Parameters:
aObjectDictionary- the Object dictionary that keeps track of the objects for which a clone has already been made, and their corresponding clone Object.- Returns:
- a deep clone of this object
-
getWestBoundLongitude
Returns the role value contained in the value of theWEST_BOUND_LONGITUDE_PROPERTYproperty. Returnsnullif the value of theWEST_BOUND_LONGITUDE_PROPERTYproperty isnull.- Returns:
- the role value of the
WEST_BOUND_LONGITUDE_PROPERTYproperty. - See Also:
-
setWestBoundLongitude
Sets the value of the property that maps to thewestBoundLongitudeelement. to a new instance of the association classTLcdISO19115Optionalinitialized with the given role value. In case the given role value isnull, theWEST_BOUND_LONGITUDE_PROPERTYproperty is set tonull.- Parameters:
aValue- the role value to set for theWEST_BOUND_LONGITUDE_PROPERTYproperty.
-
getEastBoundLongitude
Returns the role value contained in the value of theEAST_BOUND_LONGITUDE_PROPERTYproperty. Returnsnullif the value of theEAST_BOUND_LONGITUDE_PROPERTYproperty isnull.- Returns:
- the role value of the
EAST_BOUND_LONGITUDE_PROPERTYproperty. - See Also:
-
setEastBoundLongitude
Sets the value of the property that maps to theeastBoundLongitudeelement. to a new instance of the association classTLcdISO19115Optionalinitialized with the given role value. In case the given role value isnull, theEAST_BOUND_LONGITUDE_PROPERTYproperty is set tonull.- Parameters:
aValue- the role value to set for theEAST_BOUND_LONGITUDE_PROPERTYproperty.
-
getSouthBoundLatitude
Returns the role value contained in the value of theSOUTH_BOUND_LATITUDE_PROPERTYproperty. Returnsnullif the value of theSOUTH_BOUND_LATITUDE_PROPERTYproperty isnull.- Returns:
- the role value of the
SOUTH_BOUND_LATITUDE_PROPERTYproperty. - See Also:
-
setSouthBoundLatitude
Sets the value of the property that maps to thesouthBoundLatitudeelement. to a new instance of the association classTLcdISO19115Optionalinitialized with the given role value. In case the given role value isnull, theSOUTH_BOUND_LATITUDE_PROPERTYproperty is set tonull.- Parameters:
aValue- the role value to set for theSOUTH_BOUND_LATITUDE_PROPERTYproperty.
-
getNorthBoundLatitude
Returns the role value contained in the value of theNORTH_BOUND_LATITUDE_PROPERTYproperty. Returnsnullif the value of theNORTH_BOUND_LATITUDE_PROPERTYproperty isnull.- Returns:
- the role value of the
NORTH_BOUND_LATITUDE_PROPERTYproperty. - See Also:
-
setNorthBoundLatitude
Sets the value of the property that maps to thenorthBoundLatitudeelement. to a new instance of the association classTLcdISO19115Optionalinitialized with the given role value. In case the given role value isnull, theNORTH_BOUND_LATITUDE_PROPERTYproperty is set tonull.- Parameters:
aValue- the role value to set for theNORTH_BOUND_LATITUDE_PROPERTYproperty.
-