Imported SVG got modified by OWM

Archive of resolved issues and feature additions completed.

Moderator: Kyete

Post Reply
User avatar
Balmung
Posts: 211
Joined: Sun Mar 28, 2021 2:12 pm
Location: Germany

Imported SVG got modified by OWM

Post by Balmung » Sun Apr 04, 2021 3:12 pm

I created a scale bar but OWM keeps adding a line over the first marker, but only if I add numbers (which has been converted into curves).

I tried different fonts and different positions. It doesn't even matter if there is just one or multiple numbers - this one line is always added.

I attached the SVGs and a map file, if someone has an idea or wants to experiment.
Attachments
scale-bar.zip
(3.21 KiB) Downloaded 258 times
scale-bar.png
scale-bar.png (9.6 KiB) Viewed 3138 times
System information:
  • Windows 10 Professional x64
  • AMD Ryzen 5 3600XT
  • 32GB DDR4 RAM
  • Nvidia GeForce 3070 FE

User avatar
Kanchou
Site Admin
Posts: 1021
Joined: Mon Nov 10, 2014 2:23 pm

Re: Imported SVG got modified by OWM

Post by Kanchou » Wed Apr 28, 2021 12:59 pm

Balmung wrote:
Sun Apr 04, 2021 3:12 pm
I created a scale bar but OWM keeps adding a line over the first marker, but only if I add numbers (which has been converted into curves).

I tried different fonts and different positions. It doesn't even matter if there is just one or multiple numbers - this one line is always added.

I attached the SVGs and a map file, if someone has an idea or wants to experiment.
We found the issue, the SVG parser isn't handling the defined objects properly. In this case, it's a rect
<rect
x="67.08464813"
y="157.9562836"
width="63.48249435"
height="12.86501122"
id="rect2788" />

Your file isn't actually using it for rendering, so it's likely a left over. For now you can delete the defs you aren't using from the SVG, but we'll fix this issue with the next release.

Thank you!

- Alejandro
Alejandro S. Canosa
Three Minds Software

User avatar
Balmung
Posts: 211
Joined: Sun Mar 28, 2021 2:12 pm
Location: Germany

Re: Imported SVG got modified by OWM

Post by Balmung » Wed Apr 28, 2021 1:15 pm

Interesting ^^

Post Reply