diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-03-12 23:10:20 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-03-13 08:45:56 +0100 |
| commit | f0d6b64fee8b796ec038929187b7b725f62a5ba8 (patch) | |
| tree | b32badffae5470b2f318d4a0a98cc27443bbd75a /src/proj.h | |
| parent | ca3caf0e976e95a739963567057654cb8909bfb9 (diff) | |
| download | PROJ-f0d6b64fee8b796ec038929187b7b725f62a5ba8.tar.gz PROJ-f0d6b64fee8b796ec038929187b7b725f62a5ba8.zip | |
Add proj_get_suggested_operation()
Return the index of the operation that would be the most appropriate to
transform the specified coordinates.
This operation may use resources that are not locally available, depending
on the search criteria used by proj_create_operations().
This could be done by using proj_create_operations() with a punctual bounding
box, but this function is faster when one needs to evaluate on many points
with the same (source_crs, target_crs) tuple.
Diffstat (limited to 'src/proj.h')
| -rw-r--r-- | src/proj.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1157,6 +1157,11 @@ PJ PROJ_DLL *proj_list_get(PJ_CONTEXT *ctx, void PROJ_DLL proj_list_destroy(PJ_OBJ_LIST *result); +int PROJ_DLL proj_get_suggested_operation(PJ_CONTEXT *ctx, + PJ_OBJ_LIST *operations, + PJ_DIRECTION direction, + PJ_COORD coord); + /* ------------------------------------------------------------------------- */ PJ PROJ_DLL *proj_crs_get_geodetic_crs(PJ_CONTEXT *ctx, const PJ *crs); |
