Parse out-of-spec CRSs generated by GeoServer

This commit is contained in:
Tom Payne
2014-01-21 16:02:02 +01:00
parent 7f9fd3db5e
commit f9e0167b66
3 changed files with 32 additions and 1 deletions

View File

@@ -391,6 +391,18 @@ describe('ol.format.GeoJSON', function() {
});
it('can read out-of-specification CRS generated by GeoServer', function() {
var json = {
crs: {
type: 'EPSG',
properties: {
code: '4326'
}
}
};
expect(format.readProjection(json)).to.be(ol.proj.get('EPSG:4326'));
});
});
describe('#writeFeatures', function() {