コード例 #1
0
ファイル: Geometry.cs プロジェクト: nickchal/pash
 protected Geometry(System.Spatial.CoordinateSystem coordinateSystem, SpatialImplementation creator)
 {
     Util.CheckArgumentNull(coordinateSystem, "coordinateSystem");
     Util.CheckArgumentNull(creator, "creator");
     this.coordinateSystem = coordinateSystem;
     this.creator = creator;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 internal WellKnownTextSqlFormatterImplementation(SpatialImplementation creator) : base(creator)
 {
 }
コード例 #5
0
 internal GeometryMultiLineStringImplementation(SpatialImplementation creator, params GeometryLineString[] lineStrings) : this(CoordinateSystem.DefaultGeometry, creator, lineStrings)
 {
 }
コード例 #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)
 {
 }
コード例 #7
0
 /// <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;
 }
コード例 #8
0
 internal GeographyFullGlobeImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator)
 {
 }
コード例 #9
0
 protected SpatialFormatter(SpatialImplementation creator)
 {
     Util.CheckArgumentNull(creator, "creator");
     this.creator = creator;
 }
コード例 #10
0
 internal GeometryLineStringImplementation(SpatialImplementation creator, params GeometryPoint[] points) : this(CoordinateSystem.DefaultGeometry, creator, points)
 {
 }
コード例 #11
0
 internal GeometryPointImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator)
 {
     this.x = double.NaN;
     this.y = double.NaN;
 }
コード例 #12
0
 internal GeographyPointImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator)
 {
     this.latitude = double.NaN;
     this.longitude = double.NaN;
 }
コード例 #13
0
 protected GeometryMultiPolygon(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator)
 {
 }
コード例 #14
0
ファイル: GeographySurface.cs プロジェクト: tapika/swupd
 /// <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)
 {
 }
コード例 #15
0
ファイル: GmlFormatter.cs プロジェクト: modulexcite/pash-1
 protected GmlFormatter(SpatialImplementation creator) : base(creator)
 {
 }
コード例 #16
0
 /// <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];
 }
コード例 #17
0
ファイル: GeometryCurve.cs プロジェクト: nickchal/pash
 protected GeometryCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator)
 {
 }
コード例 #18
0
 /// <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)
 {
 }
コード例 #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)
 {
 }
コード例 #20
0
 internal GeometryLineStringImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeometryPoint[] points) : base(coordinateSystem, creator)
 {
     this.points = points ?? new GeometryPoint[0];
 }
コード例 #21
0
 internal WellKnownTextSqlFormatterImplementation(SpatialImplementation creator, bool allowOnlyTwoDimensions) : base(creator)
 {
     this.allowOnlyTwoDimensions = allowOnlyTwoDimensions;
 }
コード例 #22
0
 /// <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)
 {
 }
コード例 #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)
 {
 }
コード例 #24
0
ファイル: GeometryMultiPoint.cs プロジェクト: nickchal/pash
 protected GeometryMultiPoint(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator)
 {
 }
コード例 #25
0
 /// <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];
 }
コード例 #26
0
 internal GeographyFullGlobeImplementation(SpatialImplementation creator) : this(CoordinateSystem.DefaultGeography, creator)
 {
 }
コード例 #27
0
 /// <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)
 {
 }
コード例 #28
0
 /// <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)
 {
 }
コード例 #29
0
 internal GeometryCollectionImplementation(SpatialImplementation creator, params Geometry[] geometry) : this(CoordinateSystem.DefaultGeometry, creator, geometry)
 {
 }
コード例 #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)
 {
 }
コード例 #31
0
 internal GeometryCollectionImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params Geometry[] geometry) : base(coordinateSystem, creator)
 {
     this.geometryArray = geometry ?? new Geometry[0];
 }
コード例 #32
0
 internal GeometryMultiLineStringImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeometryLineString[] lineStrings) : base(coordinateSystem, creator)
 {
     this.lineStrings = lineStrings ?? new GeometryLineString[0];
 }
コード例 #33
0
 protected GeometryMultiLineString(CoordinateSystem coordinateSystem, SpatialImplementation creator) : base(coordinateSystem, creator)
 {
 }