Opened 13 years ago

Closed 13 years ago

#1744 closed defect (invalid)

ST_AsSVG doesn't comforms w3c standards completely for relative coords

Reported by: Ferdev Owned by: pramsey
Priority: medium Milestone: PostGIS 2.0.1
Component: postgis Version: 2.0.x
Keywords: Cc:

Description

Passing 1 as second argument to have the path data implemented as relative movements, should express path commands in lowercase instead of uppercase, as stated in http://www.w3.org/TR/SVG/paths.html#PathDataBNF

Change History (3)

comment:1 by strk, 13 years ago

Do you have an example WKT resulting in malformed SVN ? We have some relative paths under regression testing, which means they should be working, like these:

svg_option_01|M 1 -1 L 4 -4 5 -7
svg_option_02|M 1 -1 l 3 -3 1 -3

Second one is "relative" form of first one, WKT of which is:

LINESTRING(1 1, 4 4, 5 7)

comment:2 by strk, 13 years ago

Movement is always absolute, but lineTo is relative:

select ST_AsSVG('MULTILINESTRING((0 0, 10 0),(10 0, 20 0))'::geometry, 1);

 M 0 0 l 10 0 M 10 0 l 10 0

}}

I don't see that being forbidden by w3c standard

comment:3 by strk, 13 years ago

Resolution: invalid
Status: newclosed

Alright then, this ticket is invalid (the output does conform)

Note: See TracTickets for help on using tickets.