Beispiel #1
0
 /// <summary>Initializes a new instance of the <see cref="T:Microsoft.Spatial.Geometry" /> class.</summary>
 /// <param name="coordinateSystem">The coordinate system of this instance.</param>
 /// <param name="creator">The implementation that created this instance.</param>
 protected Geometry(CoordinateSystem coordinateSystem, SpatialImplementation creator)
 {
     Util.CheckArgumentNull(coordinateSystem, "coordinateSystem");
     Util.CheckArgumentNull(creator, "creator");
     this.coordinateSystem = coordinateSystem;
     this.creator = creator;
 }
 public GeographyBuilderImplementationTests()
 {
     this.creator = new DataServicesSpatialImplementation();
     this.builder = new GeographyBuilderImplementation(this.creator);
     this.builder.SetCoordinateSystem(CoordinateSystem.DefaultGeography);
     this.constructedInstances = new List<Geography>();
     this.builder.ProduceGeography += this.constructedInstances.Add;
 }
Beispiel #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="coordinateSystem">The CoordinateSystem</param>
 /// <param name="creator">The implementation that created this instance.</param>
 internal GeometryMultiSurface(CoordinateSystem coordinateSystem, SpatialImplementation creator)
     : base(coordinateSystem, creator)
 {
 }
 internal GeometryLineStringImplementation(SpatialImplementation creator, params GeometryPoint[] points) : this(CoordinateSystem.DefaultGeometry, creator, points)
 {
 }
 internal GeometryLineStringImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeometryPoint[] points) : base(coordinateSystem, creator)
 {
     this.points = points ?? new GeometryPoint[0];
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WellKnownTextSqlFormatterImplementation"/> class.
 /// </summary>
 /// <param name="creator">The implementation that created this instance.</param>
 /// <param name="allowOnlyTwoDimensions">restricts the reader to allow only two dimensions.</param>
 internal WellKnownTextSqlFormatterImplementation(SpatialImplementation creator, bool allowOnlyTwoDimensions) : base(creator)
 {
     this.allowOnlyTwoDimensions = allowOnlyTwoDimensions;
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="creator">The implementation that created this instance.</param>
 /// <param name="lineStrings">Line Strings</param>
 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 GeometryMultiSurface(CoordinateSystem coordinateSystem, SpatialImplementation creator)
     : base(coordinateSystem, creator)
 {
 }
 /// <summary>Initializes a new instance of the <see cref="T:Microsoft.Spatial.GeometryMultiCurve" /> class.</summary>
 /// <param name="coordinateSystem">The coordinate system of this instance.</param>
 /// <param name="creator">The implementation that created this instance.</param>
 protected GeometryMultiCurve(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="geography">Collection of geography instances</param>
 internal GeographyCollectionImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params Geography[] geography)
     : base(coordinateSystem, creator)
 {
     this.geographyArray = geography ?? new Geography[0];
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="creator">The implementation that created this instance.</param>
 /// <param name="geography">Collection of geography instances</param>
 internal GeographyCollectionImplementation(SpatialImplementation creator, params Geography[] geography)
     : this(CoordinateSystem.DefaultGeography, creator, geography)
 {
 }
Beispiel #12
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;
 }
Beispiel #13
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)
 {
 }
Beispiel #14
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)
 {
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="creator">The implementation that created this instance.</param>
 internal GeographyFullGlobeImplementation(SpatialImplementation creator)
     : this(CoordinateSystem.DefaultGeography, creator)
 {
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="coordinateSystem">The CoordinateSystem</param>
 /// <param name="creator">The implementation that created this instance.</param>
 internal GeographyFullGlobeImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator)
     : base(coordinateSystem, creator)
 {
 }
Beispiel #17
0
 /// <summary>Initializes a new instance of the <see cref="Microsoft.Spatial.GeographyCurve" /> class.</summary>
 /// <param name="coordinateSystem">The coordinate system of this geography curve.</param>
 /// <param name="creator">The implementation that created this instance.</param>
 protected GeographyCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator)
     : base(coordinateSystem, creator)
 {
 }
Beispiel #18
0
 /// <summary>Initializes a new instance of the <see cref="T:Microsoft.Spatial.GeometryCurve" /> class.</summary>
 /// <param name="coordinateSystem">The coordinate system of this instance.</param>
 /// <param name="creator">The implementation that created this instance.</param>
 protected GeometryCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator)
     : base(coordinateSystem, creator)
 {
 }
Beispiel #19
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="creator">The SpatialImplementation that created this instance</param>
 public GeoJsonObjectFormatterImplementation(SpatialImplementation creator)
 {
     this.creator = creator;
 }
 /// <summary>Initializes a new instance of the <see cref="T:Microsoft.Spatial.GeographyMultiCurve" /> class.</summary>
 /// <param name="coordinateSystem">The coordinate system of this instance.</param>
 /// <param name="creator">The implementation that created this instance.</param>
 protected GeographyMultiCurve(CoordinateSystem coordinateSystem, SpatialImplementation creator)
     : base(coordinateSystem, creator)
 {
 }
 internal GeometryPolygonImplementation(SpatialImplementation creator, params GeometryLineString[] rings) : this(CoordinateSystem.DefaultGeometry, creator, rings)
 {
 }
Beispiel #22
0
 /// <summary>Initializes a new instance of the <see cref="T:Microsoft.Spatial.GeometryPoint" /> class. Empty Point constructor.</summary>
 /// <param name="coordinateSystem">The CoordinateSystem.</param>
 /// <param name="creator">The implementation that created this instance.</param>
 protected GeometryPoint(CoordinateSystem coordinateSystem, SpatialImplementation creator)
     : base(coordinateSystem, creator)
 {
 }
Beispiel #23
0
 /// <summary>Initializes a new instance of the <see cref="T:Microsoft.Spatial.GeographyPoint" /> class.</summary>
 /// <param name="coordinateSystem">The coordinate system of this instance.</param>
 /// <param name="creator">The implementation that created this instance.</param>
 protected GeographyPoint(CoordinateSystem coordinateSystem, SpatialImplementation creator)
     : base(coordinateSystem, creator)
 {
 }
 internal GeometryPolygonImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeometryLineString[] rings) : base(coordinateSystem, creator)
 {
     this.rings = rings ?? new GeometryLineString[0];
 }
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="coordinateSystem">The CoordinateSystem</param>
 /// <param name="creator">The implementation that created this instance.</param>
 /// <param name="lineStrings">Line Strings</param>
 internal GeometryMultiLineStringImplementation(CoordinateSystem coordinateSystem, SpatialImplementation creator, params GeometryLineString[] lineStrings)
     : base(coordinateSystem, creator)
 {
     this.lineStrings = lineStrings ?? new GeometryLineString[0];
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WellKnownTextSqlFormatterImplementation"/> class.
 /// </summary>
 /// <param name="creator">The implementation that created this instance.</param>
 internal WellKnownTextSqlFormatterImplementation(SpatialImplementation creator) : base(creator)
 {
 }