Exemplo n.º 1
0
        private static ILineStringSegment FlattenLineStringSegment(ILineStringSegment lineStrSegment, FgfGeometryFactory factory)
        {
            double[] positions = new double[lineStrSegment.Count * 2];
            int      j         = 0;

            for (int i = 0; i < lineStrSegment.Count; i++)
            {
                IDirectPosition pos = lineStrSegment[i];
                positions[j]     = pos.X;
                positions[j + 1] = pos.Y;
                j += 2;
            }
            return(factory.CreateLineStringSegment(FDO_DIM_XY, positions.Length, positions));
        }
Exemplo n.º 2
0
 private static ILineStringSegment FlattenLineStringSegment(ILineStringSegment lineStrSegment, FgfGeometryFactory factory)
 {
     double[] positions = new double[lineStrSegment.Count * 2];
     int j = 0;
     for (int i = 0; i < lineStrSegment.Count; i++)
     {
         IDirectPosition pos = lineStrSegment[i];
         positions[j] = pos.X;
         positions[j+1] = pos.Y;
         j += 2;
     }
     return factory.CreateLineStringSegment(FDO_DIM_XY, positions.Length, positions);
 }