Parcourir la source

Tell user about degree unit for buffers and thresholds in PROJECTION_LL

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@61708 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler il y a 10 ans
Parent
commit
b66a1a1ec3

+ 2 - 0
raster/r.horizon/main.c

@@ -337,6 +337,8 @@ int main(int argc, char *argv[])
 
 
     degreeOutput = flag.degreeOutput->answer;
     degreeOutput = flag.degreeOutput->answer;
 
 
+    if (G_projection() == PROJECTION_LL)
+        G_important_message(_("Note: In latitude-longitude coordinate system specify buffers in degree unit"));
 
 
     elevin = parm.elevin->answer;
     elevin = parm.elevin->answer;
 
 

+ 2 - 2
raster/r.horizon/r.horizon.html

@@ -101,8 +101,8 @@ you use <b>r.horizon</b> in the raster map mode this option will be ignored.
 even if you use geographical coordinates (longitude/latitude). If your 
 even if you use geographical coordinates (longitude/latitude). If your 
 projection is based on distance (easting and northing), these too must 
 projection is based on distance (easting and northing), these too must 
 be in meters. The buffer parameters must be in the same units as the 
 be in meters. The buffer parameters must be in the same units as the 
-raster coordinates.
-
+raster coordinates (e.g., for latitude-longitude locations buffers are
+measured in degree unit).
 
 
 
 
 <h2>METHOD</h2>
 <h2>METHOD</h2>

+ 1 - 1
vector/v.buffer/main.c

@@ -320,7 +320,7 @@ int main(int argc, char *argv[])
 
 
     /* TODO: no geodesic support yet in GEOS */
     /* TODO: no geodesic support yet in GEOS */
     if (G_projection() == PROJECTION_LL)
     if (G_projection() == PROJECTION_LL)
-        G_important_message(_("Note: In latitude-longitude coordinate system distances are in degree units"));
+        G_important_message(_("Note: In latitude-longitude coordinate system specify distances in degree unit"));
 
 
     if ((dista_opt->answer && bufcol_opt->answer) ||
     if ((dista_opt->answer && bufcol_opt->answer) ||
 	(!(dista_opt->answer || bufcol_opt->answer)))
 	(!(dista_opt->answer || bufcol_opt->answer)))

+ 1 - 1
vector/v.clean/main.c

@@ -198,7 +198,7 @@ int main(int argc, char *argv[])
 
 
     /* TODO: threshold might be recalculated with optional geodesic support to meters */
     /* TODO: threshold might be recalculated with optional geodesic support to meters */
     if (G_projection() == PROJECTION_LL)
     if (G_projection() == PROJECTION_LL)
-        G_important_message(_("Note: In latitude-longitude coordinate system threshold in degree units"));
+        G_important_message(_("Note: In latitude-longitude coordinate system specify threshold in degree unit"));
 
 
     /* Read thresholds */
     /* Read thresholds */
     for (i = 0; i < ntools; i++)
     for (i = 0; i < ntools; i++)

+ 1 - 1
vector/v.in.ogr/main.c

@@ -312,7 +312,7 @@ int main(int argc, char *argv[])
 
 
     /* TODO: threshold might be recalculated with optional geodesic support to meters */
     /* TODO: threshold might be recalculated with optional geodesic support to meters */
     if (G_projection() == PROJECTION_LL)
     if (G_projection() == PROJECTION_LL)
-        G_important_message(_("Note: In latitude-longitude coordinate system threshold in degree units"));
+        G_important_message(_("Note: In latitude-longitude coordinate system specify threshold in degree unit"));
 
 
     OGRRegisterAll();
     OGRRegisterAll();