aboutsummaryrefslogtreecommitdiff
path: root/nad/testvarious
AgeCommit message (Collapse)Author
2018-03-11Add Web Mercator test caseKristian Evers
2018-02-09Relaxing tolerances in a few tests to fix #778.Kristian Evers
2017-10-06Enable default destructor for all PJ objects.Thomas Knudsen
In most cases memory deallocation is completely removed from the code since it can be handled by the default destructor. In a few special cases a local destructor overrides the default destructor and makes sure that locally allocated memored is cleaned up correctly. Move all deallocation from pj_free to pj_default_destructor Rename pj_latlong.c to fit with the conventional format PJ_latlong.c - freeup was missed here due to wrong naming Clean up pj_init to avoid double deallocation; Also resolve #576 by adding z_0 and t_0 options in pj_init, while cleaning Add a prototype for dealloc_params Added missing errno.h include in pj_ctx.c Temporarily removing ob_tran from testvarious, to be sure that is where the trouble is Make PJ_ob_tran.c use proper initialization for the chained projection proj=ob_tran: make it clear, that we disallow ellipsoidal projections, and, for improved backwards compatibility, turns off default settings, which could inject unwanted ellipsoid definitions ... then also remove the ellipsoid definition from the testvarious test case - which is probably buggy anyway Work around cs2cs spherical init bug in testvarious; Forbid defs for ob_tran in pj_init
2016-12-15Horner and helmert (#456)Thomas Knudsen
Introducing the Horner polynomial evaluator also introduces the need for very long +init:tag arguments (a n'th order 2D polynomium has (n+1)(n+2)/2 coefficients, and n is typically in the range 5-10, i.e. up to around 60 coefficients for each polynomium, and there are 4 polynomia in a complete back/forward transformation set). Hence, in this commit, along with the first part of the Horner code, the code for reading +init files has been modified in a (for all practical purposes) backwards compatible way, by making it possible to introduce line continuations by escaping line breaks, i.e. preceding them with a backslash. An escaped line break works (as it would in TeX), by skipping all following whitespace, including interspersed #-comments. This simple extension makes it possible to create very long initialization elements without losing track of the structure (cf. s45b.pol and pj_init_test.c in the examples-directory for a demo). The s45b.pol file was created by hand-editing the output of the software doing the original constrained adjustment for the polynomial coefficients. The simple adding of the “skip following whitespace and comments” feature has made it possible to retain almost all metadata from the source material. This is considered very important, since 1) For the lack of a prior common file format for geodetic polynomial coefficients, there is a good chance that this will become THE standard, at least for the time being, and 2) Without the metadata represented, it will be very hard for a human to debug code involving a slightly misrepresented polynomium. Due to the current architecture of the pj_init.c code (mostly around the fill_buffer() function), it is next to impossible to implement the line continuation functionality in full generality. Hence, it has been necessary to limit this format extension to files smaller than 64 kB. * Correction of spherical HEALpix test case The first HEALpix test case in nad/testvarious is clearly intended to invoke the spherical form of HEALpix. It does, however, specify the spheroid using the +a=1 size parameter, without specifying any shape parameter. But since +no_defs is not specified either, a shape parameter is picked up from the nad/proj_def.dat file (where ellps=WGS84 is given in the <general> section). It appears that this has not happened before I updated the pj_init code to support projection pipelines (see below). I do, however, believe that the present behaviour is the correct one, and rather than retrohacking the pj_init code, to (incorrectly, I believe) reproduce the prior behaviour, I have corrected the test case invocation in nad/testvarious to specify the spheroid using the +R=1 size parameter (which was already used in the following test case). * Repair scaling of projections stomping on value of semimajor axis * Workaround MSVC HUGE_VAL misimplementation. The "return const err object" idiom (i.e. const <type> err = {HUGE_VAL,...}; ... if (bad) return err) is problematic to implement due to MSVC's misimplementation of HUGE_VAL as a non-const. Hence, we need to run-time initialize these. In the pj_inv functions, this was mistakenly done to the wrong object. For pj_fwdobs/invobs and the remaining part of the obs-based API, this is now worked around by providing functions returning a run time HUGE_VAL initialized PJ_OBS or PJ_COO resp. Obnoxious, but given MSVC's market penetration there is really not much else we can do.
2016-12-12Add a scripts/fix_typos.sh script and correct reported errorsEven Rouault
2016-04-04Test revisionsBojan Savric
2016-04-04The Natural Earth II testsBojan Savric
2016-04-04Adding Natural Earth II and Compact MillerBojan Savric
2016-03-27Add Patterson Cylindrical projection. Add tests for projection.Micah Cochran
2016-02-29Add testmbull
2015-12-13add test for hammer projection (forward and inverse)Jeff Whitaker
2015-10-27Tests: Test nzmg forward and inverseEven Rouault
2015-10-27Merge branch 'master' of https://github.com/piyushrpt/proj.4Even Rouault
Conflicts: nad/tv_out.dist
2015-10-24Switch utm to use etmerc to address issue #316.Charles Karney
Add a test to check this. Output of an existing test changed in 7th decimal place.
2015-10-23- API Extension to include fwd3d / inv3dPiyush Agram
- New SCH coordinate system for radar imaging systems
2015-10-05testvarious: shave one digit off the requested output for test bug 244Charles Karney
to ensure that tests succeed.
2015-10-01Take 2 of the fix to dmstor.Charles Karney
I'm making this pull request soon after the release of 4.9.2. It will cause the results that people get out of proj.4 to change very slightly. If there are problems, we'll get a chance to iron them out well before the next release. The important change is to use DEG_TO_RAD for degree to radian conversions in dmstor.c instead of the slightly inaccurate number used earlier. This necessitates a change to geod_interface.c (which previously had to work aroung the previous bad behavior). PJ_aeqd.c now does conversions in a compatible manner. In src/proj_api.h, DEG_TO_RAD and RAD_TO_DEG are both given to 17 significant figures (this is just a cosmetic change). I've "fixed" the testvarious tests so that they still pass (on my system at least). Everyone should be suitably skeptical of my fixes. (1) Minor changes to "Test bug 244" and only ask for nanometer (instead of picometer) accuracy on positions. (2) 2 lon_wrap tests now return 0dE instead of 360dE (now it's tight?) (3) The results for the forward healpix projection of (-180, +90) and (-180, -90) are now different. I have put the new values into tv_out.dist. I'm fairly confident that the new values are OK, since this projection has various cuts which meet at the poles. It would be good if someone who knows about this projection can verify this.
2015-07-07Make pj_init() locale safe and no longer modify locale (#226)Even Rouault
Remove setlocale() use in pj_init_ctx(), and replace uses of atof() & strtod() by their locale safe variants pj_atof() and pj_strtod(). Proj versions from now advertize #define PJ_LOCALE_SAFE 1 in proj_api.h and export pj_atof() & pj_strtod()
2015-03-04move flakey tests into their own script so they aren't run with 'make check' ↵Howard Butler
by default #255 git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2646 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-25another attempt at trimming down the test precision to satisfy i386 #255Howard Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2638 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-24Dial back test sensitivity #255Howard Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2636 4e78687f-474d-0410-85f9-8d5e500ac6b2
2015-02-16apply patch for #247 to support out-of-tree autoconf buildsHoward Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2602 4e78687f-474d-0410-85f9-8d5e500ac6b2
2014-09-17Add clrk80ign ellipsoid and use it in carthage datum definition (#245)Even Rouault
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2553 4e78687f-474d-0410-85f9-8d5e500ac6b2
2014-09-13Apply patch in #244 along with test scenarioHoward Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2520 4e78687f-474d-0410-85f9-8d5e500ac6b2
2014-09-13tweak laea test to be less fragileHoward Butler
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2515 4e78687f-474d-0410-85f9-8d5e500ac6b2
2014-08-19make check: update rHEALPix tests from healpix_nad_test_2013-07-25.patch (#219)Even Rouault
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2486 4e78687f-474d-0410-85f9-8d5e500ac6b2
2014-08-19Add extra test to show need for r2482 (#229)Even Rouault
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2485 4e78687f-474d-0410-85f9-8d5e500ac6b2
2014-02-07avoid mistaken error about missing init file entry (#229)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2418 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-12-09reverse sense of sweep axis flag (#146)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2411 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-12-06add qsc projection (#179)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2409 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-10-21try omerc near poleFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2403 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-10-21Change handling of values nearly 90degrees away from the origin (#114)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2400 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-10-21add MGI datum checkFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2399 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-10-21partially apply realpix improvements (#219)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2397 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-10-20update healpix results, add ob_tran inverse testigFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2387 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-07-09add calcofi projection (#135)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2376 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-07-02replace robinson coefficients table, add test (#113)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2374 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-06-29add LAEA test to testvariousFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2373 4e78687f-474d-0410-85f9-8d5e500ac6b2
2012-03-07fix pconic forward to use P->sig (#148)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2186 4e78687f-474d-0410-85f9-8d5e500ac6b2
2012-03-04added the Natural Earth projectionFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2182 4e78687f-474d-0410-85f9-8d5e500ac6b2
2012-03-03cleanup odd code construct in PJ_stere and extend stere testing a bit (#147)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2180 4e78687f-474d-0410-85f9-8d5e500ac6b2
2012-02-27added +sweep for +proj=geos (#146)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2176 4e78687f-474d-0410-85f9-8d5e500ac6b2
2011-12-14added Healpix projectionFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2125 4e78687f-474d-0410-85f9-8d5e500ac6b2
2011-06-09fix robinson projection constant (#113)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2051 4e78687f-474d-0410-85f9-8d5e500ac6b2
2011-02-21added extended transverse mercator implementation (#97)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1976 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-08-21use ../src/cs2cs for testing by defaultFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1884 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-06-11avoid numerical sensitive about signed zeros in testsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1858 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-02-20add omerc gamma / RSO Borneo test (#62)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1818 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-01-24fix seriously broken lon_wrap support (#62)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1789 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-05-19split datum and non-datum tests, add kav5 test (#40)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1579 4e78687f-474d-0410-85f9-8d5e500ac6b2