Skip to content

Commit

Permalink
fix(ogcfilter): between operator crash with undefined values for lowe…
Browse files Browse the repository at this point in the history
…r and upper boundary (#1070)

Co-authored-by: Pierre-Étienne Lord <pe_lord@yahoo.ca>
  • Loading branch information
pelord and Pierre-Étienne Lord committed Jun 9, 2022
1 parent 65b1b8a commit f807de4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/geo/src/lib/filter/shared/ogc-filter.ts
Expand Up @@ -244,8 +244,8 @@ export class OgcFilterWriter {
case OgcFilterOperator.PropertyIsBetween.toLowerCase():
return olfilter.between(
wfsPropertyName,
wfsLowerBoundary,
wfsUpperBoundary
wfsLowerBoundary || 1e40*-1,
wfsUpperBoundary || 1e40
);
case OgcFilterOperator.Contains.toLowerCase():
return olfilter.contains(wfsGeometryName, geometry, wfsSrsName);
Expand Down

0 comments on commit f807de4

Please sign in to comment.