Пример #1
0
        protected override IGeometry IndicesOfThenExtract(IGeometry input, IGeometry subLine)
        {
            var indexedLine = new LocationIndexedLine(input);
            var loc         = indexedLine.IndicesOf(subLine);
            var result      = indexedLine.ExtractLine(loc[0], loc[1]);

            return(result);
        }
Пример #2
0
        private void RunExtractLine(string wkt, LinearLocation start, LinearLocation end, string expected)
        {
            var geom   = Read(wkt);
            var lil    = new LocationIndexedLine(geom);
            var result = lil.ExtractLine(start, end);

            //System.out.println(result);
            CheckExpected(result, expected);
        }
Пример #3
0
        private void RunExtractLine(String wkt, LinearLocation start, LinearLocation end, String expected)
        {
            IGeometry           geom   = Read(wkt);
            LocationIndexedLine lil    = new LocationIndexedLine(geom);
            IGeometry           result = lil.ExtractLine(start, end);

            //System.out.println(result);
            CheckExpected(result, expected);
        }