Merge pull request #10534 from wussup/patch-1

[GeoJSON] Read projection from CRS type EPSG
This commit is contained in:
Tim Schaub authored and GitHub committed 2020-01-15 15:21:28 -07:00
commit 8e2adf9955
1 file changed
+2
+2
View File
@@ -162,6 +162,8 @@ class GeoJSON extends JSONFeature {
if (crs) {
if (crs['type'] == 'name') {
projection = getProjection(crs['properties']['name']);
} else if (crs['type'] === 'EPSG') {
projection = getProjection('EPSG:' + crs['properties']['code']);
} else {
assert(false, 36); // Unknown SRS type
}