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

RE: Question about getPointAtLength

From: Kevin Lindsey <kevin@kevlindev.com>
Date: Fri, 11 Aug 2006 16:34:16 -0700
To: "'Andreas Neumann'" <neumann@karto.baug.ethz.ch>, "'Alex Menzies'" <amenzie@us.ibm.com>, <www-svg@w3.org>
Message-ID: <018901c6bd9e$ac1ad580$1302a8c0@monkey>

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 and
say that I'm happy with your proposed solution.

-Kevin

-----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?

Andreas

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 Saturday, 12 August 2006 00:11:19 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:35 GMT