Skip to content

Commit

Permalink
Only use grids when it's known for sure the point lies inside
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdoug committed Sep 25, 2021
1 parent 3899f15 commit 74074d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/CoordinateOperation/AutoConversion.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ protected function validatePath(array $candidatePath, ?GeographicValue $boundary
}
}

//filter out operations that require a grid file that we don't have
//filter out operations that require a grid file that we don't have, or where boundaries are not being
//checked (a formula-based conversion will always return *a* result, outside a grid boundary does not...
foreach ($params as $param) {
if (isset($param['fileProvider']) && !class_exists($param['fileProvider'])) {
if (isset($param['fileProvider']) && (!$boundaryCheckPoint || !class_exists($param['fileProvider']))) {
return false;
}
}
Expand Down

0 comments on commit 74074d8

Please sign in to comment.