Created
August 2, 2013 18:46
-
-
Save indrek-koue/6142348 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // +proj=lcc +lat_1=59.33333333333334 +lat_2=58 +lat_0=57.51755393055556 | |
| // +lon_0=24 +x_0=500000 +y_0=6375000 +ellps=GRS80 | |
| // +towgs84=0,0,0,0,0,0,0 +units=m +no_defs | |
| //Allikas: https://taxofon.ee/eomap/EOMap.js | |
| String destinationCordinateProjection=" +proj=lcc +lat_1=59.33333333333334 +lat_2=58 +lat_0=57.51755393055556 +lon_0=24 +x_0=500000 +y_0=6375000 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"; | |
| //made by example: http://augusttown.blogspot.com/2010/03/using-java-map-projection-library-in.html | |
| String[] proj4_w = destinationCordinateProjection.split(" "); | |
| Projection proj = ProjectionFactory.fromPROJ4Specification(proj4_w); | |
| Point result = proj.transform(siia sisend x??,siia sisend y??); | |
| //result peaks tagastama siis konverteeritud punkti mida saab kontrollida: http://www.maaamet.ee/rr/geo-lest/url/?xy=6543210.14,543210.86 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment