POST
|
Hi Shawn, To summarize your situation, you want to join a polyline created from calling ConstructGeodeticLineFromPoints (polyline_1) with an existing polyline, say polyline_2, right? If that's the case, you can use I SegmentCollection like this: Dim pSegColl_2 As ISegmentCollection Set pSegColl_2 = polyline_2 Dim pSegColl_1 As ISegmentCollection Set pSegColl_1 = polyline_1 pSegColl_2.AddSegmentCollection pSegColl_1
... View more
10-28-2020
05:13 PM
|
1
|
0
|
146
|
POST
|
public void GetSubtypes(IFeatureClass featureClass) { // Cast the feature class to the ISubtypes interface. ISubtypes subtypes = (ISubtypes)featureClass; // then you can enumeraate subtypes. IEnumSubtype enumSubtype = subtypes.Subtypes }
... View more
09-24-2019
09:14 PM
|
0
|
3
|
137
|
POST
|
For multiple polylines, please use ITopologicalOperator::ConstructUnion method
... View more
04-12-2016
04:34 PM
|
0
|
0
|
73
|
POST
|
I think there are some existing ArcObjects methods might be useful to you. IConstructCurve.ConstructExtended http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//002m000000t6000000 IConstructLine.ConstructExtended http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#/ConstructExtended_Method/002m000000v9000000/
... View more
04-22-2014
08:51 AM
|
0
|
0
|
77
|
POST
|
So you have your feature class, say featCls IFeature feat = featCls.CreateFeature feat.Shape = point //point is the intersection of the pplyline feat.Store() That's it, you just added the point to your feature class.
... View more
02-19-2014
12:37 PM
|
0
|
0
|
75
|
POST
|
If you do not need the actual coordinates of any intersection(s) as you said, you can also use IRelationalOperator methods to test the spatial relation between geometries.
... View more
01-24-2014
01:33 PM
|
0
|
0
|
74
|
POST
|
You can program to add the points to a point collection, and use the point collection to create the polyline.
... View more
01-14-2014
02:41 PM
|
0
|
0
|
66
|
POST
|
If you want to know which type of curve in your geometry, get the GeometryType property of ISegment.
... View more
01-14-2014
02:31 PM
|
0
|
0
|
113
|
POST
|
The intersection of a polygon and a polyline can be either a polyline (esriGeometry1Dimension) or a multipoint (esriGeometry0Dimension). depending on which one you pass in as the parameter. In uvg's case, I think should be multipoint. Can you provide the code and data so we can see why the output are the end points of the polyline?
... View more
08-23-2013
02:28 PM
|
0
|
0
|
72
|
POST
|
Using the data you provided, I wrote a piece of VBA code, and the reshape call generates correct result. Sub Test_Reshape() Dim mxDoc As IMxDocument Set mxDoc = ThisDocument Dim featLyr As IFeatureLayer Dim featCls As IFeatureClass Set featLyr = mxDoc.FocusMap.Layer(0) 'PolylineFC Set featCls = featLyr.FeatureClass Dim feat0 As IFeature Set feat0 = featCls.GetFeature(0) Dim geomColl0 As IGeometryCollection Set geomColl0 = feat0.ShapeCopy Dim geom0 As IGeometry Set geom0 = geomColl0.Geometry(0) Debug.Print geom0.GeometryType Set featLyr = mxDoc.FocusMap.Layer(1) 'SlaveClass Set featCls = featLyr.FeatureClass Dim feat1 As IFeature Set feat1 = featCls.GetFeature(0) Dim geomColl1 As IGeometryCollection Set geomColl1 = feat1.ShapeCopy Dim geom1 As IGeometry Set geom1 = geomColl1.Geometry(0) Debug.Print geom1.GeometryType Dim ring As IRing Set ring = geom1 Dim path As IPath Set path = geom0 Debug.Print ring.Reshape(path) Debug.Print ring.IsEmpty End Sub
... View more
07-30-2013
11:11 AM
|
0
|
0
|
216
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|