https://github.com/lukehb/137-geo
A tiny geography library in Java: map projections, coordinate conversion etc. Mostly refactored from Nasa WorldWind.
https://github.com/lukehb/137-geo
geography gis java map-projections nasa-worldwind projection
Last synced: 13 days ago
JSON representation
A tiny geography library in Java: map projections, coordinate conversion etc. Mostly refactored from Nasa WorldWind.
- Host: GitHub
- URL: https://github.com/lukehb/137-geo
- Owner: lukehb
- License: mit
- Created: 2016-10-10T08:17:24.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-09T11:00:24.000Z (over 8 years ago)
- Last Synced: 2025-10-17T13:21:29.603Z (9 months ago)
- Topics: geography, gis, java, map-projections, nasa-worldwind, projection
- Language: Java
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 137-geo
A tiny geography library in Java: map projections, coordinate conversion etc. Mostly refactored from Nasa WorldWind.
Example usage for converting geographic coordinates into cartesian coordinates:
```java
ProjectionMercator p = new ProjectionMercator();
double lat = 13.7;
double lon = 137.7;
//from a mercator projection to cartesian coordinates (assuming WGS84)
double[] xy = p.geographicToCartesian(lat, lon);
double[] latlon = p.cartesianToGeographic(xy);
//from lat/lon to UTM coordinates and back
int utmZone = 1;
p = new ProjectionUTM(1);
//...and so on
```
[  ](https://bintray.com/lukehb/137-geo/137-geo/_latestVersion)
You can use this project as a dependency like so:
```groovy
repositories {
maven{url 'https://dl.bintray.com/lukehb/137-geo'} //hosted on bintray
}
dependencies {
compile 'onethreeseven:geo:0.0.4'
}
```