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)); }
ILineString GetLineString(IPosition[] positions) { DirectPositionCollection dpc = GetDirectPositions(positions); return(m_Factory.CreateLineString(dpc)); }
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); }