Remove GeoJSON workaround for GeoServer

See #1569
See https://osgeo-org.atlassian.net/browse/GEOS-5996
This commit is contained in:
Frederic Junod
2017-10-16 17:09:41 +02:00
parent 382c6b9832
commit bcfad6ea8b
4 changed files with 5 additions and 45 deletions

View File

@@ -457,12 +457,6 @@ ol.format.GeoJSON.prototype.readProjectionFromObject = function(object) {
if (crs) {
if (crs.type == 'name') {
projection = ol.proj.get(crs.properties.name);
} else if (crs.type == 'EPSG') {
// 'EPSG' is not part of the GeoJSON specification, but is generated by
// GeoServer.
// TODO: remove this when http://jira.codehaus.org/browse/GEOS-5996
// is fixed and widely deployed.
projection = ol.proj.get('EPSG:' + crs.properties.code);
} else {
ol.asserts.assert(false, 36); // Unknown SRS type
}