Serverside Generation

From Svg wiki

Perl

A number of examples are included in the Perl SVG distribution which you can download from CPAN. The CPAN website also has a comprehensive users manual for the SVG module.

There are also annotated examples in the tutorials offered by RO IT Systems: Perl SVG Zone perl tutorials. The tutorials include fundamental introductions to SVG using Perl for beginner, and advanced topics such as parsing documents and manipulating the module's lightweight interpretation of the DOM concept.

Python

SVGdraw is a python module which can be used to create SVG graphics. It can be found here. It also has some examples.

Oracle PL/SQL

SVG can be generated from Oracle using PL/SQL

The script below shows how this is done for a trivial case (copied from a post by Dale Ellis at the svg-developers newsgroup):

CREATE OR REPLACE procedure svgTest is

-- Don't mess with this cos it won't work !!! START.

NL_CHAR constant char(1) := '\n\n';

begin

--Set MIME type to SVG.

HTP.PRN('Content-type: image/svg+xml'||NL_CHAR);

HTP.PRN('Content-Disposition: inline'||NL_CHAR);

HTP.PRN(NL_CHAR);

htp.p('<svg width="100\" height="100%">');

htp.p('<rect x="10" y="10" height="100" width="100" style="fill:#FF9999; stroke:#000000;" />');

htp.p('</svg>');

end;

Additionally, Oracle servers can be configured to use Perl within PL/SQL, so you can also use the Perl SVG modules within Oracle. powerpoint presentation at CPAN


SVG Unleashed used to have some server-side demos, various languages.