Skip to content

Commit

Permalink
Basic buffer test changes
Browse files Browse the repository at this point in the history
  • Loading branch information
karimbahgat committed Mar 17, 2015
1 parent 045a3fe commit 99be936
Show file tree
Hide file tree
Showing 3 changed files with 987 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

shape = pyshp.Reader("D:/Test Data/cshapes/cshapes.shp").shape(1)
p = py2d.Math.Polygon.from_pointlist(py2d.Math.Polygon.simplify_sequence(py2d.Math.Polygon.from_tuples(shape.points)))
p_buf = p.offset(p, -0.13) #before mod, works up until 0.3 but going further gives empty result
p_buf = p.offset(p, -0.15) #before mod, works up until 0.3 but going further gives empty result

##coords = list(reversed([(10,10),(90,10),(80,90),(50,60),(20,77)]))
##p = py2d.Math.Polygon.from_tuples(coords)
Expand Down
Loading

0 comments on commit 99be936

Please sign in to comment.