Opened 12 years ago

Last modified 12 years ago

#4184 new defect

SVG symbols anchor point problem

Reported by: debe Owned by: assefa
Priority: high Milestone:
Component: Output-SVG Version: svn-trunk (development)
Severity: normal Keywords:
Cc: zjames, tbonfort

Description

rendering a map with the CAIRO/SVG driver, all the SVG symbols defined as

SYMBOL
  NAME "example"
  TYPE SVG
  IMAGE "example.svg"
END

in the map will be anchored to the top-left angle.

All others drivers (CAIRO/PNG,AGG/PNG,...) they render the symbols in the center.

The ANCHORPOINT configuration in the SYMBOL seems to work but to correcly anchor the symbol in the center, the anchorpoint need to be 1 1, and with the other drivers will be rendered at the right-bottom corner.

In other words seems that the driver CAIRO/SVG render the symbols translated by 0.5

Change History (2)

comment:1 by zjames, 12 years ago

Cc: zjames added
Component: MapScript-PHPOutput-SVG
Owner: changed from aboudreault to assefa

comment:2 by tbonfort, 12 years ago

Cc: tbonfort added
Note: See TracTickets for help on using tickets.