Finding the polygon/polyline segment at a certain position
- From: "Till Harbaum / Lists" <lists harbaum org>
- To: goocanvas-list gnome org
- Subject: Finding the polygon/polyline segment at a certain position
- Date: Thu, 13 Nov 2008 20:47:08 +0100
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
Till
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]