diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | src/proj.c | 7 |
2 files changed, 12 insertions, 0 deletions
@@ -1,3 +1,8 @@ +2001-08-11 Frank Warmerdam <warmerdam@pobox.com> + + * src/proj.c: Generate an error message if +proj=latlong is used with + this program. As per bugzilla bug 70. + 2001-06-01 Frank Warmerdam <warmerdam@pobox.com> * makefile.vc: emess.c directly linked into mainline programs. @@ -415,6 +415,13 @@ int main(int argc, char **argv) { if (!(Proj = pj_init(pargc, pargv))) emess(3,"projection initialization failure\ncause: %s", pj_strerrno(pj_errno)); + + if( pj_is_latlong( Proj ) ) + { + emess( 3, "+proj=latlong unsuitable for use with proj program." ); + exit( 0 ); + } + if (inverse) { if (!Proj->inv) emess(3,"inverse projection not available"); |
