Ticket #1744 (closed defect: invalid)

Opened 14 months ago

Last modified 14 months ago

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

Changed 14 months ago by strk

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)

Changed 14 months ago by strk

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

Changed 14 months ago by strk

  • status changed from new to closed
  • resolution set to invalid

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

Note: See TracTickets for help on using tickets.