protected Geometry(System.Spatial.CoordinateSystem coordinateSystem, SpatialImplementation creator) { Util.CheckArgumentNull(coordinateSystem, "coordinateSystem"); Util.CheckArgumentNull(creator, "creator"); this.coordinateSystem = coordinateSystem; this.creator = creator; }
internal GeometryPointImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, double x, double y, double? z, double? m) : base(coordinateSystem, creator) { if (double.IsNaN(x) || double.IsInfinity(x)) { throw new ArgumentException(Strings.InvalidPointCoordinate(x, "x")); } if (double.IsNaN(y) || double.IsInfinity(y)) { throw new ArgumentException(Strings.InvalidPointCoordinate(y, "y")); } this.x = x; this.y = y; this.z = z; this.m = m; }
internal GeographyPointImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, double latitude, double longitude, double? zvalue, double? mvalue) : base(coordinateSystem, creator) { if (double.IsNaN(latitude) || double.IsInfinity(latitude)) { throw new ArgumentException(Strings.InvalidPointCoordinate(latitude, "latitude")); } if (double.IsNaN(longitude) || double.IsInfinity(longitude)) { throw new ArgumentException(Strings.InvalidPointCoordinate(longitude, "longitude")); } this.latitude = latitude; this.longitude = longitude; this.z = zvalue; this.m = mvalue; }
internal WellKnownTextSqlFormatterImplementation(SpatialImplementation creator) : base(creator) { }
internal GeometryMultiLineStringImplementation(SpatialImplementation creator, params GeometryLineString[] lineStrings) : this(CoordinateSystem.DefaultGeometry, creator, lineStrings) { }
/// <summary> /// Constructor /// </summary> /// <param name="coordinateSystem">The CoordinateSystem</param> /// <param name="creator">The implementation that created this instance.</param> internal GeometrySurface(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }
/// <summary> /// Constructor /// </summary> /// <param name="coordinateSystem">The CoordinateSystem</param> /// <param name="creator">The implementation that created this instance.</param> /// <param name="polygons">Polygons</param> internal GeometryMultiPolygonImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeometryPolygon[] polygons) : base(coordinateSystem, creator) { this.polygons = polygons; }
internal GeographyFullGlobeImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }
protected SpatialFormatter(SpatialImplementation creator) { Util.CheckArgumentNull(creator, "creator"); this.creator = creator; }
internal GeometryLineStringImplementation(SpatialImplementation creator, params GeometryPoint[] points) : this(CoordinateSystem.DefaultGeometry, creator, points) { }
internal GeometryPointImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { this.x = double.NaN; this.y = double.NaN; }
internal GeographyPointImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { this.latitude = double.NaN; this.longitude = double.NaN; }
protected GeometryMultiPolygon(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }
/// <summary>Initializes a new instance of the <see cref="T:System.Spatial.GeographySurface" /> class.</summary> /// <param name="coordinateSystem">The coordinate system of this instance.</param> /// <param name="creator">The implementation that created this instance.</param> protected GeographySurface(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }
protected GmlFormatter(SpatialImplementation creator) : base(creator) { }
/// <summary> /// Constructor /// </summary> /// <param name="coordinateSystem">The CoordinateSystem</param> /// <param name="creator">The implementation that created this instance.</param> /// <param name="rings">The rings of this polygon</param> internal GeographyPolygonImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeographyLineString[] rings) : base(coordinateSystem, creator) { this.rings = rings ?? new GeographyLineString[0]; }
protected GeometryCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }
/// <summary> /// Constructor /// </summary> /// <param name="creator">The implementation that created this instance.</param> /// <param name="rings">The rings of this polygon</param> internal GeographyPolygonImplementation(SpatialImplementation creator, params GeographyLineString[] rings) : this(CoordinateSystem.DefaultGeography, creator, rings) { }
/// <summary> /// Constructor /// </summary> /// <param name="coordinateSystem">CoordinateSystem</param> /// <param name="creator">The implementation that created this instance.</param> protected GeographyLineString(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }
internal GeometryLineStringImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeometryPoint[] points) : base(coordinateSystem, creator) { this.points = points ?? new GeometryPoint[0]; }
internal WellKnownTextSqlFormatterImplementation(SpatialImplementation creator, bool allowOnlyTwoDimensions) : base(creator) { this.allowOnlyTwoDimensions = allowOnlyTwoDimensions; }
/// <summary> /// Initializes a new instance of the <see cref="GmlFormatterImplementation"/> class. /// </summary> /// <param name="creator">The implementation that created this instance.</param> internal GmlFormatterImplementation(SpatialImplementation creator) : base(creator) { }
/// <summary> /// Create a empty point /// </summary> /// <param name="coordinateSystem">CoordinateSystem</param> /// <param name="creator">The implementation that created this instance.</param> protected GeographyPoint(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }
protected GeometryMultiPoint(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }
/// <summary> /// Constructor /// </summary> /// <param name="coordinateSystem">The CoordinateSystem</param> /// <param name="creator">The implementation that created this instance.</param> /// <param name="points">Points</param> internal GeographyMultiPointImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeographyPoint[] points) : base(coordinateSystem, creator) { this.points = points ?? new GeographyPoint[0]; }
internal GeographyFullGlobeImplementation(SpatialImplementation creator) : this(CoordinateSystem.DefaultGeography, creator) { }
/// <summary> /// Constructor /// </summary> /// <param name="creator">The implementation that created this instance.</param> /// <param name="points">Points</param> internal GeographyMultiPointImplementation(SpatialImplementation creator, params GeographyPoint[] points) : this(CoordinateSystem.DefaultGeography, creator, points) { }
/// <summary> /// Constructor /// </summary> /// <param name="creator">The implementation that created this instance.</param> /// <param name="polygons">Polygons</param> internal GeometryMultiPolygonImplementation(SpatialImplementation creator, params GeometryPolygon[] polygons) : this(CoordinateSystem.DefaultGeometry, creator, polygons) { }
internal GeometryCollectionImplementation(SpatialImplementation creator, params Geometry[] geometry) : this(CoordinateSystem.DefaultGeometry, creator, geometry) { }
/// <summary> /// Constructor /// </summary> /// <param name="coordinateSystem">The CoordinateSystem</param> /// <param name="creator">The implementation that created this instance.</param> protected GeographyMultiCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }
internal GeometryCollectionImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params Geometry[] geometry) : base(coordinateSystem, creator) { this.geometryArray = geometry ?? new Geometry[0]; }
internal GeometryMultiLineStringImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeometryLineString[] lineStrings) : base(coordinateSystem, creator) { this.lineStrings = lineStrings ?? new GeometryLineString[0]; }
protected GeometryMultiLineString(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator) { }