aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-08-30urm5: fix memory leaks in error code paths of initialization. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3235. Credit to OSS Fuzz
2017-08-29Release candidate for geodesic library version 1.49.Charles Karney
Only substantial changes are (1) testing the HAVE_C99_MATH flag and acting accordingly and (2) adding a couple of tests.
2017-08-29Add myself to AUTHORSEven Rouault
2017-08-29PJ_horner.c: fix memory leaks. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=3204. Credit to OSS Fuzz
2017-08-21Added myself and Kristian Evers to AUTHORS file; Removed attribution … (#558)Thomas Knudsen
* Added myself and Kristian Evers to AUTHORS file; Removed attribution for my 1999 contribution from proj.c * Add missing lf before eof
2017-08-20Merge pull request #553 from edechaux/masterEven Rouault
Fix the Solaris 11.3 compilation error
2017-08-20PJ_aea.c: fix memory leak in error code path. Fixes ↵Even Rouault
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2723. Credit to OSS Fuzz
2017-08-14Merge pull request #556 from lukecampbell/masterKristian Evers
Uses the mathjax formatting for geodesic equations
2017-08-14Merge pull request #557 from mwtoews/patch-1Kristian Evers
Fix ITRF2014
2017-08-14Fix ITRF2014Mike Toews
2017-08-13Merge pull request #555 from cffk/c99-math-testCharles Karney
Add tests for C99 math functions, hypot, atanh, cbrt, etc. -DHAVE_C99_MATH=1 is provided if these functions are available. This will be used by the next release of geodesic.c.
2017-08-11Uses the mathjax formatting for geodesic equationsLuke Campbell
The equations on the documentation page for geodesics were plaintext formatting and also contained a typo. This patch updates the formatting to use the sphinx supported MathJax syntax and corrects the typo.
2017-08-07Add ITRF init files (#552)Kristian Evers
* Add ITRF init files, that makes it easy to use ITRF transformations in pipelines * Added ITRF* files to the build systems
2017-08-07Adding info functions to proj.h API. (#551)Kristian Evers
* Adding info functions to proj.h API. Four new functions are added with this commit: proj_info(), proj_pj_info(), proj_grid_info() and proj_init_info(). Additionally four new data types are added: PJ_INFO, PJ_PROJ_INFO, PJ_GRID_INFO and PJ_INIT_INFO. The functions return the corresponding data types. These functions allows users of the PROJ.4 library to get information about various PROJ.4 entities and the library itself. The new data types are structs that contain specific information about either the library instance, a PJ instance, a grid or an init file. Together the four new functions cover a big part of the functionality in the semi-public projects.h API and should hopefully make it easier for user to migrate their code to the proj.h API in the future. Besides covering already existing functionality in the old API, this commit introduces the ability to add metadata to init-files. This is primarily added to give users a way of knowing which version of the EPSG database they are using, but it also comes in handy for other init-files. The init-file metadata is added directly to the init-file as a special "projection" called "metadata". The info projection of the epsg init-file is thus described as: <metadata> +version=9.0.0 +origin=EPSG +lastupdate=2017-01-10 The proj_init_info() function uses the internal pj_param() to read the metadata. As a consequence, "metadata" will not be available as a the name of a projection in the future. This is a reasonable price to pay considering the ease of the implementation of adding metadata to init-files this way, and of course that "metadata" is a very unlikely name for a projection in any case. A metadata tag has been added to all init-files in the nad-directory. For most only a subset of the possible parameters has been added. * Replaced calls to sprintf and strncpy with safer options. Added pj_strlcpy for internal use. * Fail gracefully when getting non-initialized PJ in proj_pj_info() * Change length of filename member in PJ_INIT_INFO and PJ_GRID_INFO to 260 (MAX_PATH)
2017-08-06Fix typo in CMakeLists.txtCharles Karney
2017-08-06Add tests for C99 math functions, hypot, atanh, cbrt, etc.Charles Karney
This tests whether the functions are declared in <math.h>. If they are, then -DHAVE_C99_MATH=1 is added to the C flags. The intention is that this flag is only seen when building proj.4 and shouldn't be referenced in any of the installed include files. The next update to geodesic.c will use this flag. Left unaddressed is what to do if HAVE_C99_MATH is 0. The strategy in geodesic.c is to assume that the missing functions will need to be defined explicitly. A less safe alternative is to assume that the functions are in fact available in libm and that all that needs to be done is to declare the functions.
2017-08-04Merge pull request #525 from kbevers/betterplotsKristian Evers
Better plots for documentation
2017-08-04Updated figures on most projection doc-pages.Kristian Evers
2017-08-04Optimize and fix errors in plot interpolation.Elliott Sales de Andrade
Use NumPy functions a bit more and avoid using np.append too much. The previous code did not ensure that interpolated points were less than the tolerance apart.
2017-08-04Make better use of numpy and matplotlib.Elliott Sales de Andrade
2017-08-04Specify PROJ_LIB when generating plots.Elliott Sales de Andrade
Otherwise, it will try to use pre-installed data instead of a local copy.
2017-08-04Updated plotting mechanism radically.Kristian Evers
Plotting script is now more flexible and makes it possible to do more elaborate setup of each individual plot. This is done by adding a JSON file that holds a record for each plot in the documentation. A plot can now be restricted to a given bounding box, and there's a choice between plotting as polygons or linestrings, as well as both low and medium resolution data to go choose from. Plots have not been added to the repository yet, they will show up in a later commit although most of the work is done here. Most plots are now done as polygons. Generally speaking the plots that are still based on line data have show some problems when plotted as polygons. There is still an unsolved wrap-around problem that should eventually be fixed. The land.geosjson dataset has been densified manually at the antartic to make sure that the land mass is depicted correctly in projected space.
2017-08-04Fix the Solaris 11.3 compilation erroredechaux
When _XOPEN_SOURCE 500 is defined on Solaris 11 the following error message is displayed : "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications" As pthread_mutexattr_settype is available without _XOPEN_SOURCE defined, the easier way to fix the error is to disable it.
2017-07-25Expose pj_factors and pj_deriv in public API. (#546)Kristian Evers
Expose pj_factors and pj_deriv in public API. proj_derivatives() and proj_factors() has been introduced to the public proj.h API. The new functions are simply wrappers for the original functions. The h argument of the two functions has been omitted in the new wrappers as it does not seem to be used very much (if at all?).
2017-07-18Merge pull request #548 from kbevers/remove-error-macrosKristian Evers
Eliminated *_ERROR* macros.
2017-07-18Expanded *_ERROR* macros.Kristian Evers
Expanded *_ERROR* macros with calls to proj_errno_set() and proper returns when necessary. Defined a bunch of new PJD_ERR_ constants in projects.h that corresponds to the error numbers in pj_strerrno.c. A few unknown error numbers were replaced by existing ones in pj_strerrno.c.
2017-07-18Added datum grid archive to Download page and updated link on Grids page.Kristian Evers
2017-07-18Merge pull request #547 from kbevers/hypot-ansi-safeKristian Evers
Make sure to use custom hypot() when building as ANSI C
2017-07-14Make sure to use custom hypot() when building as ANSI C (not defined before ↵Kristian Evers
C99).
2017-07-13Merge pull request #545 from kbevers/lcc-convergenceKristian Evers
Correcting convergence formula for LCC. Fixes #16.
2017-07-13Correcting convergence formula for LCC. Fixes #16.Kristian Evers
2017-07-13Merge pull request #544 from kbevers/api-functionsKristian Evers
Adding more functions to the proj.h API
2017-07-13Add proj_dmstor() and proj_rtodms() to proj.h API. Resolves #172.Kristian Evers
2017-07-13Added proj_has_inverse(). Fixes #155.Kristian Evers
2017-07-13Implemented proj_transform_coord() and proj_transform_obs()Kristian Evers
2017-07-13Implemented proj_obs()Kristian Evers
2017-07-13Implemented proj_create_crs_to_crs()Kristian Evers
2017-07-10Introducing the Molodensky transform (#541)Kristian Evers
2017-07-07obs_api revision and improvements: new namespace etc. (#530)Thomas Knudsen
* obs_api revision and improvements: new namespace etc. * Minor corrections: use unused functions, add missing prototype, added fwd/invcoord to PJ * Minor correction: MSVC barfs on va_arg type specification. Trying once more with added parens * Reverting paren correction, which appears to be a non-solution * Significant improvements to the OBS_API, plus a number of corrections, mostly in test code, to reflect API changes * Added two missing prototypes * Adding the proj_transform function and some related checks * Improvements to proj_transform etc. based on suggestions from Even Rouault * Reducing the libc include footprint of proj.h - again based on suggestions from Even Rouault * A few minor corrections * Eliminate a MSVC warning about non-initialized usage. Not an actual issue, as another check has locked the path, but at least this should calm down MSVC * Improved support for the errno reset/restore paradigm * Introduced the internal header proj_internal.h; Moved most non-API stuff from pj_obs_api.c to pj_internal.c * Adding proj_internal.h to HEADERS_LIBPROJ to solve build problems * Correcting a few pj...proj blunders in PJ_pipeline.c * Correcting a few additional blunders in PJ_pipeline.c * Changed angle-brackets to quotation marks in includes of proj_internal.h * Some minor build system repairs * Some PJ_CONTEXT usage simplifications following suggestions by Kristian Evers @kbevers * Added version numbering to proj.h - Fixes #529 * remove proj_errno_restore macro, provide function implementation * Add proj_get_definition. Fixes #538 * Added library specific deallocator proj_buffer_free, eliminating a potential cross heap issues on Windows. Thx to Even Rouault for spotting this * Got rid of a meaningless cast in proj_buffer_free * Added some missing functions to proj.def (again spotted by @rouault); removed some not-yet-implemented material from proj.h * Renamed proj_get_definition/proj_buffer_free to proj_definition_create/proj_definition_destroy, for symmetry and clarity * Renaming the definition handlers to proj_definition_retrieve / proj_free * Renaming proj_free to proj_release
2017-07-05Merge pull request #527 from kbevers/issue-526Kristian Evers
Correct calculation of meridian convergence for non-conformal projections
2017-07-05Respect -r flag when calling proj with -V. Fixes #184.Kristian Evers
2017-07-05Let pj_init() expand more than one +init argument.Kristian Evers
With the introduction of transformation pipelines it is now a valid use case to have more than one +init argument in a proj string. This commit makes sure that all +init's are expanded. Added test case to PJ_pipeline.c for use of multiple +init's in a proj-string. Fixes #479.
2017-06-29point to fetch of correct PDF for doc deploymentHoward Butler
2017-06-29Get PDF build output with Sphinx healthy (#533)Howard Butler
* Get PDF build output with Sphinx healthy * copy pdf to branch for upload on website
2017-06-29link to Proj.4 mailing list #531 (#532)Howard Butler
2017-06-22Use *pj_get_errno_ref() instead of pj_errno because it seems pj_errno is not ↵Kristian Evers
set correctly on some versions of VS. Fixes #484.
2017-06-21Correct calculation of meridian convergence for non-conformal projections. ↵Kristian Evers
Fixes #526.
2017-06-21Reformatting files before making functional changes. Getting rid of old ↵Kristian Evers
coding style and mixed whitespace.
2017-06-13Merge pull request #524 from rouault/fix_memleak_in_vgridshiftEven Rouault
PJ_vgridshift.c: fix memleak in initialization if grid loading fail
2017-06-13PJ_vgridshift.c: fix memleak in initialization if grid loading failEven Rouault
When gridloading fail for one grid, but return a gridlist, we leak the grid list array. Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=2230. Credit to OSS Fuzz