deactivate _trim_decimals
@@ -126,7 +126,9 @@ class SVGImage:
def _trim_decimals(self, data):
# remove trailing zeros from a decimal
- return re.sub(r'([0-9]+)((\.[1-9])[0-9]+|\.[0-9]+)?', r'\1\3', data)
+ # deactivated for now, because it costs too much time
+ return data
+ # return re.sub(r'([0-9]+)((\.[1-9])[0-9]+|\.[0-9]+)?', r'\1\3', data)
def _create_geometry(self, geometry, attribs=''):
# convert a shapely geometry into an svg xml element
