Skip to content

Commit c62fd0d

Browse files
committed
add gda2020 proj4 string
1 parent 65c12db commit c62fd0d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/controllers/proj4lookup.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ var proj4 = require('proj4');
88
//TODO: check if this loads the file into each core and if so then,
99
require('proj4js-defs/epsg')(proj4);
1010

11+
// GDA2020 proj4 string from https://gis.stackexchange.com/questions/349780/is-there-a-proj4-string-for-gda2020-epsg7844-that-we-use-to-transform-from-38
12+
proj4.defs["EPSG:7844"] = "+proj=longlat +ellps=GRS80 +towgs84=-0.06155,0.01087,0.04019,-0.0394924,-0.0327221,-0.03289790,0.009994 +no_defs";
1113

1214
//provide REST service for proj4 definition strings
1315
router.get('/:crs', function(req, res, next) {
@@ -19,4 +21,4 @@ router.get('/:crs', function(req, res, next) {
1921
}
2022
});
2123

22-
module.exports = router;
24+
module.exports = router;

0 commit comments

Comments
 (0)