ArcGIS 10.2.1 - Polygon to Polyline

3338
1
03-21-2014 04:02 AM
AndreiaQuintas
New Contributor
Hi!
Can someone tell me how to convert a polygon to a polyline in ArcGis 10.2.1?
Thank you.
Andreia
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Andreia,

   I assume you are asking how to do this using the Flex API since this is the forum you have posted in...

var pLine:Polyline = new Polyline(null, map.SpatialReference);
for (var r:int = 0; r < yourPolygon.rings.length; r++){
    pLine.addPath(yourPolygon.rings);
}
0 Kudos