public class TLcdGML31AbstractGeometry extends TLcdGML31AbstractGML implements ILcdShape
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
GID_PROPERTY
Property that maps on the
gid attribute. |
static TLcdDataProperty |
SRS_PROPERTY
Property that maps on the
SRSReferenceGroup attributes. |
DESCRIPTION_PROPERTY, ID_PROPERTY, META_DATA_PROPERTY_PROPERTY, NAME_PROPERTY
Constructor and Description |
---|
TLcdGML31AbstractGeometry() |
TLcdGML31AbstractGeometry(TLcdDataType aType) |
TLcdGML31AbstractGeometry(TLcdDataType aType,
ILcdModelReference aSrs)
Constructs an abstract geometry for the given type and initializes its
model reference (srs).
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains2D(double v,
double v1)
Checks whether this
ILcdShape contains the given point in
the 2D space. |
boolean |
contains2D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 2D space. |
boolean |
contains3D(double v,
double v1,
double v2)
Checks whether this
ILcdShape contains the given point in
the 3D space. |
boolean |
contains3D(ILcdPoint aILcdPoint)
Checks whether this
ILcdShape contains the given ILcdPoint in the 3D space. |
ILcdBounds |
getBounds()
Returns the
ILcdBounds by which the geometry of this ILcdBounded object
is bounded. |
ILcdPoint |
getFocusPoint()
Returns the focus point of this
ILcdShape . |
String |
getGid()
Gets the value of the
GID_PROPERTY property. |
ILcdModelReference |
getSrs()
Gets the value of the
SRS_PROPERTY property. |
void |
setGid(String aValue)
Sets the value of the
GID_PROPERTY property. |
void |
setSrs(ILcdModelReference aValue)
Sets the value of the
SRS_PROPERTY property. |
String |
toString() |
getDescription, getId, getMetaDataProperty, getName, setDescription, setId
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeature
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clone
public static final TLcdDataProperty SRS_PROPERTY
SRSReferenceGroup
attributes. Acceptable values for this property are instances of ILcdModelReference
.public static final TLcdDataProperty GID_PROPERTY
gid
attribute. Acceptable values for this property are instances of java.lang.String
.public TLcdGML31AbstractGeometry(TLcdDataType aType, ILcdModelReference aSrs)
aType
- the type of the object to constructaSrs
- the model reference for this objectsetSrs(ILcdModelReference)
public TLcdGML31AbstractGeometry(TLcdDataType aType)
public TLcdGML31AbstractGeometry()
public ILcdModelReference getSrs()
SRS_PROPERTY
property.SRS_PROPERTY
property.public void setSrs(ILcdModelReference aValue)
SRS_PROPERTY
property.aValue
- the value to set for the SRS_PROPERTY
property.public ILcdPoint getFocusPoint()
ILcdShape
ILcdShape
.getFocusPoint
in interface ILcdShape
ILcdShape
.public boolean contains2D(ILcdPoint aILcdPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 2D space.
Only the first two dimensions of the ILcdShape
and the ILcdPoint
are considered.contains2D
in interface ILcdShape
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains2D(double, double)
public boolean contains2D(double v, double v1)
ILcdShape
ILcdShape
contains the given point in
the 2D space. Only the first two dimensions of the ILcdShape
are considered.contains2D
in interface ILcdShape
v
- the x coordinate of the point.v1
- the y coordinate of the point.public boolean contains3D(ILcdPoint aILcdPoint)
ILcdShape
ILcdShape
contains the given ILcdPoint
in the 3D space.contains3D
in interface ILcdShape
aILcdPoint
- the ILcdPoint
to test.ILcdShape.contains3D(double, double, double)
public boolean contains3D(double v, double v1, double v2)
ILcdShape
ILcdShape
contains the given point in
the 3D space.contains3D
in interface ILcdShape
v
- the x coordinate of the point.v1
- the y coordinate of the point.v2
- the z coordinate of the point.public ILcdBounds getBounds()
ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
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 undefined
bounds.
You can create undefined bounds using the default constructors
of TLcdLonLatBounds
or TLcdXYBounds
.
getBounds
in interface ILcdBounded
ILcdBounds
by which the geometry of this ILcdBounded
object
is bounded.public String toString()
toString
in class TLcdDataObject
public String getGid()
GID_PROPERTY
property.
This attribute is included for backward compatibility with GML 2 and is deprecated with GML 3. This identifer is superceded by "gml:id" inherited from AbstractGMLType. The attribute "gid" should not be used anymore and may be deleted in future versions of GML without further notice.
GID_PROPERTY
property.public void setGid(String aValue)
GID_PROPERTY
property.
This attribute is included for backward compatibility with GML 2 and is deprecated with GML 3. This identifer is superceded by "gml:id" inherited from AbstractGMLType. The attribute "gid" should not be used anymore and may be deleted in future versions of GML without further notice.
aValue
- the value to set for the GID_PROPERTY
property.