From c1803a20f344cba8de23ca5e8c668f0a8463b243 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Sat, 11 Aug 2001 04:02:08 +0000 Subject: disallow +proj=latlong with proj command git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@969 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- src/proj.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/proj.c b/src/proj.c index 6a792f3c..c44775e5 100644 --- a/src/proj.c +++ b/src/proj.c @@ -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"); -- cgit v1.2.3