diff options
| author | Alan D. Snow <alansnow21@gmail.com> | 2021-10-05 12:27:28 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-05 19:27:28 +0200 |
| commit | 06d299db13f301d261d49558a18aec7a91276bd8 (patch) | |
| tree | 449b2c7ef6df824b917a40339ae0455e627b89ec /src/proj.h | |
| parent | c50ba1b1a7ecde946544c03ab0951727dd87264d (diff) | |
| download | PROJ-06d299db13f301d261d49558a18aec7a91276bd8.tar.gz PROJ-06d299db13f301d261d49558a18aec7a91276bd8.zip | |
Add proj_trans_bounds to compute the image of a input bounding box through a transformation (#2882)
Fixes #2779
Diffstat (limited to 'src/proj.h')
| -rw-r--r-- | src/proj.h | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -599,7 +599,22 @@ size_t PROJ_DLL proj_trans_generic ( double *z, size_t sz, size_t nz, double *t, size_t st, size_t nt ); - +/*! @endcond */ +int PROJ_DLL proj_trans_bounds( + PJ_CONTEXT* context, + PJ *P, + PJ_DIRECTION direction, + const double xmin, + const double ymin, + const double xmax, + const double ymax, + double* out_xmin, + double* out_ymin, + double* out_xmax, + double* out_ymax, + int densify_pts +); +/*! @cond Doxygen_Suppress */ /* Initializers */ PJ_COORD PROJ_DLL proj_coord (double x, double y, double z, double t); |
