Remove lint
This commit is contained in:
@@ -391,12 +391,13 @@ describe('ol/format/EsriJSON.js', function () {
|
||||
const firstGeom = first.getGeometry();
|
||||
expect(firstGeom).to.be.a(Polygon);
|
||||
expect(
|
||||
equals(firstGeom.getExtent(), [
|
||||
-10585772.743554419,
|
||||
4712365.161160459,
|
||||
-10579560.16462974,
|
||||
4716567.373073828,
|
||||
])
|
||||
equals(
|
||||
firstGeom.getExtent(),
|
||||
[
|
||||
-10585772.743554419, 4712365.161160459, -10579560.16462974,
|
||||
4716567.373073828,
|
||||
]
|
||||
)
|
||||
).to.be(true);
|
||||
|
||||
const last = result[8];
|
||||
@@ -406,12 +407,13 @@ describe('ol/format/EsriJSON.js', function () {
|
||||
const lastGeom = last.getGeometry();
|
||||
expect(lastGeom).to.be.a(Polygon);
|
||||
expect(
|
||||
equals(lastGeom.getExtent(), [
|
||||
-10555714.026858449,
|
||||
4576511.565880965,
|
||||
-10553671.199322715,
|
||||
4578554.9934867555,
|
||||
])
|
||||
equals(
|
||||
lastGeom.getExtent(),
|
||||
[
|
||||
-10555714.026858449, 4576511.565880965, -10553671.199322715,
|
||||
4578554.9934867555,
|
||||
]
|
||||
)
|
||||
).to.be(true);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -358,12 +358,10 @@ describe('ol/format/GeoJSON.js', function () {
|
||||
const firstGeom = first.getGeometry();
|
||||
expect(firstGeom).to.be.a(Polygon);
|
||||
expect(
|
||||
equals(firstGeom.getExtent(), [
|
||||
60.52843,
|
||||
29.318572,
|
||||
75.158028,
|
||||
38.486282,
|
||||
])
|
||||
equals(
|
||||
firstGeom.getExtent(),
|
||||
[60.52843, 29.318572, 75.158028, 38.486282]
|
||||
)
|
||||
).to.be(true);
|
||||
|
||||
const last = result[178];
|
||||
@@ -373,12 +371,10 @@ describe('ol/format/GeoJSON.js', function () {
|
||||
const lastGeom = last.getGeometry();
|
||||
expect(lastGeom).to.be.a(Polygon);
|
||||
expect(
|
||||
equals(lastGeom.getExtent(), [
|
||||
25.264226,
|
||||
-22.271612,
|
||||
32.849861,
|
||||
-15.507787,
|
||||
])
|
||||
equals(
|
||||
lastGeom.getExtent(),
|
||||
[25.264226, -22.271612, 32.849861, -15.507787]
|
||||
)
|
||||
).to.be(true);
|
||||
});
|
||||
|
||||
|
||||
@@ -93,9 +93,7 @@ describe('ol/format/TopoJSON.js', function () {
|
||||
expect(feature.get('prop0')).to.be('value0');
|
||||
|
||||
expect(geometry.getExtent()).to.eql([
|
||||
-70.08100810081008,
|
||||
12.417091709170947,
|
||||
-69.9009900990099,
|
||||
-70.08100810081008, 12.417091709170947, -69.9009900990099,
|
||||
12.608069195591469,
|
||||
]);
|
||||
});
|
||||
@@ -138,29 +136,13 @@ describe('ol/format/TopoJSON.js', function () {
|
||||
const line = features[1].getGeometry();
|
||||
expect(line.getType()).to.be('LineString');
|
||||
expect(line.getFlatCoordinates()).to.eql([
|
||||
102,
|
||||
0,
|
||||
103,
|
||||
1,
|
||||
104,
|
||||
0,
|
||||
105,
|
||||
1,
|
||||
102, 0, 103, 1, 104, 0, 105, 1,
|
||||
]);
|
||||
|
||||
const polygon = features[2].getGeometry();
|
||||
expect(polygon.getType()).to.be('Polygon');
|
||||
expect(polygon.getFlatCoordinates()).to.eql([
|
||||
100,
|
||||
0,
|
||||
100,
|
||||
1,
|
||||
101,
|
||||
1,
|
||||
101,
|
||||
0,
|
||||
100,
|
||||
0,
|
||||
100, 0, 100, 1, 101, 1, 101, 0, 100, 0,
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -216,10 +198,7 @@ describe('ol/format/TopoJSON.js', function () {
|
||||
const firstGeom = first.getGeometry();
|
||||
expect(firstGeom).to.be.a(MultiPolygon);
|
||||
expect(firstGeom.getExtent()).to.eql([
|
||||
-180,
|
||||
-85.60903777459777,
|
||||
180,
|
||||
83.64513000000002,
|
||||
-180, -85.60903777459777, 180, 83.64513000000002,
|
||||
]);
|
||||
|
||||
const last = features[177];
|
||||
@@ -227,9 +206,7 @@ describe('ol/format/TopoJSON.js', function () {
|
||||
const lastGeom = last.getGeometry();
|
||||
expect(lastGeom).to.be.a(Polygon);
|
||||
expect(lastGeom.getExtent()).to.eql([
|
||||
25.26325263252633,
|
||||
-22.271802279310577,
|
||||
32.848528485284874,
|
||||
25.26325263252633, -22.271802279310577, 32.848528485284874,
|
||||
-15.50833810039586,
|
||||
]);
|
||||
});
|
||||
|
||||
@@ -979,27 +979,8 @@ describe('ol/format/WKB.js', function () {
|
||||
it('returns the default projection', function () {
|
||||
const wkb = new Uint8Array([
|
||||
// POINT(1 2)
|
||||
0x01,
|
||||
0x01,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0xf0,
|
||||
0x3f,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x40,
|
||||
0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0,
|
||||
0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
|
||||
]);
|
||||
const projection = format.readProjection(wkb);
|
||||
expect(projection).to.be(undefined);
|
||||
@@ -1008,30 +989,8 @@ describe('ol/format/WKB.js', function () {
|
||||
it('returns an embed projection', function () {
|
||||
const wkb = new Uint8Array([
|
||||
// SRID=4326;POINT(1 2)
|
||||
0x01,
|
||||
0x01,
|
||||
0x00,
|
||||
0x00,
|
||||
0x20,
|
||||
0xe6,
|
||||
0x10,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0xf0,
|
||||
0x3f,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x01, 0x01, 0x00, 0x00, 0x20, 0xe6, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x40,
|
||||
]);
|
||||
const projection = format.readProjection(wkb);
|
||||
@@ -1066,27 +1025,8 @@ describe('ol/format/WKB.js', function () {
|
||||
it('transforms with dataProjection and featureProjection', function () {
|
||||
const wkb = new Uint8Array([
|
||||
// POINT(1 2)
|
||||
0x01,
|
||||
0x01,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0xf0,
|
||||
0x3f,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x40,
|
||||
0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xf0,
|
||||
0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x40,
|
||||
]);
|
||||
const geom = format.readGeometry(wkb, {
|
||||
dataProjection: 'EPSG:4326',
|
||||
@@ -1100,30 +1040,8 @@ describe('ol/format/WKB.js', function () {
|
||||
it('transforms with auto detection of dataProjection', function () {
|
||||
const wkb = new Uint8Array([
|
||||
// SRID=4326;POINT(1 2)
|
||||
0x01,
|
||||
0x01,
|
||||
0x00,
|
||||
0x00,
|
||||
0x20,
|
||||
0xe6,
|
||||
0x10,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0xf0,
|
||||
0x3f,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x00,
|
||||
0x01, 0x01, 0x00, 0x00, 0x20, 0xe6, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0xf0, 0x3f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x40,
|
||||
]);
|
||||
const geom = format.readGeometry(wkb, {
|
||||
|
||||
Reference in New Issue
Block a user