Пример #1
0
        private static ILineString FlattenLineString(ILineString lineStr, FgfGeometryFactory factory)
        {
            double[] lineStrOrdinates = new double[lineStr.Count * 2];
            int      i = 0;

            foreach (IDirectPosition pos in lineStr.Positions)
            {
                lineStrOrdinates[i]     = pos.X;
                lineStrOrdinates[i + 1] = pos.Y;
                i += 2;
            }

            return(factory.CreateLineString(FDO_DIM_XY, lineStrOrdinates.Length, lineStrOrdinates));
        }
Пример #2
0
        ILineString GetLineString(IPosition[] positions)
        {
            DirectPositionCollection dpc = GetDirectPositions(positions);

            return(m_Factory.CreateLineString(dpc));
        }
Пример #3
0
        private static ILineString FlattenLineString(ILineString lineStr, FgfGeometryFactory factory)
        {
            double[] lineStrOrdinates = new double[lineStr.Count * 2];
            int i = 0;
            foreach (IDirectPosition pos in lineStr.Positions)
            {
                lineStrOrdinates[i] = pos.X;
                lineStrOrdinates[i + 1] = pos.Y;
                i += 2;
            }

            return factory.CreateLineString(FDO_DIM_XY, lineStrOrdinates.Length, lineStrOrdinates);
        }