Beispiel #1
0
 /// <inheritdoc />
 public IPoint GetCenter()
 {
     if (_lineStrings.Count == 0)
     {
         throw new InvalidOperationException("This MultiLineString does not contain any LineString.");
     }
     return(MapsUtils.GetCenter(_lineStrings.SelectMany(x => x.Points)));
 }
 /// <summary>
 /// Returns a new point representing the center of this line string.
 /// </summary>
 /// <returns>An instance of <see cref="IPoint"/>.</returns>
 public IPoint GetCenter()
 {
     return(MapsUtils.GetCenter(this));
 }