fix shapelyToCoords function

this functin didn't support LineString yet
pull/25/head
vilemnovak 2015-12-26 20:24:02 +01:00
rodzic 6b2592084d
commit 7cb8902d88
2 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -327,6 +327,10 @@ def shapelyToCoords(anydata):
seq=[]
for linestring in p:
seq.append(linestring.coords)
elif p.type=='LineString':
seq=[]
seq.append(p.coords)
elif p.type=='MultiPoint':
return;
elif p.type=='GeometryCollection':

Wyświetl plik

@ -3153,7 +3153,6 @@ def getPath3axis(context, operation):
lines = shapely.ops.linemerge(ledges)
#shapelyToCurve('test',lines,0)
chunks.extend( shapelyToChunks(lines,0))
#segments=[]
#processEdges=filteredEdgs.copy()
#chunk=camPathChunk([])