python shapely parallel_offset not found -


i'm trying use shapely parallel_offset, sems it's not found. i've included imports found in examples, doesn't recognize parallel_offset.

from matplotlib import pyplot shapely.geometry import linestring descartes import polygonpatch  line=linestring([(0,0),(0,1),(1,1),(2,0)]) offset = line.parallel_offset(1,'left',join_style=2) 

and get:

$ python parallel_offset.py  traceback (most recent call last):   file "parallel_offset.py", line 6, in <module>     offset = line.parallel_offset(1,'left',join_style=2) attributeerror: 'linestring' object has no attribute 'parallel_offset' 

what doing wrong?

this feature has 2 requirements both need met:

  • shapely >= 1.2.8
  • geos >= 3.2.0

Comments

Popular posts from this blog

how to insert data php javascript mysql with multiple array session 2 -

multithreading - Exception in Application constructor -

windows - CertCreateCertificateContext returns CRYPT_E_ASN1_BADTAG / 8009310b -