Skip Menu |

This queue is for tickets about the Geo-Google-PolylineEncoder CPAN distribution.

Report information
The Basics
Id: 46337
Status: resolved
Priority: 0/
Queue: Geo-Google-PolylineEncoder

People
Owner: Nobody in particular
Requestors: joe [...] navratils.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Truncated levels in Geo-Google-PolylineEncoder-0.04?
Date: Sun, 24 May 2009 23:44:40 -0700
To: bug-Geo-Google-PolylineEncoder [...] rt.cpan.org
From: Joe Navratil <joe [...] navratils.org>
Package: Geo-Google-PolylineEncoder-0.04 Perl version: v5.8.9 built for darwin-2level OS: Darwin Kernel Version 9.7.0 (Mac OS X 10.5.7 + Darwin Ports) I'm not entirely sure what's going on, but it would appear that generating a polyline encoding from many moderately complex sets of data ends up with the wrong number of levels (as reported by Google's Interactive Polyline Encoder Utility, http://code.google.com/apis/maps/documentation/polylineutility.html) and also fails to display the last few points (in the attached example, approximately three points are left off the end when the encoded line is rendered). The attached sample data gives the following output: points: qrueF`zojVYD}BSs@?Lh@CZWb@oAbAiC^yAGgCDuBIAd@o@| B @hB ]tAyA ]sBeACGk @De @KUM ]Km @]YWa @g @o @_@_@K]SWg@o@g@uAbBSL}AiD]g@MEc@^W`@SJUEMWMAOLi@DMLILIf@A`BIr@_@xA}ARwB \sAEaC`@ levels: PA@DB@DBD@@FAABFA@BA@?CA?A?@AAE@DA@F@@C@@CA@D@A@AE?ABP ...which, as mentioned, fails the IPEU check and displays incorrectly. The same data plugged into the usnavguide.com generation code (mentioned in Geo::Google::PolylineEncoder's "SEE ALSO" doc section) results in the following output: points: qrueFdzojVYB}BSq@?Jd@CZUb@qAbAiC`@yAGgCBs@CaAEAf@o@| B @fB ]tAyA [sBeACIk @Be @KUK ]Mm @[YWa @g @o @a@_@I[SYi@o@e@sAbBUJ{AkD]e@MEc@^W^SLWEKYMAONi@BMNGJIh@C`BGr@_@xA}APwB \sAGaC`@ levels: PA@D@CACD@@@FAAAFA@BB@@CA@A@@BAE@EA@F@@CA@C@@E@A@AE@AAP ...which passes the IPEU check and displays correctly. I can provide more sample data that exhibits this behavior if it would be helpful. -Joe
Download 5.ll
application/octet-stream 2.3k

Message body not shown because it is not plain text.

Hi Joe, On Mon May 25 02:45:23 2009, joe@navratils.org wrote: Show quoted text
> I'm not entirely sure what's going on, but it would appear that > generating a polyline encoding from many moderately complex sets of > data ends up with the wrong number of levels (as reported by Google's > Interactive Polyline Encoder Utility, > http://code.google.com/apis/maps/documentation/polylineutility.html) > and also fails to display the last few points (in the attached > example, approximately three points are left off the end when the > encoded line is rendered).
Thanks for the report, that's definitely an issue. I'm not working on this day-to-day anymore, so a patch containing a failing test case and a fix would be ideal, if you've got the time to put them together. Also, I wonder if this is related to RT#46337? If the encoding is off then could it throw off all the levels?
This is fixed in 0.05