Re: Finding the polygon/polyline segment at a certain position



On Thu, 2008-11-13 at 20:47 +0100, Till Harbaum / Lists wrote:
> Hi,
> 
> i really enjoy working with goocanvas. One thing i have asked for some time ago
> was a mechanism to figure out which segment of a polyline or polygon border 
> a certain position is on. osm2go needs this to add new nodes to a way (being
> a polyline) or to cut a way into two. So i have added such a function to osm2go.
> 
> For the records: If you need something like that have a look at canvas_item_get_segment()
> in canvas_goocanvas.c in one of the later osm2go tarballs at 
> http://repository.maemo.org/extras/pool/chinook/free/source/o/osm2go/
> 
> I've seen that the goocanvas main page links to projects using goocanvas. You might
> also link to http://www.harbaum.org/till/maemo/index.shtml#osm2go

I've added a link. It's a cool little app. (I hope I didn't change any
map data when I messed about with it a few weeks back!).

Damon




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]