convert featureset to polyline
i have a featureset that is a line, but what i need is a polyline. whats the best way to convert a line featureset into a polyline geometry?
0
-
Jeff,
Off the top of my head, create a polyline variable (thePolyline) as new ESRI.ArcGIS.Client.Geometry.Geometry.Polyline. The do an Assign where thePolyline = CType(yourFeatureSet.Features(0).Geometry, ESRI.ArcGIS.Client.Geometry.Polyline)
-Tom0 -
thank you that does work! and saved me some time. 0 -
Also, there is the Union Task workflow activity under ArcGIS Server, which takes a featureset as an input and geometry as an output. Then I'm thinking you could just do a cast <Polyline> workflow activity under Common Server. Jeff's will probably be quicker since you don't need to do a web request. 0
Please sign in to leave a comment.
Comments
3 comments