-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7d1ac9e
commit 4af7142
Showing
5 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Super Light-Weight Utility Functions for Working with Universal Transverse Merca | |
const isUTM = require('utm-utils/src/isUTM'); | ||
|
||
const result = isUTM(32619); | ||
//true | ||
// true | ||
``` | ||
|
||
# Get Hemisphere from EPSG Code | ||
|
@@ -26,5 +26,13 @@ const zone = getZone('32617'); | |
// 17 | ||
``` | ||
|
||
# Get PROJ String from EPSG Code | ||
```javascript | ||
const getProjString = require('utm-utils/src/getProjString'); | ||
|
||
const projString = getProjString('32617'); | ||
// +proj=utm +zone=17 +ellps=WGS84 +datum=WGS84 +units=m +no_defs | ||
``` | ||
|
||
# Support | ||
Email the package author at [email protected] or post an issue at https://github.com/danieljdufour/utm-utils/issues |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const getZone = require('./getZone'); | ||
const getHemisphere = require('./getHemisphere'); | ||
|
||
module.exports = function getProjString (projection) { | ||
const zone = getZone(projection); | ||
const hemisphere = getHemisphere(projection); | ||
return `+proj=utm +zone=${zone}${hemisphere === 'S' ? ' +south ' : ' '}+ellps=WGS84 +datum=WGS84 +units=m +no_defs`; | ||
}; |
This file contains 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