コード例 #1
0
		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()
				);
		}
コード例 #2
0
		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)))
				);
		}