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 ISegmentCollection 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
|
820
|
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
|
1
|
1462
|
POST
|
For multiple polylines, please use ITopologicalOperator::ConstructUnion method
... View more
04-12-2016
04:34 PM
|
0
|
0
|
489
|
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
|
558
|
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
|
554
|
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
|
544
|
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
|
275
|
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
|
901
|
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
|
445
|
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
|
984
|
POST
|
Can you please send the data containing the 2 geometries only. I will write a piece of code to try to repro the problem.
... View more
07-29-2013
09:15 AM
|
0
|
0
|
984
|
POST
|
Without seeing the actual data and code, I can only take a guess on the cause of the problem. The error message should be "The coordinates or measures are out of bounds." rather than the other one you mentioned, NETWORK_E_EDIT_SESSION_IN_PROGRESS. The error code associated with this error message can be returned from various places in ArcGIS library. In addition to check the feature geometry's location in the coordinate system, the attributes measurement such as Z and M is also considered as the possible cause here. Also, if the geometry involves curve segment, like bezier, clothid, etc., can sometimes also causes this problem during the process.
... View more
07-25-2013
12:53 PM
|
0
|
0
|
984
|
POST
|
Please go to the top of the page, there are lines highlighted in yellow shows how to mark the thread as answered. Thanks.
... View more
07-24-2013
08:03 AM
|
0
|
0
|
425
|
POST
|
Can you please mark the thread as answered to close it, and help other people to find the solution to similar problems? Thanks.
... View more
07-22-2013
10:11 AM
|
0
|
0
|
425
|
Title | Kudos | Posted |
---|---|---|
1 | 10-28-2020 05:13 PM |
Online Status |
Offline
|
Date Last Visited |
4 weeks ago
|