ArcObjects Library Reference (Geometry)  

IGeometryBridge2 Interface

Provides access to a set of generic methods that can be used in all languages supported.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

You can use the IGeometryBridge methods with any supported development languages: Java, C#, VB.Net, VB 6.0, C++, etc. The methods on the regular interfaces (IGeometryCollection, ISegmentCollection, IPointCollection, etc) are using C style arrays, which are not supported by some languages. The IGeometryBridge interface solves that problem allowing you to pass safe arrays instead.

Members

Description
Method AddGeometries Adds references to the specified geometries.
Method AddPoints Adds copies of the input points as vertices to this Path, Ring, Polyline, or Polygon; or references to the input points to this Multipoint, Triangles, TriangleFan, or TriangleStrip.
Method AddSegments Adds references to segments.
Method AddWKSPoints Adds vertices to this Path, Ring, Polyline, or Polygon, or adds new points to this Multipoint, Triangles, TriangleFan, or TriangleStrip.
Method AddWKSPointZs Adds vertices/points to this Path, Ring, Polyline, Polygon, Multipoint, Triangles, TriangleFan, TriangleStrip, or MultiPatch.
Method ConstructBuffers Constructs a set of buffers at various distances. More efficient than calling Buffer repeatedly on the same geometry.
Method Densify Densify segment into the specified number of smaller segments.
Method GetPoints Populates an array with references to points in the Multipoint. The QueryPoints method on IPointCollection makes copies of the points.
Method InsertGeometries Inserts at the specified index references to some number of geometries in the input array.
Method InsertPoints Inserts copies of the input points as vertices into a Path, Ring, Polyline, or Polygon; or references to the input points into a Multipoint, Triangles, TriangleFan, or TriangleStrip.
Method InsertSegments Inserts references to the input segments.
Method InsertWKSPoints Inserts new vertices/points into this Path, Ring, Polyline, Polygon, Multipoint, Triangles, TriangleFan, TriangleStrip, or MultiPatch.
Method InsertWKSPointZs Inserts new vertices/points into this Path, Ring, Polyline, Polygon, Multipoint, Triangles, TriangleFan, TriangleStrip, or MultiPatch.
Method QueryBeginningRings Populates an array with references to all beginning rings of the specified types.
Method QueryFollowingRings Populates an array with references to following rings that are in the ring group that starts with the specified beginning ring.
Method QueryGeometries Populates the array with references to a sub-sequence of geometries.
Method QueryPoints Copies some points to an existing array of points.
Method QuerySegments Returns references to some of the input segments.
Method QueryWKSPoints Copies vertices'/points' coordinates to the array of point structures.
Method QueryWKSPointZs Copies vertices/points coordinates to the array of point structures.
Method ReplacePoints Replaces vertices/points within a PointCollection.
Method ReplaceSegments Removes and inserts from segments.
Method SetGeometries Replaces all geometries in the collection with the specified number of references to those in the input array.
Method SetPoints Replaces all existing vertices of this Path, Ring, Polyline, or Polygon with copies of the input points; or all existing points of this Multipoint, Triangles, TriangleFan, or TriangleStrip with references to the input points.
Method SetSegments Replaces all segments with references to the input segments.
Method SetWKSPoints Replaces all vertices of this Path, Ring, Polyline, or Polygon with new ones, or replaces all points of this Multipoint, Triangles, TriangleFan, or TriangleStrip with new ones.
Method SetWKSPointZs Replaces all vertices/points of this Path, Ring, Polyline, Polygon, Multipoint, Triangles, TriangleFan, TriangleStrip, or MultiPatch with new ones.
Method SplitAtDistances Introduces new vertices into this polyline at specified distances from the beginning of the polyline.
Method SplitDivideLength Divide segment into smaller segments of the specified length.

Inherited Interfaces

Interfaces Description
IGeometryBridge Provides access to a set of generic methods that can be used in all languages supported.

CoClasses that implement IGeometryBridge2

CoClasses and Classes Description
GeometryEnvironment Provides a way of creating geometries from different inputs and setting/getting global variables for controlling behavior of geometry methods.

.NET Snippets

Create Test Polyline from Geometry Environment | Transform Point |

.NET Samples

Dynamic biking (Code Files: DynamicBikingCmd) |

.NET Related Topics

How to build a polygon using segments and points | How to create a multipoint | How to create a polygon | How to create a polyline | How to use IGeometryBridge to update dynamic geometries | Using IGeometryBridge or IGeometryBridge2 | Working with GeometryEnvironment |