예제 #1
0
        public static Geometry NearestPointsIndexedAll(Geometry a, Geometry b)
        {
            var ifd = new IndexedFacetDistance(a);

            int n     = b.NumGeometries;
            var lines = new LineString[n];

            for (int i = 0; i < n; i++)
            {
                var pts = ifd.NearestPoints(b.GetGeometryN(i));
                lines[i] = a.Factory.CreateLineString(pts);
            }

            return(a.Factory.CreateMultiLineString(lines));
        }
 protected override Coordinate[] NearestPoints(Geometry g1, Geometry g2)
 {
     return(IndexedFacetDistance.NearestPoints(g1, g2));
 }
예제 #3
0
        public static Geometry NearestPointsIndexed(Geometry a, Geometry b)
        {
            var pts = IndexedFacetDistance.NearestPoints(a, b);

            return(a.Factory.CreateLineString(pts));
        }