W3C home > Mailing lists > Public > www-svg@w3.org > August 2006

RE: Question about getPointAtLength

From: Alex Menzies <amenzie@us.ibm.com>
Date: Mon, 14 Aug 2006 09:56:34 -0500
To: "Kevin Lindsey" <kevin@kevlindev.com>
Cc: "'Andreas Neumann'" <neumann@karto.baug.ethz.ch>, www-svg@w3.org
Message-ID: <OF0631E5B3.A3FE931D-ON872571CA.0051DD4B-862571CA.00521579@us.ibm.com>
Sounds like a good idea to me.


"Kevin Lindsey" <kevin@kevlindev.com> 
08/11/2006 06:34 PM

"'Andreas Neumann'" <neumann@karto.baug.ethz.ch>, Alex 
Menzies/Austin/IBM@IBMUS, <www-svg@w3.org>

RE: Question about getPointAtLength

Hey Andreas,

I realize your email wasn't directed to me; however, since I originally
posted on this topic (about a year ago), I like to throw in my two cents 
say that I'm happy with your proposed solution.


-----Original Message-----
From: www-svg-request@w3.org [mailto:www-svg-request@w3.org] On Behalf Of
Andreas Neumann
Sent: Friday, August 11, 2006 2:15 PM
To: Alex Menzies; www-svg@w3.org
Subject: Re: Question about getPointAtLength

Hello Alex,

Please apologize our late reply on this question.

We discussed this issue recently and propose to return 
path.getPointAtLength(0) for negative values and 
path.getPointAtLength(path.getTotalLength()) for values that are bigger 
than the total path length. It is proposed that "out of range" values 
don't result in error reporting. One of the reasoning is that sometimes 
there might be accuracy issues with path length calculations from 
potentially different sources or algorithms.

We will provide an errata for SVG 1.1 Full and include it in SVG 1.2 Full.

Does that sound reasonable from an implementers point of view?


Alex Menzies wrote:

> Hi,
>         I would like inquire about the desired behavior of the 
> getPointAtLength method when called with a distance parameter that is 
> out of range.  My question is the same as the one asked in the 
> following email by Kevin Lindsey:
> http://lists.w3.org/Archives/Public/www-svg/2003Aug/0005 
> <http://lists.w3.org/Archives/Public/www-svg/2003Aug/0005>
> Could you please provide some clarification on this matter and either 
> post the information in an errata to the 1.1 specification or include 
> it in the 1.2 version.
> Thanks!
> -Alex 

Andreas Neumann
Institute of Cartography
ETH Zurich
Wolfgang-Paulistrasse 15
CH-8093  Zurich, Switzerland

Phone: ++41-44-633 3031, Fax: ++41-44-633 1153
e-mail: neumann@karto.baug.ethz.ch
www: http://www.carto.net/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/
Received on Monday, 14 August 2006 14:56:51 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:14 UTC