Browse Source

longin without latin is valid if civiltime is used

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38773 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman 16 years ago
parent
commit
ae04122d88
1 changed files with 3 additions and 1 deletions
  1. 3 1
      raster/r.sun/main.c

+ 3 - 1
raster/r.sun/main.c

@@ -744,7 +744,9 @@ int main(int argc, char *argv[])
     if ((latin != NULL || longin != NULL) && (G_projection() == PROJECTION_LL))
 	G_warning(_("latin and longin raster maps have no effect when in a Lat/Lon location"));
 	/* true about longin= when civiltime is used? */
-    if ((latin == NULL && longin != NULL) || (latin != NULL && longin == NULL))
+	/* civiltime needs longin= but not latin= for non-LL projections -
+	     better would be it just use pj_proj() if it needs those?? */
+    if (latin != NULL && longin == NULL)
 	G_fatal_error(_("Both latin and longin raster maps must be given, or neither"));
 
 /**********end of parser - ******************************/