Class TLcdGML31MultiGeometry
- All Implemented Interfaces:
ILcdDataObject,ILcdBounded,ILcdEditableShapeList,ILcdShape,ILcdShapeList,ILcdCloneable,ILcdDeepCloneable,ILcdFeatured,ILcdInvalidateable,ILcdSelfDescribedFeatured,Serializable,Cloneable
gml:MultiGeometry is a collection of one or more GML geometry objects of arbitrary type.
The members of the geometric aggregate may be specified either using the "standard" property (gml:geometryMember) or the array property (gml:geometryMembers). It is also valid to use both the "standard" and the array properties in the same collection.
- Since:
- 10.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to thegeometryMemberelement.static final TLcdDataPropertyData property that maps to thegeometryMemberselement.static final TLcdDataPropertyProperty that maps on thegidattribute.Fields inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGeometry
SRS_PROPERTYFields inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGML
DESCRIPTION_PROPERTY, ID_PROPERTY, META_DATA_PROPERTY_PROPERTY, NAME_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionTLcdGML31MultiGeometry(TLcdDataType aDataType, ILcdModelReference aSrs) Constructs a multi geometry and initializes its model reference (srs).Constructs a multi geometry and initializes its model reference (srs). -
Method Summary
Modifier and TypeMethodDescriptionvoidInserts the specified shape at the specified position in thisILcdShapeList.voidAppends the specified shape to the end of thisILcdShapeList.voidAppends the specified array of shapes to the end of thisILcdShapeList.voidRemoves all of the shapes from thisILcdShapeList.clone()Returns a deep clone of this object.Returns a deep clone of this object.booleancontains2D(double aX, double aY) Checks whether thisILcdShapecontains the given point 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(ILcdPoint aPoint) Checks whether thisILcdShapecontains the givenILcdPointin the 3D space.Returns theILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.Returns the focus point of thisILcdShape.Returns the value of the property that maps to thegeometryMemberelement.Returns the role value contained in the value of theGEOMETRY_MEMBERS_PROPERTYproperty.getGid()Gets the value of theGID_PROPERTYproperty.getShape(int aIndex) Returns theILcdShapeat the given index.intReturns the number ofILcdShapeobjects in the list.removeShape(int aIndex) Removes the shape at the specified position in thisILcdShapeList.booleanremoveShape(ILcdShape aShape) Removes the first occurrence of the specified shape in thisILcdShapeList.voidremoveShapes(ILcdShape[] aShapes) Removes all shapes from thisILcdShapeListthat are contained in the specified array of shapes.voidSets the value of the property that maps to thegeometryMemberselement.voidSets the value of theGID_PROPERTYproperty.Replaces the shape at the specified position in thisILcdShapeListwith the specified shape.voidReplace the list of shapes contained in thisILcdShapeListwith the specified array of shapes.voidshapeChanged(int aIndex) Notifies thisILcdShapeListthat the shape at the specified position has changed.voidshapeChanged(ILcdShape aShape) Notifies thisILcdShapeListthat the specified shape has changed.voidNotifies thisILcdShapeListthat some (possibly all) of its shapes have changed.Methods inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGeometricAggregate
invalidateObjectMethods inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGeometry
getSrs, setSrs, toStringMethods inherited from class com.luciad.format.gml31.model.TLcdGML31AbstractGML
getDescription, getId, getMetaDataProperty, getName, setDescription, setIdMethods inherited from class com.luciad.datamodel.TLcdFeaturedDataObject
canSetFeature, getFeature, getFeature, getFeatureCount, getFeaturedDescriptor, setFeature, setFeatureMethods inherited from class com.luciad.datamodel.TLcdDataObject
getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
-
Field Details
-
GEOMETRY_MEMBER_PROPERTY
Data property that maps to thegeometryMemberelement. The possible values for this property are instances ofList<TLcdGML31GeometryProperty>. -
GEOMETRY_MEMBERS_PROPERTY
Data property that maps to thegeometryMemberselement. The possible values for this property are instances ofTLcdGML31GeometryArrayProperty. -
GID_PROPERTY
Property that maps on thegidattribute. Acceptable values for this property are instances ofjava.lang.String.
-
-
Constructor Details
-
TLcdGML31MultiGeometry
public TLcdGML31MultiGeometry() -
TLcdGML31MultiGeometry
-
TLcdGML31MultiGeometry
Constructs a multi geometry and initializes its model reference (srs).- Parameters:
aSrs- the model reference for this object- See Also:
-
TLcdGML31MultiGeometry
Constructs a multi geometry and initializes its model reference (srs).- Parameters:
aDataType- the data type for this objectaSrs- the model reference for this object- See Also:
-
-
Method Details
-
addShape
Description copied from interface:ILcdEditableShapeListInserts the specified shape at the specified position in thisILcdShapeList.- Specified by:
addShapein interfaceILcdEditableShapeList- Overrides:
addShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- the index at which the shape is to be inserted.aShape- the shape to be inserted.
-
addShape
Description copied from interface:ILcdEditableShapeListAppends the specified shape to the end of thisILcdShapeList.- Specified by:
addShapein interfaceILcdEditableShapeList- Overrides:
addShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aShape- the shape to be appended to thisILcdShapeList.
-
addShapes
Description copied from interface:ILcdEditableShapeListAppends the specified array of shapes to the end of thisILcdShapeList.- Specified by:
addShapesin interfaceILcdEditableShapeList- Overrides:
addShapesin classTLcdGML31AbstractGeometricAggregate- Parameters:
aShapes- the array of shapes to be appended to thisILcdShapeList.
-
clearShapes
public void clearShapes()Description copied from interface:ILcdEditableShapeListRemoves all of the shapes from thisILcdShapeList.- Specified by:
clearShapesin interfaceILcdEditableShapeList- Overrides:
clearShapesin classTLcdGML31AbstractGeometricAggregate
-
removeShape
Description copied from interface:ILcdEditableShapeListRemoves the shape at the specified position in thisILcdShapeList. Shifts any subsequent shapes to the left. Returns the shape that was removed from thisILcdShapeList.- Specified by:
removeShapein interfaceILcdEditableShapeList- Overrides:
removeShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- the index of the shape to removed.- Returns:
- the shape previously at the specified position.
-
removeShape
Description copied from interface:ILcdEditableShapeListRemoves the first occurrence of the specified shape in thisILcdShapeList. If thisILcdShapeListdoes not contain the shape, it is unchanged.- Specified by:
removeShapein interfaceILcdEditableShapeList- Overrides:
removeShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aShape- the shape to be removed, if present.- Returns:
trueif thisILcdShapeListcontained the specified element.
-
removeShapes
Description copied from interface:ILcdEditableShapeListRemoves all shapes from thisILcdShapeListthat are contained in the specified array of shapes.- Specified by:
removeShapesin interfaceILcdEditableShapeList- Overrides:
removeShapesin classTLcdGML31AbstractGeometricAggregate- Parameters:
aShapes- the array of shapes to be removed from thisILcdShapeList.
-
setShape
Description copied from interface:ILcdEditableShapeListReplaces the shape at the specified position in thisILcdShapeListwith the specified shape.- Specified by:
setShapein interfaceILcdEditableShapeList- Overrides:
setShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- index of shape to replace.aShape- the shape to be stored at the specified position.- Returns:
- the shape previously at the specified position.
-
setShapes
Description copied from interface:ILcdEditableShapeListReplace the list of shapes contained in thisILcdShapeListwith the specified array of shapes.- Specified by:
setShapesin interfaceILcdEditableShapeList- Overrides:
setShapesin classTLcdGML31AbstractGeometricAggregate- Parameters:
aShapes- the array of shapes to be stored in thisILcdShapeList.
-
shapeChanged
public void shapeChanged(int aIndex) Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat the shape at the specified position has changed.- Specified by:
shapeChangedin interfaceILcdEditableShapeList- Overrides:
shapeChangedin classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- the index of the shape that has changed.
-
shapeChanged
Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat the specified shape has changed.- Specified by:
shapeChangedin interfaceILcdEditableShapeList- Overrides:
shapeChangedin classTLcdGML31AbstractGeometricAggregate- Parameters:
aShape- the shape that has changed.
-
shapesChanged
public void shapesChanged()Description copied from interface:ILcdEditableShapeListNotifies thisILcdShapeListthat some (possibly all) of its shapes have changed.- Specified by:
shapesChangedin interfaceILcdEditableShapeList- Overrides:
shapesChangedin classTLcdGML31AbstractGeometricAggregate
-
getShapeCount
public int getShapeCount()Description copied from interface:ILcdShapeListReturns the number ofILcdShapeobjects in the list.- Specified by:
getShapeCountin interfaceILcdShapeList- Overrides:
getShapeCountin classTLcdGML31AbstractGeometricAggregate- Returns:
- the number of
ILcdShapeobjects in the list.
-
getShape
Description copied from interface:ILcdShapeListReturns theILcdShapeat the given index.- Specified by:
getShapein interfaceILcdShapeList- Overrides:
getShapein classTLcdGML31AbstractGeometricAggregate- Parameters:
aIndex- a valid index in the list ofILcdShapeobjects.- Returns:
- the
ILcdShapeat the given index.
-
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- Overrides:
contains2Din classTLcdGML31AbstractGeometry- Parameters:
aPoint- theILcdPointto test.- Returns:
- the boolean result of the containment test.
- See Also:
-
contains3D
Description copied from interface:ILcdShapeChecks whether thisILcdShapecontains the givenILcdPointin the 3D space.- Specified by:
contains3Din interfaceILcdShape- Overrides:
contains3Din classTLcdGML31AbstractGeometry- 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- Overrides:
contains3Din classTLcdGML31AbstractGeometry- 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.
-
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- Overrides:
contains2Din classTLcdGML31AbstractGeometry- Parameters:
aX- the x coordinate of the point.aY- the y 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- Overrides:
getFocusPointin classTLcdGML31AbstractGeometry- Returns:
- the focus point of this
ILcdShape.
-
clone
Description copied from class:TLcdDataObjectReturns a deep clone of this object. This method delegates toTLcdDataObject.clone(Map).- Specified by:
clonein interfaceILcdCloneable- Overrides:
clonein classTLcdDataObject- Returns:
- a deep clone of this object
- See Also:
-
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
-
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- Overrides:
getBoundsin classTLcdGML31AbstractGeometry- Returns:
- the
ILcdBoundsby which the geometry of thisILcdBoundedobject is bounded.
-
getGeometryMember
Returns the value of the property that maps to thegeometryMemberelement.This property element either references a geometry element via the XLink-attributes or contains the geometry element.
- Returns:
- the value of the
GEOMETRY_MEMBER_PROPERTYproperty. - See Also:
-
getGeometryMembers
Returns the role value contained in the value of theGEOMETRY_MEMBERS_PROPERTYproperty. Returnsnullif the value of theGEOMETRY_MEMBERS_PROPERTYproperty isnull.This property element contains a list of geometry elements. The order of the elements is significant and shall be preserved when processing the array.
- Returns:
- the role value of the
GEOMETRY_MEMBERS_PROPERTYproperty. - See Also:
-
setGeometryMembers
Sets the value of the property that maps to thegeometryMemberselement. to a new instance of the association classTLcdGML31GeometryArrayPropertyinitialized with the given role value. In case the given role value isnull, theGEOMETRY_MEMBERS_PROPERTYproperty is set tonull.This property element contains a list of geometry elements. The order of the elements is significant and shall be preserved when processing the array.
- Parameters:
aValue- the role value to set for theGEOMETRY_MEMBERS_PROPERTYproperty.
-
getGid
Gets the value of theGID_PROPERTYproperty.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.
- Returns:
- the value of the
GID_PROPERTYproperty.
-
setGid
Sets the value of theGID_PROPERTYproperty.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.
- Parameters:
aValue- the value to set for theGID_PROPERTYproperty.
-