Esempio n. 1
0
 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)
 {
 }
Esempio n. 6
0
 /// <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)
 {
 }
Esempio n. 9
0
 protected SpatialFormatter(SpatialImplementation creator)
 {
     Util.CheckArgumentNull(creator, "creator");
     this.creator = creator;
 }
 internal GeometryLineStringImplementation(SpatialImplementation creator, params GeometryPoint[] points) : this(CoordinateSystem.DefaultGeometry, creator, points)
 {
 }
Esempio n. 11
0
 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;
 }
Esempio n. 13
0
 protected GeometryMultiPolygon(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator)
 {
 }
Esempio n. 14
0
 /// <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)
 {
 }
Esempio n. 15
0
 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];
 }
Esempio n. 17
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)
 {
 }
Esempio n. 19
0
 /// <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)
 {
 }
Esempio n. 23
0
 /// <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)
 {
 }
Esempio n. 24
0
 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)
 {
 }
Esempio n. 30
0
 /// <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];
 }
Esempio n. 33
0
 protected GeometryMultiLineString(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator)
 {
 }