[GRASS-SVN] r68133 - grass/branches/releasebranch_7_0/vector/v.to.db
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 24 08:02:05 PDT 2016
Author: mlennert
Date: 2016-03-24 08:02:05 -0700 (Thu, 24 Mar 2016)
New Revision: 68133
Modified:
grass/branches/releasebranch_7_0/vector/v.to.db/areas.c
Log:
v.to.db: allow (unitless) calculation of perimeter in XY location (backport from trunk)
Modified: grass/branches/releasebranch_7_0/vector/v.to.db/areas.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.to.db/areas.c 2016-03-24 14:55:13 UTC (rev 68132)
+++ grass/branches/releasebranch_7_0/vector/v.to.db/areas.c 2016-03-24 15:02:05 UTC (rev 68133)
@@ -40,7 +40,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