Commit fa0826c
Auto: Sort nearby locations by distance in meters
The return value of Distance() differs depending on which version of that's
used:
Distance( geom1 Geometry , geom2 Geometry ) : Double precision
return the distance between geom1 and geom2 (always measured in CRS units).
Distance( geom1 Geometry , geom2 Geometry ,
use_ellipsoid Boolean ) : Double precision
return the distance between geom1 and geom2 (measured in meters).
Ordering by CRS units causes unexpected item order.
Fixes #4111 parent e69b322 commit fa0826c
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
586 | | - | |
| 586 | + | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
| |||
0 commit comments