W3C home > Mailing lists > Public > www-svg@w3.org > June 2009

Re: Mapping geographic data

From: Helder Magalh„es <helder.magalhaes@gmail.com>
Date: Thu, 25 Jun 2009 14:19:50 +0100
Message-ID: <2a1ddf8a0906250619o1cb4630cke31842ae28f537ea@mail.gmail.com>
To: Johannes Lichtenberger <Johannes.Lichtenberger@uni-konstanz.de>
Cc: www-svg@w3.org
Hi Johannes,

> Now I wonder how to transform from the longitude/latitude
> coordinate system into the pixel based coordinate system used by SVG.

Note that SVG coordinate system [1] is not "pixel"-based, although it
may appear so using default values [2]. ;-)

> Any suggestions?

Naively, the only thing left to be done is find a reasonable
conversion from the longitude/latitude coordinates to the target map
user units used to draw the map.

When drawing a new map, the user units magnitude can even be
arbitrarily chosen (although it's advised that it's within reasonable
values in order be handled in hardware restricted devices such as
mobile terminals), and the viewport [3] can be later adjusted. :-)

Also, the section on "Geographic Coordinate Systems" [4] of the 1.1
specification and/or the "The 'svg:transform' attribute" [5] of the
Tiny 1.2 specification can be of use. ;-)

> regards,
> Johannes

Hope this helps,

[1] http://www.w3.org/TR/SVG/coords.html
[2] http://www.w3.org/TR/SVG/coords.html#InitialCoordinateSystem
[3] http://www.w3.org/TR/SVG/coords.html#ViewBoxAttribute
[4] http://www.w3.org/TR/SVG/coords.html#GeographicCoordinates
[5] http://www.w3.org/TR/SVGTiny12/coords.html#SVGGlobalTransformAttribute
Received on Thursday, 25 June 2009 13:20:25 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:18 UTC