public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters.Add(CoordinateOperationParameters.LatitudeOf1stStandardParallel, Angle.FromDegree(0));
            parameters.Add(CoordinateOperationParameters.LongitudeOfNaturalOrigin, Angle.FromDegree(0));
            parameters.Add(CoordinateOperationParameters.FalseEasting, Length.FromMetre(0));
            parameters.Add(CoordinateOperationParameters.FalseNorthing, Length.FromMetre(0));

            Ellipsoid ellipsoid = Ellipsoid.FromSemiMinorAxis("EPSG::7030", "WGS 1984", 6378137, 6356752.314);
            AreaOfUse areaOfUse = TestUtilities.ReferenceProvider.AreasOfUse["EPSG::1262"];

            this.projection = new EquidistantCylindricalProjection("EPSG::4085", "World Equidistant Cylindrical", parameters, ellipsoid, areaOfUse);
        }
Ejemplo n.º 2
0
        public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters.Add(CoordinateOperationParameters.LatitudeOfNaturalOrigin, Angle.FromDegree(10, 26, 30));
            parameters.Add(CoordinateOperationParameters.LongitudeOfNaturalOrigin, Angle.FromDegree(-61, 20, 0));
            parameters.Add(CoordinateOperationParameters.FalseEasting, Length.FromClarkesLink(430000));
            parameters.Add(CoordinateOperationParameters.FalseNorthing, Length.FromClarkesLink(325000));

            Ellipsoid ellipsoid = Ellipsoid.FromSemiMinorAxis("EPSG::7007", "Clarke 1858", Length.FromClarkesFoot(20926348), Length.FromClarkesFoot(20855233)).ToUnit(UnitsOfMeasurement.ClarkesLink);
            AreaOfUse areaOfUse = TestUtilities.ReferenceProvider.AreasOfUse["EPSG::1339"];

            this.projection = new CassiniSoldnerProjection("EPSG::19925", "Trinidad Grid", parameters, ellipsoid, areaOfUse);
        }
Ejemplo n.º 3
0
        public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters.Add(CoordinateOperationParameters.LatitudeOfNaturalOrigin, Angle.FromDegree(34, 39, 00));
            parameters.Add(CoordinateOperationParameters.LongitudeOfNaturalOrigin, Angle.FromDegree(37, 21, 00));
            parameters.Add(CoordinateOperationParameters.FalseEasting, Length.FromMetre(300000));
            parameters.Add(CoordinateOperationParameters.FalseNorthing, Length.FromMetre(300000));
            parameters.Add(CoordinateOperationParameters.ScaleFactorAtNaturalOrigin, 0.99962560);

            Ellipsoid ellipsoid = Ellipsoid.FromSemiMinorAxis("EPSG::7011", "Clarke 1880 (IGN)", 6378249.2, 6356515);
            AreaOfUse areaOfUse = TestUtilities.ReferenceProvider.AreasOfUse["EPSG::1623"];

            this.projectionLambertConicNearConformal = new LambertConicNearConformalProjection("EPSG::19940", "Levant Zone", parameters, ellipsoid, areaOfUse);
        }
Ejemplo n.º 4
0
        public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters.Add(CoordinateOperationParameters.LatitudeOfNaturalOrigin, Angle.FromDegree(0));
            parameters.Add(CoordinateOperationParameters.LongitudeOfNaturalOrigin, Angle.FromDegree(29));
            parameters.Add(CoordinateOperationParameters.FalseEasting, Length.FromMetre(0));
            parameters.Add(CoordinateOperationParameters.FalseNorthing, Length.FromMetre(0));
            parameters.Add(CoordinateOperationParameters.ScaleFactorAtNaturalOrigin, 1);

            Ellipsoid ellipsoid = Ellipsoid.FromSemiMinorAxis("EPSG::4326", "WGS 84", 6378137, 6356752.31424);
            AreaOfUse areaOfUse = TestUtilities.ReferenceProvider.AreasOfUse["EPSG::1264"];

            this.projection = new TransverseMercatorSouthProjection("EPSG::4148", "Hartebeesthoek94", parameters, ellipsoid, areaOfUse);
        }
