You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.
4
-
Originally a port of [PROJ.4](http://trac.osgeo.org/proj/) and [GCTCP C](http://edcftp.cr.usgs.gov/pub//software/gctpc) it is
5
-
a part of the [MetaCRS](http://wiki.osgeo.org/wiki/MetaCRS) group of projects.
4
+
Originally a port of [PROJ](https://proj.org/) ([then known as PROJ.4](https://proj.org/faq.html#what-happened-to-proj-4)) and GCTCP C ([Archive](https://web.archive.org/web/20130523091752/http://edcftp.cr.usgs.gov/pub/software/gctpc/)) it is
5
+
a part of the [MetaCRS](https://trac.osgeo.org/metacrs/wiki) group of projects.
6
6
7
7
## Installing
8
8
@@ -11,17 +11,16 @@ Depending on your preferences
11
11
```bash
12
12
npm install proj4
13
13
bower install proj4
14
-
jam install proj4
15
14
component install proj4js/proj4js
16
15
```
17
16
18
-
or just manually grab the file `proj4.js` from the [latest release](https://github.com/proj4js/proj4js/releases).
17
+
or just manually grab the file `proj4.js` from the [latest release](https://github.com/proj4js/proj4js/releases)'s `dist/` folder.
19
18
20
-
if you do not want to download anything, Proj4js is also hosted on [cdnjs](http://www.cdnjs.com/libraries/proj4js) for direct use in your browser applications.
19
+
If you do not want to download anything, Proj4js is also hosted on [cdnjs](https://www.cdnjs.com/libraries/proj4js) for direct use in your browser applications.
TypeScript implementation was added to the [DefinitelyTyped repository](https://github.com/DefinitelyTyped/DefinitelyTyped).
119
+
120
+
```bash
121
+
$ npm install --save @types/proj4
122
+
```
116
123
117
124
## Developing
118
-
to set up build tools make sure you have node and grunt-cli installed and then run `npm install`
125
+
To set up build tools make sure you have node and grunt-cli installed and then run `npm install`.
119
126
120
-
to do the complete build and browser tests run
127
+
To do the complete build and browser tests run:
121
128
122
129
```bash
123
-
grunt
130
+
node_modules/.bin/grunt
124
131
```
125
132
126
-
to run node tests run
133
+
To run node tests run:
127
134
128
135
```bash
129
136
npm test
130
137
```
131
138
132
-
to run node tests with coverage run
139
+
To run node tests with coverage run:
133
140
134
141
```bash
135
-
nodetest --coverage
142
+
npmtest --coverage
136
143
```
137
144
138
-
to create a build with only default projections (latlon and Mercator) run
145
+
To create a build with only default projections (latlon and Mercator) run:
139
146
140
147
```bash
141
-
grunt build
148
+
node_modules/.bin/grunt build
142
149
```
143
150
144
-
to create a build with only custom projections include a comma separated list of projections codes (the file name in 'lib/projections' without the '.js') after a colon, e.g.
151
+
To create a build with only custom projections include a comma separated list of projections codes (the file name in 'lib/projections' without the '.js') after a colon, e.g.:
0 commit comments