Find line where the beginning or end of line touches a polygon with minimal radius

المشرف العام

Administrator
طاقم الإدارة
I need to check, If a point from a beginning or an end of a line is nearby a polygon. The target is to check, whether the line is nearly connected to a polygon. The data are coming from a shapefile.

I tried a lot functions from DotSpatial. I work with lat/lng coordinates in wgs84 system. Does anybody has an idea which function I have to use for this problem?

In DotSpatial there are a lot of functions like touches, intersect, and so on. Is there mayb an option to set an offset or something like that for these functions?

I tried to use an envelope. I build the envelope with the start point and end point of a line. Then I used envelope.ExpandBy(...), to set an "offset" around the points. Then I was trying to intersect the envelops with the polygons in the near of the beginning and ending line. But it doesn't work.

How can I expand the envelope just a few milimeters? Is it possible, that the functions don't work fine in an geographic system like wgs84 using latitude and longitude coordinates?



أكثر...
 
أعلى