Ejemplo n.º 5
0
        public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters = new Dictionary <CoordinateOperationParameter, Object>();
            parameters.Add(CoordinateOperationParameters.LatitudeOfStandardParallel, Angle.FromDegree(-71));
            parameters.Add(CoordinateOperationParameters.LongitudeOfOrigin, Angle.FromDegree(70));
            parameters.Add(CoordinateOperationParameters.FalseEasting, Length.FromMetre(6000000));
            parameters.Add(CoordinateOperationParameters.FalseNorthing, Length.FromMetre(6000000));

            Ellipsoid ellipsoid = Ellipsoid.FromSemiMinorAxis("EPSG::7030", "WGS 1984", 6378137, 6356752.314);
            AreaOfUse areaOfUse = TestUtilities.ReferenceProvider.AreasOfUse["EPSG::1278"];

            this.projection = new PolarStereographicBProjection("EPSG::19993", "Australian Antarctic Polar Stereographic", parameters, ellipsoid, areaOfUse);
        }
        public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters.Add(CoordinateOperationParameters.LatitudeOfNaturalOrigin, Angle.FromDegree(90));
            parameters.Add(CoordinateOperationParameters.LongitudeOfNaturalOrigin, Angle.FromDegree(0));
            parameters.Add(CoordinateOperationParameters.ScaleFactorAtNaturalOrigin, 0.994);
            parameters.Add(CoordinateOperationParameters.FalseEasting, Length.FromMetre(2000000));
            parameters.Add(CoordinateOperationParameters.FalseNorthing, Length.FromMetre(2000000));

            Ellipsoid ellipsoid = Ellipsoid.FromSemiMinorAxis("EPSG::7030", "WGS 1984", 6378137, 6356752.314);
            AreaOfUse areaOfUse = TestUtilities.ReferenceProvider.AreasOfUse["EPSG::1996"];

            this.projection = new PolarStereographicAProjection("EPSG::16061", "Universal Polar Stereographic North", parameters, ellipsoid, areaOfUse);
        }
        public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters.Add(CoordinateOperationParameters.LatitudeOfNaturalOrigin, Angle.FromDegree(49));
            parameters.Add(CoordinateOperationParameters.LongitudeOfNaturalOrigin, Angle.FromDegree(-2));
            parameters.Add(CoordinateOperationParameters.FalseEasting, Length.FromMetre(400000));
            parameters.Add(CoordinateOperationParameters.FalseNorthing, Length.FromMetre(-100000));
            parameters.Add(CoordinateOperationParameters.ScaleFactorAtNaturalOrigin, 0.9996012717);

            Ellipsoid ellipsoid = Ellipsoid.FromSemiMinorAxis("EPSG::7001", "Airy 1830", 6377563.396, 6356256.910);
            AreaOfUse areaOfUse = TestUtilities.ReferenceProvider.AreasOfUse["EPSG::1264"];

            this.projection = new TransverseMercatorProjection("EPSG::19916", "British National Grid", parameters, ellipsoid, areaOfUse);
        }
Ejemplo n.º 8
0
        public void SetUp()
        {
            Dictionary <CoordinateOperationParameter, Object> parameters = new Dictionary <CoordinateOperationParameter, Object>();

            parameters = new Dictionary <CoordinateOperationParameter, Object>();
            parameters = new Dictionary <CoordinateOperationParameter, Object>();
            parameters.Add(CoordinateOperationParameters.LatitudeOfNaturalOrigin, Angle.FromDegree(-16, 15, 00));
            parameters.Add(CoordinateOperationParameters.LongitudeOfNaturalOrigin, Angle.FromDegree(179, 20, 00));
            parameters.Add(CoordinateOperationParameters.FalseEasting, Length.Convert(Length.FromClarkesChain(12513.318), UnitsOfMeasurement.ClarkesFoot));
            parameters.Add(CoordinateOperationParameters.FalseNorthing, Length.Convert(Length.FromClarkesChain(16628.885), UnitsOfMeasurement.ClarkesFoot));

            Ellipsoid ellipsoid = Ellipsoid.FromSemiMinorAxis("EPSG::7034", "Clarke 1880", Length.FromClarkesFoot(20926202), Length.FromClarkesFoot(20854895));
            AreaOfUse areaOfUse = TestUtilities.ReferenceProvider.AreasOfUse["EPSG::1262"];

            this.projection = new HyperbolicCassiniSoldnerProjection("EPSG::9833", "Vanua Levu Grid", parameters, ellipsoid, areaOfUse);
        }
Ejemplo n.º 9
0
        public void SetUp()
        {
            Ellipsoid ellipsoid = Ellipsoid.FromSemiMinorAxis("EPSG::7030", "WGS 1984", 6378137, 6356752.314);

            this.conversion = new GeographicToGeocentricConversion(IdentifiedObject.UserDefinedIdentifier, IdentifiedObject.UserDefinedName, ellipsoid);
        }