FortranGIS
Version2.5
|
Fortran 2003 interface to the proj.4 https://github.com/OSGeo/proj.4 library. More...
Data Types | |
interface | pj_associated |
Test whether an opaque object is valid. More... | |
interface | pj_init_plus |
Initialize a projection from a string. More... | |
type | pj_object |
Object describing a cartographic projection. More... | |
type | pjuv_object |
Object describing a coordinate pair. More... | |
Functions/Subroutines | |
logical function | pj_associated_object (arg1, arg2) |
Test whether the result of a pj_init_plus is a valid projection. More... | |
integer(kind=c_int) function | pj_transform_f (src, dst, x, y, z) |
Fortran version of pj_transform proj API function. More... | |
integer(kind=c_int) function | pj_datum_transform_f (src, dst, x, y, z) |
Fortran version of pj_datum_transform proj API function. More... | |
integer(kind=c_int) function | pj_geocentric_to_geodetic_f (a, es, x, y, z) |
Fortran version of pj_geocentric_to_geodetic proj API function. More... | |
integer(kind=c_int) function | pj_geodetic_to_geocentric_f (a, es, x, y, z) |
Fortran version of pj_geodetic_to_geocentric proj API function. More... | |
Variables | |
type(pj_object), parameter | pj_object_null =pj_object(C_NULL_PTR) |
Object representing a null cartographic projection. More... | |
real(kind=c_double), parameter | pj_deg_to_rad =.0174532925199432958D0 |
equivalent to the C api symbol DEG_TO_RAD More... | |
real(kind=c_double), parameter | pj_rad_to_deg =57.29577951308232D0 |
equivalent to the C api symbol RAD_TO_DEG More... | |
Fortran 2003 interface to the proj.4 https://github.com/OSGeo/proj.4 library.
The following functions are directly interfaced to their corresponding C version, so they are undocumented here, please refer to the original gdal C API documentation, e.g. at the address https://github.com/OSGeo/proj.4/wiki/ProjAPI , for their use:
Notice that, if relevant, the result of functions returning an integer has to be interpreted as 0=false, nonzero=true or 0=ok, nonzero=error.
Some of these functions have also a more Fortran-friendly interface explicitely documented here, with an _f appended to the name.
For an example of application of the proj module, please refer to the following test program, which performs a forward and backward transformation: