i use convex hull to get the external points of each polygon. the problem is to union the polygons. if i use the convex hull in all points i will not get a right route. The image1 of the attach is what i will get if i do the convex hull with all points. The image2 is what i am doing in the code. I need to union/merge the polygons.
On Sat, Feb 12, 2011 at 4:37 AM, geocode...@gmail.com <geocode...@gmail.com>wrote: > On Feb 11, 7:19 pm, Diogo Outerelo da Silva <diogoouter...@gmail.com> > wrote: > > Hello, > > I have some days trying to make a "bound" to my polyline route but i > still > > having problem. First i tried to use the route boxer like the google > example > > (http://gmaps-samples-v3.googlecode.com/svn/trunk/routeboxer/routeboxe.. > .) > > demo gallery, but with a large route and a great precision its make the > > browser stop, because make so many latlongbounds. So i was searching for > > another solution and i found from Marcelo Montagna here ( > http://gis5.com/pois_along_route/gm_pois_along_route.php), but its > protected > > to copy. Then i start make my own code... > > There is the step that i think to my code: > > > > 1 - Make a circle around each point(lat, long) - like 12 points around > each > > the latlong > > 2 - Get the most external point for each 2 latlong circle and make a > polygon > > (fecho) - total = (points - 1) poligons > > 3 - union the poligons to make a unique polygon and apply a color and > > opacity > > > > the problem is that i can`t find a algorithm to "union" this polygons. > > Someone know a algorithm that i can use or a API for google maps to make > it > > with the polygons? > > You could do a convex hull of all the vertices. > > -- Larry > > > > I can`t make another polyline with biggest stroke weight because i need > the > > "bound" points to search for POI`s. > > > > Thx in advance > > -- > > , > > Diogo > > > > -- > > -- > You received this message because you are subscribed to the Google Groups > "Google Maps JavaScript API v3" group. > To post to this group, send email to > google-maps-js-api-v3@googlegroups.com. > To unsubscribe from this group, send email to > google-maps-js-api-v3+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-maps-js-api-v3?hl=en. > > -- Atc, Diogo -- -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
<<attachment: convex hull.png>>