aboutsummaryrefslogtreecommitdiff
path: root/src/proj.h
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2019-08-22 22:52:48 +0200
committerEven Rouault <even.rouault@spatialys.com>2019-08-23 21:49:40 +0200
commit11869e2c4d29f0e607a0f78fb289d253fccd9a16 (patch)
tree5b8be1637f9272b8b3ddb4a6280b6207389fbf4f /src/proj.h
parentb7f829ce8f7c9fce2934b3981493a5d3338143b9 (diff)
downloadPROJ-11869e2c4d29f0e607a0f78fb289d253fccd9a16.tar.gz
PROJ-11869e2c4d29f0e607a0f78fb289d253fccd9a16.zip
Add proj_create_crs_to_crs_from_pj()
I've been frustrated a number of times with proj_create_crs_to_crs() not accepting a PJ* object for the source and target CRS. And thus constraining to go back to WKT2 in a artificial way.
Diffstat (limited to 'src/proj.h')
-rw-r--r--src/proj.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/proj.h b/src/proj.h
index 4a3e4c59..9cf83df7 100644
--- a/src/proj.h
+++ b/src/proj.h
@@ -357,6 +357,11 @@ int PROJ_DLL proj_context_get_use_proj4_init_rules(PJ_CONTEXT *ctx, int from_leg
PJ PROJ_DLL *proj_create (PJ_CONTEXT *ctx, const char *definition);
PJ PROJ_DLL *proj_create_argv (PJ_CONTEXT *ctx, int argc, char **argv);
PJ PROJ_DLL *proj_create_crs_to_crs(PJ_CONTEXT *ctx, const char *source_crs, const char *target_crs, PJ_AREA *area);
+PJ PROJ_DLL *proj_create_crs_to_crs_from_pj(PJ_CONTEXT *ctx,
+ PJ *source_crs,
+ PJ *target_crs,
+ PJ_AREA *area,
+ const char* const *options);
PJ PROJ_DLL *proj_normalize_for_visualization(PJ_CONTEXT *ctx, const PJ* obj);
PJ PROJ_DLL *proj_destroy (PJ *P);