Non-square SVG symbols are clipped when they are rotated.
Here is an example where a small box of 40x20 pixel is rotated by 45 and 90 degrees:
Here is the Mapfile and SVG symbol:
Tested this with current master, 7.0.1 and 6.4.3 (shp2img -m clipped-symbol.map -o out.png).
shp2img -m clipped-symbol.map -o out.png
fix surface size when rastering rotated SVG symbols
Found the issue. The surface size in msRenderRasterizedSVGSymbol is too small. There is a compensation for 45 degree rotations, but it fails for larger rotations.
Here is a short fix:
I've tested this fix on Ubuntu through librsvg with branch-7.0 + this change. Is this ok to merge?
thanks @olt !
Fix tests afeter #5264
A PR which breaks tests isn't ready for inclusion, please wait for confirmation before merging PRs you are not affiliated with. Fix added in 45b3917
for the record i had begun looking at the 2 errors reported by msautotest. thanks for the fix.