diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2019-08-22 22:52:48 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2019-08-23 21:49:40 +0200 |
| commit | 11869e2c4d29f0e607a0f78fb289d253fccd9a16 (patch) | |
| tree | 5b8be1637f9272b8b3ddb4a6280b6207389fbf4f /src/proj.h | |
| parent | b7f829ce8f7c9fce2934b3981493a5d3338143b9 (diff) | |
| download | PROJ-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); |
