public object ToPolygon(CoordinateInfo[][] coordinates) { if (coordinates.Length == 0) return Polygon.Empty; return _geometryFactory.CreatePolygon( _geometryFactory.CreateLinearRing(coordinates.First().Select(MakeCoordinate).ToArray()), coordinates.Skip(1).Select(x => _geometryFactory.CreateLinearRing(x.Select(MakeCoordinate).ToArray())).ToArray() ); }
public object ToPolygon(CoordinateInfo[][] coordinates) { if (coordinates.Length == 0) return Polygon.Empty; return new Polygon( new LinearRing(coordinates.First().Select(MakeCoordinate)), coordinates.Skip(1).Select(x => new LinearRing(x.Select(MakeCoordinate))) ); }