wfletcher / EasyGIS.NET

EasyGIS.NET source
GNU Lesser General Public License v3.0
68 stars 24 forks source link

When creating an ICoordinateTransformation between 2 CoordinateReferenceSystems in some cases the returned transformation may attempt to use a transformation grid that is not available #106

Closed wfletcher closed 1 year ago

wfletcher commented 1 year ago

This issue is due to the sort order of returned transformations returned by proj9.0 including transformations that use a transformation grid when the grid file is not available.

solution is to change proj_operation_factory_context_set_grid_availability_use to use PROJ_GRID_AVAILABILITY_USED_FOR_SORTING. Previously it was using PROJ_GRID_AVAILABILITY_IGNORED