On Apr 24, 9:50 am, mark mcclure <[email protected]> wrote:
> On Apr 23, 10:55 am, Wally <[email protected]> wrote:
>
> > If speed & accuracy are important, look at:
> >  www.polyarc.us/pack
> >  www.polyarc.us/packer.js
>
> It really depends on when you need the speed.  In my
> experiments, packer encodes lines faster than the polyline
> encoder *but* the performance of the map after encoding is
> much better using the polyline encoder.
>
> Here's an example
> Encode:http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/EncodeAnd...
> Packer:http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/EncodeAnd...

I tried these pages on a few more machines and consistently found
that Packer encodes faster but that the resulting encoded polylines
don't display as smoothly.  At the high end, the brand new 3GHz Mac
Pro in my office loads both pages quite quickly.  The polyline
encoder
version transitions between levels pretty much instantaneously; the
packer version takes several seconds to transition between levels.
At the low end, the 1.6GHz PowerPC based macs in an old student
lab here requires me to push the "continue script" button 10 times to
get the polyline encoder version to load and only 6 times to get the
Packer version to load.  However, the polyline encoder version
requires
just a couple of seconds to transition between levels, while the
packer
version requires several "continue script" button pushes over nearly
20
seconds to transition between levels.

I don't know how Packer works so it's possible there are some
parameters
that could be tweaked to improve the performance.  I think it more
likely
that the polyline encoder, which is based on the well established and
widely
tested Douglas-Peucker algorithm, accounts for the geometry of the
lines
more appropriately.

Mark

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to