[mapguide-users] $Assistance "Drawing a line between two points"
marfalox
mfalossi at hotmail.com
Thu Sep 5 09:19:11 PDT 2013
Hi, maybe this could be a starting point for somebody who wants to write the
function:
1 - draw a straight line between start and end points
2 - intersect the land polygons, you will get couples of intersection
points.
3 - for each couple take the intersecting polygon boundary, split it in two
parts starting from the intersection points and take the shortest boundary
part
4 - offset the boundary outside of the polygon by a distance you want to
take from the land
5 - join with the next line
this will not make the shortest path and will need a regularization
procedure, but should work.
Marco
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Assistance-Drawing-a-line-between-two-points-tp5075938p5076280.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list