Changeset 9549 in josm


Ignore:
Timestamp:
2016-01-20T20:28:47+01:00 (8 years ago)
Author:
bastiK
Message:

see #12186 - add Cassini-Soldner Projection
(imports pieces of code from the Geotools project)

Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/data_nodist/projection/projection-regression-test-data

    r9535 r9549  
    473473  en  6926462.06342142 -165024.540649525
    474474  ll2 14.701654738347592 54.01458641292709
     475EPSG:2066
     476  ll  13.975131874937176 -60.37243636427039
     477  en  71599.70480882854 337447.4793639815
     478  ll2 13.975131874938855 -60.37243636426834
    475479EPSG:2067
    476480  ll  55.60864303624845 -70.280895468024
     
    617621  en  884166.2899764784 -5221481.485035512
    618622  ll2 -13.614115983454221 131.31175399585865
     623EPSG:2099
     624  ll  72.65644527894739 49.92631486699122
     625  en  72204.2993182416 5357217.657226288
     626  ll2 72.65644527910784 49.92631486710464
    619627EPSG:2100
    620628  ll  -3.5543672699074875 31.071285564907065
     
    16811689  en  1088177.7637519222 -6016377.833098785
    16821690  ll2 -53.96207417199988 23.97580785140248
     1691EPSG:2314
     1692  ll  87.36558574017153 -60.530745646272344
     1693  en  90539.48876331425 8618218.887626683
     1694  ll2 87.3655856161975 -60.5307464998997
    16831695EPSG:2315
    16841696  ll  22.50455506286906 -77.5357477446401
     
    25452557  en  -229765.64571125267 -7786505.5208910545
    25462558  ll2 -34.31784317732501 136.0036534564606
     2559EPSG:24500
     2560  ll  -31.12891929964168 103.17335368777829
     2561  en  -34627.59126877593 -3557826.2698627305
     2562  ll2 -31.12891927090384 103.17335366483435
    25472563EPSG:2451
    25482564  ll  15.2580235481866 134.41033672570933
     
    49334949  en  565297.1789718424 3506111.539885106
    49344950  ll2 69.8839059478399 -98.55087041633419
     4951EPSG:28191
     4952  ll  -21.570203053454662 34.57767652812345
     4953  en  104754.31384402225 -5771883.990347592
     4954  ll2 -21.570203018689934 34.57767659579005
    49354955EPSG:28192
    49364956  ll  59.18873382786856 44.28333525949895
    49374957  en  687450.2776484762 4213542.311647201
    49384958  ll2 59.188733819143955 44.283334982018026
     4959EPSG:28193
     4960  ll  20.971632491522698 36.158968029613234
     4961  en  268724.25591304107 -65320.37615292007
     4962  ll2 20.97163233889922 36.158968021027356
    49394963EPSG:2820
    49404964  ll  67.94752804358941 -117.02701082508148
     
    60656089  en  926913.8607939163 4324318.619755185
    60666090  ll2 38.871020901539424 6.955212120989621
     6091EPSG:30200
     6092  ll  -6.532368683324151 -60.9305157095611
     6093  en  130970.1455293707 -1812068.8477065342
     6094  ll2 -6.5323685558295725 -60.93051568833247
    60676095EPSG:3021
    60686096  ll  7.152495328204623 12.543861613397564
     
    62496277  en  -120264.82768384414 5165372.018931383
    62506278  ll2 46.35672994146026 18.936315448581677
     6279EPSG:3068
     6280  ll  55.703667858672645 14.46073843172399
     6281  en  92519.82659949941 376112.61856716697
     6282  ll2 55.703667863702385 14.460738443502686
    62516283EPSG:3070
    62526284  ll  -32.08389450114475 -90.27989821155268
     
    66296661  en  -173220.16400133923 4207666.132652629
    66306662  ll2 37.753296206694735 23.36636688451302
     6663EPSG:3140
     6664  ll  56.97355664712137 177.4736509714258
     6665  en  77818.80726976835 8449604.293963326
     6666  ll2 56.97355659253866 177.47365084528712
    66316667EPSG:3141
    66326668  ll  -32.602880332544395 174.15109494326066
     
    94539489  en  1016594.5161534745 528097.7829511302
    94549490  ll2 4.747304314605455 118.84323425598721
     9491EPSG:3377
     9492  ll  48.89156010734848 103.99429688391157
     9493  en  26720.57019395572 5191876.879770025
     9494  ll2 48.89156010751724 103.9942968840599
     9495EPSG:3378
     9496  ll  12.004775351693155 102.31523646623803
     9497  en  40736.117439204885 1026794.2295150959
     9498  ll2 12.004775351694645 102.31523646624036
     9499EPSG:3379
     9500  ll  56.46771682287883 102.5244152937968
     9501  en  2254.329703671562 5850334.836913607
     9502  ll2 56.46771682287961 102.52441529379698
     9503EPSG:3380
     9504  ll  -70.56287855128488 101.5357320871954
     9505  en  -29388.376541149293 -8182754.146054061
     9506  ll2 -70.56287855128507 101.5357320871954
     9507EPSG:3381
     9508  ll  -44.32573731631593 102.57224457151007
     9509  en  -20131.49542507911 -5457028.561008427
     9510  ll2 -44.32573731641946 102.57224457142638
     9511EPSG:3382
     9512  ll  -5.8703840014789535 99.96881248250148
     9513  en  -41613.26705010444 -1248586.1903985934
     9514  ll2 -5.8703840014791995 99.96881248250051
     9515EPSG:3383
     9516  ll  22.962743966167466 100.42861065428318
     9517  en  -21305.96296384345 1880863.5359677796
     9518  ll2 22.962743966168627 100.42861065428256
     9519EPSG:3384
     9520  ll  45.85634027452056 100.53077601723719
     9521  en  -22107.447292642028 4676312.050189673
     9522  ll2 45.8563402745316 100.53077601723217
     9523EPSG:3385
     9524  ll  71.8618083553842 103.13867053860888
     9525  en  42544.56389698691 7325220.477060333
     9526  ll2 71.86180835557103 103.13867053853396
    94559527EPSG:3386
    94569528  ll  -89.59009830030605 15.366898838425108
     
    95299601  en  1524538.5878959405 2066626.2181707374
    95309602  ll2 18.441000009971695 120.66715161207838
     9603EPSG:3407
     9604  ll  -30.985259804927132 113.97942223611656
     9605  en  21221.886057121756 -5878316.329362738
     9606  ll2 -30.985259804928983 113.97942223611584
    95319607EPSG:3411
    95329608  ll  69.74806132169249 48.794738310977124
  • trunk/src/org/openstreetmap/josm/data/projection/Projections.java

    r9532 r9549  
    3030import org.openstreetmap.josm.data.projection.datum.WGS84Datum;
    3131import org.openstreetmap.josm.data.projection.proj.AlbersEqualArea;
     32import org.openstreetmap.josm.data.projection.proj.CassiniSoldner;
    3233import org.openstreetmap.josm.data.projection.proj.ClassProjFactory;
    3334import org.openstreetmap.josm.data.projection.proj.DoubleStereographic;
     
    8687    static {
    8788        registerBaseProjection("aea", AlbersEqualArea.class, "core");
     89        registerBaseProjection("cass", CassiniSoldner.class, "core");
    8890        registerBaseProjection("josm:smerc", Mercator.class, "core");
    8991        registerBaseProjection("lcc", LambertConformalConic.class, "core");
  • trunk/src/org/openstreetmap/josm/data/projection/proj/AlbersEqualArea.java

    r9428 r9549  
    2020 * package of the USGS survey. USGS work is acknowledged here.
    2121 * <p>
    22   * This class has been derived from the implementation of the Geotools project;
     22 * This class has been derived from the implementation of the Geotools project;
    2323 * git 8cbf52d, org.geotools.referencing.operation.projection.AlbersEqualArea
    2424 * at the time of migration.
    2525 * <p>
    26 * <b>References:</b>
     26 * <b>References:</b>
    2727 * <ul>
    2828 *   <li> Proj-4.4.7 available at <A HREF="http://www.remotesensing.org/proj">www.remotesensing.org/proj</A><br>
  • trunk/test/unit/org/openstreetmap/josm/data/projection/ProjectionTest.java

    r9535 r9549  
    123123        testProj("stere", 1e-5, "+lat_0=90 +lat_ts=90");
    124124        testProj("omerc", EPS, "+lat_0=4 +lonc=115 +alpha=53 +no_uoff +gamma=53.130 +bounds=112,4,116,7");
     125        testProj("cass", 1e-3, "+lat_0=11 +bounds=-1.0,-89,1.0,89");
    125126
    126127        if (error2) {
Note: See TracChangeset for help on using the changeset viewer.