aboutsummaryrefslogtreecommitdiff
path: root/src/cs2cs.c
AgeCommit message (Collapse)Author
2018-11-22Rename cs2cs.c to cs2cs.cpp with minimal changes to make it compileEven Rouault
2018-10-16Move struct definitions for proj_list_* functions to proj.hKristian Evers
With projects.h not being available to outside users anymore we need to define PJ_UNITS, PJ_ELLPS, PJ_PRIME_MERIDIANS and PJ_OPERATIONS elsewhere. Related pj_get_*_ref() functions have been removed in favour of their proj_ namespaced counterparts. char pointers have been changed to const char pointers. Resolves #983 Resolved #1147 Make char pointers const
2018-09-07cs2cs: Always convert to degrees when angular output is received (#1112)Kristian Evers
Previous to this commit cs2cs did not convert angular output to degrees when using operations setting PJ->right = PJ_IO_UNITS_ANGULAR. This commit adopts the conventions used after the introduction of pipelines. In practice, this allows the following and similar transformations to output in degrees and not radians: ``` echo 37.3916666667 -6.9325000 | cs2cs +proj=latlong +ellps=clrk80 \ +to +proj=molodensky +ellps=clrk80 +da=-112.145 +df=-0.54750714e-4 \ +dx=-175 +dy=-23 +dz=-303 37.39 -6.93 -8.2 ```
2018-09-05Add -d option to proj, cs2cs and cct (#1109)Søren Holm
Specify number of decimals to display when transforming coordinates with either proj, cs2cs or cct.
2018-05-15IWYU: Partial PJ_natearth.c..rtodms.cKurt Schwehr
2018-03-12Fix 'Consecutive return, break, continue, goto or throw statements are ↵Even Rouault
unnecessary' cppcheck warnings
2018-03-12Fix 'Either the condition 'fromProj!=0' is redundant or there is possible ↵Even Rouault
null pointer dereference: fromProj' cppcheck warning
2017-12-17Declare non-local variables as const where possibleAaron Puchert
Having non-const variables of static lifetime or even global scope is usually a bad idea. These variables are inherently constants, and this should be enforced. This required marking some functions as not modifying input parameters and marking some pointers as pointers to const. One advantage is that the compiler usually puts const static variables in a read-only code segment, so they can't be modified physically. This can be verified with `nm` (on POSIX systems). To avoid changes to the public API, functions returning non-const pointers to data tables were left intact, but the returned data may not be modified. Internally we prefer using the proj_list_* functions over the pj_get_*_ref functions, because the former return const pointers.
2017-02-26Raise MSVC warning level to /W4Even Rouault
2017-02-26Fix warnings related to -Wshadow -Wnull-dereference -Wfloat-conversionr ↵Even Rouault
-Wmissing-prototypes -Wmissing-declarations
2016-12-12Add a scripts/fix_typos.sh script and correct reported errorsEven Rouault
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-05-31Remove unused $Id$ keywords.Elliott Sales de Andrade
2015-05-30Remove unused variables.Elliott Sales de Andrade
2013-10-20Support -I when no +to projection is provideDFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2388 4e78687f-474d-0410-85f9-8d5e500ac6b2
2012-02-21Use parenthesis around assignments in if statements (#123).Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2163 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-06-11preliminary implementation of projCtx APIFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1854 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-03-03various improvements to error handling so corrupt grids are reported (#66)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1828 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-01-06removed CVS log messages since they are not maintained by subversionFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1504 4e78687f-474d-0410-85f9-8d5e500ac6b2
2008-04-24implement extra text passthrough per email on list for cs2csFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1445 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-10-10 Increase MAX_LINE to 1000 per request from Dan Scheirer.Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1352 4e78687f-474d-0410-85f9-8d5e500ac6b2
2006-03-30bug 1145: avoid warnings on VC8.Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1329 4e78687f-474d-0410-85f9-8d5e500ac6b2
2004-10-28avoid using global variables from DLLFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1255 4e78687f-474d-0410-85f9-8d5e500ac6b2
2003-03-25modified so that -f formats are used for Z as wellFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1119 4e78687f-474d-0410-85f9-8d5e500ac6b2
2002-12-09added prime meridian supportFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1041 4e78687f-474d-0410-85f9-8d5e500ac6b2
2002-11-19cleanup before exit to facilitate memory leak testingFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1038 4e78687f-474d-0410-85f9-8d5e500ac6b2
2001-04-05use projPJ, and pj_is_latlong()Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@940 4e78687f-474d-0410-85f9-8d5e500ac6b2
2001-04-05use pj_latlong_from_projFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@928 4e78687f-474d-0410-85f9-8d5e500ac6b2
2001-02-03removed some unavailable options from usage stringFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@899 4e78687f-474d-0410-85f9-8d5e500ac6b2
2000-07-06NewFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@848 4e78687f-474d-0410-85f9-8d5e500ac6b2