Changeset 42020ce in tol


Ignore:
Timestamp:
Jan 2, 2010, 4:43:56 PM (17 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
f870ccbf
Parents:
9ae30cc
Message:

Nuevo método @UTMFormula::GetDatum

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1904 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol_pkg/GisTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • tol_pkg/GisTools/GisTools.tol

    r9ae30cc r42020ce  
    147147  };
    148148
     149  ////////////////////////////////////////////////////////////////////////////
     150  Static @UTMFormula GetDatum(Text name)
     151  ////////////////////////////////////////////////////////////////////////////
     152  {
     153    Set dtm = Datum(0);
     154    dtm[name]
     155  };
    149156
    150157  ////////////////////////////////////////////////////////////////////////////
  • tol_pkg/GisTools/test/test_0002/test.tol

    r9ae30cc r42020ce  
    2121//#Embed "../../../_embed_all.tol";
    2222
    23 Set datum = GisTools::@UTMFormula::Datum(0);
     23GisTools::@UTMFormula WGS84 = GisTools::@UTMFormula::GetDatum("WGS84");
    2424/* */
    2525
    … …  
    3434VMatrix utm = x|y;
    3535
    36 VMatrix utm_ = datum::WGS84::deg2utm(deg,lonZone);
    37 VMatrix deg_ = datum::WGS84::utm2deg(utm,lonZone,latZone);
     36VMatrix utm_ = WGS84::deg2utm(deg,lonZone);
     37VMatrix deg_ = WGS84::utm2deg(utm,lonZone,latZone);
    3838
    3939VMatrix cmp = deg | deg_ | utm | utm_ | lonZone | latZone;
Note: See TracChangeset for help on using the changeset viewer.