- fixed a bug in milling holes due of a message wrongly formatted

This commit is contained in:
Marius Stanciu
2019-10-17 15:29:52 +03:00
parent e57b6ad082
commit 9f99520683
5 changed files with 49 additions and 107 deletions

View File

@@ -12,14 +12,17 @@ class Polygon(object):
self.context = context
else:
self.context = getattr(context, '__geo_interface__', context)
@property
def geom_type(self):
return (getattr(self.context, 'geom_type', None)
or self.context['type'])
@property
def exterior(self):
return (getattr(self.context, 'exterior', None)
or self.context['coordinates'][0])
@property
def interiors(self):
value = getattr(self.context, 'interiors', None)