コード例 #1
0
 /// <summary>
 /// Starts the call sequence for a geometry figure.
 /// </summary>
 /// <param name="x"></param>
 /// <param name="y"></param>
 /// <param name="z"></param>
 /// <param name="m"></param>
 public virtual void BeginFigure(double x, double y, double?z, double?m)
 {
     if (double.IsNaN(x))
     {
         throw new ArgumentException(nameof(x));
     }
     if (double.IsNaN(y))
     {
         throw new ArgumentException(nameof(y));
     }
     _builder.BeginFigure();
     _builder.AddPoint(x, y, z, m);
 }
コード例 #2
0
 /// <inheritdoc />
 public virtual void BeginFigure(double latitude, double longitude, double?z, double?m)
 {
     if (_srid < 0)
     {
         throw new FormatException($"24300: Expected a call to SetSrid, but BeginFigure was called.");
     }
     ValidateLatLon(latitude, longitude);
     _builder.BeginFigure();
     _builder.AddPoint(latitude, longitude, z, m);
 }
コード例 #3
0
 public virtual void BeginFigure(double latitude, double longitude, double?z, double?m)
 {
     ValidateLatLon(latitude, longitude);
     _builder.BeginFigure();
     _builder.AddPoint(latitude, longitude, z, m);
 }
コード例 #4
0
 public void BeginFigure(double lat, double lon, double?z, double?m)
 {
     ValidateLatLon(lat, lon);
     _builder.BeginFigure();
     _builder.AddPoint(lat, lon, z, m);
 }