Provides access to methods that indicate if a geometry has been changed (edited, projected, etc).
Members
Name | Description | |
---|---|---|
Changed | Indicates if a geometry has been changed (edited, projected, etc). | |
Dimension | The topological dimension of this geometry. | |
Envelope | Creates a copy of this geometry's envelope and returns it. | |
GeometryType | The type of this geometry. | |
GeoNormalize | Shifts longitudes, if need be, into a continuous range of 360 degrees. | |
GeoNormalizeFromLongitude | Normalizes longitudes into a continuous range containing the longitude. This method is obsolete. | |
IsEmpty | Indicates whether this geometry contains any points. | |
Project | Projects this geometry into a new spatial reference. | |
ProjectEx | Projects a geometry, optionally applies a GeoTransformation, and optionally densifies the geometry. | |
QueryEnvelope | Copies this geometry's envelope properties into the specified envelope. | |
QueryWKSEnvelope | Defines the specified wksenvelope to be the current extent of this geometry in the x-y plane. | |
SetEmpty | Removes all points from this geometry. | |
SnapToSpatialReference | Moves points of this geometry so that they can be represented in the precision of the geometry's associated spatial reference system. | |
SpatialReference | The spatial reference associated with this geometry. |
IGeometry4.Changed Property
Indicates if a geometry has been changed (edited, projected, etc).
Public Property Changed As Boolean
public bool Changed {get; set;}
Description
The Changed method returns whether or not the geometry has been modified. If the geometry always stays in memory that method only returns 'false' immediately after its creation. However if the shape came from disk the Changed method will return 'false' until de geometry is modified in memory.
//This example demonstrates how to use the Changed method
private void Changed_Example()
{
IEnvelope envelope = new EnvelopeClass();
envelope.PutCoords(0, 0, 20, 20);
ISegmentCollection segmentCollection = new PolygonClass();
segmentCollection.SetRectangle(envelope);
IGeometry4 geometry = segmentCollection as IGeometry4;
System.Windows.Forms.MessageBox.Show("Just after creation : " + geometry.Changed);
segmentCollection.SetRectangle(envelope);
System.Windows.Forms.MessageBox.Show("Just after modification : " + geometry.Changed);
}
Inherited Interfaces
Interfaces | Description |
---|---|
IGeometry3 | Provides rapid access to a geometry's extent in the x-y plane. |
IGeometry2 | Provides access to members that extend the IGeometry interface with a more sophisticated projection method. |
IGeometry | Provides access to members that describe properties and behavior of all geometric objects. |
Classes that implement IGeometry4
Classes | Description |
---|---|
Envelope | A rectangle with sides parallel to a coordinate system defining the extent of another geometry; optionally has min and max measure, height and ID attributes. |
GeometryBag | An ordered collection of objects that support the IGeometry interface. |
MultiPatch | A collection of surface patches. |
Multipoint | An ordered collection of points; optionally has measure, height and ID attributes. |
Point | A two dimensional point, optionally with measure, height, and ID attributes. |
Polygon | A collection of rings ordered by their containment relationship; optionally has measure, height and ID attributes. |
Polyline | An ordered collection of paths; optionally has measure, height and ID attributes. |