aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/proj.c7
1 files changed, 7 insertions, 0 deletions
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");