SVG: Y-ordinates inverted ?

Discuss and ask questions about CAD VCL (Delphi and C++ Builder).

Moderators: SDS, support, admin

Post Reply
margat
Posts: 1
Joined: 27 Jan 2006, 18:35

SVG: Y-ordinates inverted ?

Post by margat » 27 Jan 2006, 18:46

I downloaded CAD Import and I tried to convert this svg file:

Code: Select all

<?xml version="1.0" standalone="no"?>
<!--DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" 
  "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"-->
<svg id="ProfiloFCL" width="20cm" height="20cm" viewBox="0 0 100 100" preserveAspectRatio="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" >

	<line stroke="black" stroke-width="2" x1="0" y1="20" x2="100" y2="20" />
	<line stroke="black" stroke-width="2" x1="20" y1="0" x2="20" y2="100" />

</svg>
Result file is Y-axis inverted!

regards
Marco Gatto

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Post by support » 01 Feb 2006, 19:23

Dear Marco Gatto,

Thank you for the question.

Coordinate system in SVG format is different from AutoCAD DWG/DXF.
In SVG's coordinate system axis OY is directed downwards. This fact must be taken into account.

Sergey.

please post questions to the forum or write to support@cadsofttools.com

Post Reply