Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: Convert Polygon to Polyline

Hi

Does anyone know a quick way to do this? As I understand it there's very little difference so it should be trivial and there's probably a trick that I don't know! I've had a go with something really long-winded like this...
(polygonfile and polygonshape are polygons, polylinefile and lineshape are polylines)
for each polygonshape in polygonfile  
  for each point in polygonshape 
    copy point from polygonshape to lineshape
  insert lineshape into polylinefile
which looked like it was going somewhere - however it was extremely slow and ultimately the points copied but the shape wouldn't insert into the polyline file

Is there a better way to do this?

Cheers

Phil.

Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>