Merge pull request #10534 from wussup/patch-1
[GeoJSON] Read projection from CRS type EPSG
This commit is contained in:
@@ -162,6 +162,8 @@ class GeoJSON extends JSONFeature {
|
|||||||
if (crs) {
|
if (crs) {
|
||||||
if (crs['type'] == 'name') {
|
if (crs['type'] == 'name') {
|
||||||
projection = getProjection(crs['properties']['name']);
|
projection = getProjection(crs['properties']['name']);
|
||||||
|
} else if (crs['type'] === 'EPSG') {
|
||||||
|
projection = getProjection('EPSG:' + crs['properties']['code']);
|
||||||
} else {
|
} else {
|
||||||
assert(false, 36); // Unknown SRS type
|
assert(false, 36); // Unknown SRS type
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user