[GRASS-SVN] r68132 - grass/trunk/vector/v.to.db

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 24 07:55:13 PDT 2016


Author: mlennert
Date: 2016-03-24 07:55:13 -0700 (Thu, 24 Mar 2016)
New Revision: 68132

Modified:
   grass/trunk/vector/v.to.db/areas.c
Log:
v.to.db: allow (unitless) calculation of perimeter in XY location


Modified: grass/trunk/vector/v.to.db/areas.c
===================================================================
--- grass/trunk/vector/v.to.db/areas.c	2016-03-24 14:12:07 UTC (rev 68131)
+++ grass/trunk/vector/v.to.db/areas.c	2016-03-24 14:55:13 UTC (rev 68132)
@@ -38,7 +38,7 @@
 	if ((options.option == O_COMPACT) || (options.option == O_FD) ||
 	    (options.option == O_PERIMETER)) {
 	    perimeter = Vect_get_area_perimeter(Map, area_num);
-	    if (G_projection() != PROJECTION_LL)
+	    if (G_projection() != PROJECTION_LL && G_projection() != PROJECTION_XY)
 		    perimeter = perimeter * G_database_units_to_meters_factor();
 	}
 



More information about the grass-commit mailing list