Skip to content

Commit

Permalink
eslint - correction déclaration variables et intégration à github act…
Browse files Browse the repository at this point in the history
…ions (refs #32)
  • Loading branch information
mborne committed Jul 8, 2022
1 parent 9862626 commit 393bd92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
cache: 'npm'

- run: npm ci
- run: npm run check-style
- run: npm test

- name: Publish coverage to coveralls.io
Expand Down
7 changes: 3 additions & 4 deletions src/internal/buildCqlFilter.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,11 @@ function buildCqlFilter(params, geomFieldName,geomDefaultCRS) {
});
geom=input;
}
// flip coordinate as EPSG:4326 is lat,lon for GeoServer
if (geomDefaultCRS == constants.defaultCRS) {
// flip coordinate as EPSG:4326 is lat,lon for GeoServer
var wkt = WKT.convert(flip(geom));
} else {
var wkt = WKT.convert(geom);
geom = flip(geom);
}
let wkt = WKT.convert(geom);
parts.push('INTERSECTS(' + geomFieldName + ',' + wkt + ')');
} else {
parts.push(name + '=\'' + params[name] + '\'');
Expand Down

0 comments on commit 393bd92

Please sign in to comment.