On 3 November 2010 16:34, Rahul Mehta <[email protected]> wrote:
>
> "reduce the size of your file, by reducing the number of points in
> each county or the number of decimal places, or
> both. "
>
> How to reduce points. One of the KMZ file which i downloaded was
> unuable as KML polygons were too big.
> Can you guide me on that

It's not trivial. Look up Douglas-Peucker point reduction algorithm.

It's not something I've used, although Prof Mark McClure did for his
polyline encoder.
http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/algorithm.html
shows the methodology as a graphic; others you can search for will
detail the coding.

But one easy thing you can do, considering you are dealing with county
boundaries, is reduce points to three decimal places and remove
consecutive duplicates. 3dp will be an accuracy of around 60m, which
will be good enough at the initial scale of the map.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" 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