[Freegis-list] Re: gml coordinates to svg screen coordinates
Scott Davis
scottdavis99 at yahoo.com
Tue Mar 15 18:19:55 CET 2005
Christopher,
The trick I've used in the past is to multiply the
decimal values by a constant large enough to make them
integers. (i.e. 1.234567 * 1,000,000 == 1234567)
Then the pixel coord to ground coord translation is
pretty straight forward.
6 decimal places is enough to represent
degree/minute/seconds (but not sub-seconds), so 1
million is a good general purpose constant to start
with.
HTH,
Scott
> > Subject: [Freegis-list] gml coordinates to svg
> screen coordinates
> Date: Thu, 10 Mar 2005 13:13:10 -0500
> To: freegis-list at intevation.de
> From: Christopher Jon Jursa
> <cjursa at mail.sis.pitt.edu>
>
> Hello,
>
> I have been experimenting with transforming GML to
> SVG and have gotten help
> here before.
>
> However, I am having a difficult time converting the
> decimal degree
> coordinates to screen coordinates in my svg code.
> Does anyone have any
> advice or leads on this?
>
> Sincerely,
>
> Christopher Jon Jursa
> PhD Candidate
> School of Information Sciences
> University of Pittsburgh
> Email: cjursa at sis.pitt.edu
> Web: http://gis.sis.pitt.edu
>
>
>
Scott Davis
scottdavis99 at yahoo.com
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
More information about the Freegis-list
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)