Skip to content

Commit

Permalink
Merge pull request #116 from mapbox/srs-0.4.0
Browse files Browse the repository at this point in the history
Upgrade to node-srs@0.4.0
  • Loading branch information
Dane Springmeyer committed May 12, 2014
2 parents 66d4b09 + 381659e commit 685e0d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#### FUTURE

* Fixed bug whereby more than one interval timer was being created causing the millstone command to hang rather than exit
* Upgraded to node-srs@0.3.12
* Upgraded to node-srs@0.4.0

#### 0.6.12

Expand Down
3 changes: 2 additions & 1 deletion lib/millstone.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,8 @@ function resolve(options, callback) {
case '.topojson':
case '.json':
try {
l.srs = l.srs || srs.parse(d.file).proj4;
var json_obj = JSON.parse(fs.readFileSync(d.file));
l.srs = l.srs || srs.parse(srs.jsonCrs(json_obj)).proj4;
} catch (e) {
next(new Error("Could not parse: '" + d.file + "': error: '" + e.message + "'"));
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"step": "~0.0.5",
"generic-pool": "~2.0.3",
"request": "~2.34.0",
"srs": "~0.3.12",
"srs": "~0.4.0",
"zipfile": "~0.5.2",
"sqlite3": "2.x",
"mime": "~1.2.9",
Expand Down

0 comments on commit 685e0d4

Please sign in to comment.