Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GeoJsonMultiLineString{TCoordinates}"/> class.
        /// </summary>
        /// <param name="args">The additional args.</param>
        /// <param name="coordinates">The coordinates.</param>
        public GeoJsonMultiLineString(GeoJsonObjectArgs <TCoordinates> args, GeoJsonMultiLineStringCoordinates <TCoordinates> coordinates)
            : base(args)
        {
            if (coordinates == null)
            {
                throw new ArgumentNullException("coordinates");
            }

            _coordinates = coordinates;
        }
Exemplo n.º 2
0
 // constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="GeoJsonMultiLineString{TCoordinates}"/> class.
 /// </summary>
 /// <param name="coordinates">The coordinates.</param>
 public GeoJsonMultiLineString(GeoJsonMultiLineStringCoordinates <TCoordinates> coordinates)
     : this(null, coordinates)
 {
 }
Exemplo n.º 3
0
        /// <summary>
        /// Creates a GeoJson MultiLineString object.
        /// </summary>
        /// <typeparam name="TCoordinates">The type of the coordinates.</typeparam>
        /// <param name="lineStrings">The line strings.</param>
        /// <returns>A GeoJson MultiLineString object.</returns>
        public static GeoJsonMultiLineString <TCoordinates> MultiLineString <TCoordinates>(params GeoJsonLineStringCoordinates <TCoordinates>[] lineStrings) where TCoordinates : GeoJsonCoordinates
        {
            var coordinates = new GeoJsonMultiLineStringCoordinates <TCoordinates>(lineStrings);

            return(new GeoJsonMultiLineString <TCoordinates>(coordinates));
        }