Parse out-of-spec CRSs generated by GeoServer
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user