Package com.luciad.format.gml2.model
Class TLcdGML2AbstractGeometry
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.datamodel.TLcdFeaturedDataObject
com.luciad.format.gml2.model.TLcdGML2AbstractGeometry
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdShape,ILcdCloneable,ILcdDeepCloneable,ILcdFeatured,ILcdSelfDescribedFeatured,Serializable,Cloneable
- Direct Known Subclasses:
TLcdGML2AbstractGeometryCollectionBase,TLcdGML2Box,TLcdGML2LinearRing,TLcdGML2LineString,TLcdGML2Point,TLcdGML2Polygon
All geometry elements are derived from this abstract supertype;
a geometry element may have an identifying attribute (gid).
It may be associated with a spatial reference system.
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyProperty that maps on thegidattribute.static final TLcdDataPropertyProperty that maps on theSRSReferenceGroupattributes. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an abstract geometry for the given type.TLcdGML2AbstractGeometry(TLcdDataType aType, ILcdModelReference aSrs) Constructs an abstract geometry for the given type and initializes its model reference (srs). -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains2D(double v, double v1) Checks whether thisILcdShapecontains the given point in the 2D space.booleancontains2D(ILcdPoint aILcdPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 2D space.booleancontains3D(double v, double v1, double v2) Checks whether thisILcdShapecontains the given point in the 3D space.booleancontains3D(ILcdPoint aILcdPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.Returns the focus point of thisILcdShape.getGid()Gets the value of theGID_PROPERTYproperty.getSrs()Gets the value of theSRS_PROPERTYproperty.voidSets the value of theGID_PROPERTYproperty.voidsetSrs(ILcdModelReference aValue) Sets the value of theSRS_PROPERTYproperty.Methods inherited from class com.luciad.datamodel.TLcdFeaturedDataObject
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeatureMethods inherited from class com.luciad.datamodel.TLcdDataObject
clone, 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.util.ILcdCloneable
clone
-
Field Details
-
GID_PROPERTY
Property that maps on thegidattribute. Acceptable values for this property are instances ofjava.lang.String. -
SRS_PROPERTY
Property that maps on theSRSReferenceGroupattributes. Acceptable values for this property are instances ofILcdModelReference.
-
-
Constructor Details
-
TLcdGML2AbstractGeometry
Constructs an abstract geometry for the given type.- Parameters:
aType- the type of the object to construct
-
TLcdGML2AbstractGeometry
Constructs an abstract geometry for the given type and initializes its model reference (srs).- Parameters:
aType- the type of the object to constructaSrs- the model reference for this object- See Also:
-
-
Method Details
-
getSrs
Gets the value of theSRS_PROPERTYproperty.- Returns:
- the value of the
SRS_PROPERTYproperty.
-
setSrs
Sets the value of theSRS_PROPERTYproperty.- Parameters:
aValue- the value to set for theSRS_PROPERTYproperty.
-
getGid
Gets the value of theGID_PROPERTYproperty.- Returns:
- the value of the
GID_PROPERTYproperty.
-
setGid
Sets the value of theGID_PROPERTYproperty.- Parameters:
aValue- the value to set for theGID_PROPERTYproperty.
-
getFocusPoint
Description copied from interface:ILcdShapeReturns the focus point of thisILcdShape.- Specified by:
getFocusPointin interfaceILcdShape- Returns:
- the focus point of this
ILcdShape.
-
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:
aILcdPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains2D
public boolean contains2D(double v, double v1) 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:
v- the x coordinate of the point.v1- 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:
aILcdPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
public boolean contains3D(double v, double v1, double v2) Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the given point in the 3D space.- Specified by:
contains3Din interfaceILcdShape- Parameters:
v- the x coordinate of the point.v1- the y coordinate of the point.v2- the z coordinate of the point.- Returns:
- the boolean result of the containment test.
-
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.
-