aboutsummaryrefslogtreecommitdiff
path: root/src/proj.h
diff options
context:
space:
mode:
authorAlan D. Snow <alansnow21@gmail.com>2021-10-05 12:27:28 -0500
committerGitHub <noreply@github.com>2021-10-05 19:27:28 +0200
commit06d299db13f301d261d49558a18aec7a91276bd8 (patch)
tree449b2c7ef6df824b917a40339ae0455e627b89ec /src/proj.h
parentc50ba1b1a7ecde946544c03ab0951727dd87264d (diff)
downloadPROJ-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.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/proj.h b/src/proj.h
index 1af1440f..b378cd00 100644
--- a/src/proj.h
+++ b/src/proj.h
@@ -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);