imports need to be flipped

This commit is contained in:
Laura Klünder 2018-12-20 23:46:02 +01:00
parent e08a4b1b91
commit ac395b674e

View file

@ -172,6 +172,7 @@ class Command(BaseCommand):
for path in svg.findall('.//svg:path', namespaces):
for polygon in self.parse_svg_data(path.attrib['d']):
polygon = Polygon(polygon)
polygon = scale(polygon, xfact=1, yfact=-1, origin=(0, svg_height/2))
polygon = scale(polygon, xfact=width / svg_width, yfact=height / svg_height, origin=(0, 0))
polygon = translate(polygon, xoff=minx, yoff=miny)
obj = model(geometry=polygon, space=options['space'], import_tag=options['name'])