[GRASS-CVS] markus: grass6/vector/v.to.db areas.c, 1.10,
1.11 description.html, 1.25, 1.26 parse.c, 1.24, 1.25
grass at intevation.de
grass at intevation.de
Mon Dec 3 17:25:54 EST 2007
Author: markus
Update of /grassrepository/grass6/vector/v.to.db
In directory doto:/tmp/cvs-serv3173
Modified Files:
areas.c description.html parse.c
Log Message:
Dylan Beaudette: document fractal dimension
Index: areas.c
===================================================================
RCS file: /grassrepository/grass6/vector/v.to.db/areas.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- areas.c 2 Dec 2007 13:01:46 -0000 1.10
+++ areas.c 3 Dec 2007 22:25:52 -0000 1.11
@@ -8,6 +8,9 @@
* 2) It reads the perimeter lengths of the areas. If projection is LL, the geodesic distance is used.
* 3) It calculates the compactness using this formula:
* compactness = perimeter / (2 * sqrt(M_PI * area))
+ * 4) It calculates the fractal dimension of the bounding curve:
+ * D_L = 2 * log(perimeter) / log(area)
+ * (See B.B. Mandelbrot, The Fractal Geometry of Nature. 1982.)
*/
int read_areas(struct Map_info *Map)
{
Index: description.html
===================================================================
RCS file: /grassrepository/grass6/vector/v.to.db/description.html,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- description.html 2 Dec 2007 13:01:46 -0000 1.25
+++ description.html 3 Dec 2007 22:25:52 -0000 1.26
@@ -94,7 +94,7 @@
</pre></div>
<p>
-Calculate polygon's Fractal Dimension D based on the formula:
+Compute D<sub>L</sub>, the Fractal Dimension (Mandelbrot, 1982), of the boundary defining a polygon based on the formula:
<br><tt>
D = 2 * (log perimeter) / (log area):<br>
</tt>
@@ -159,6 +159,17 @@
<a href="v.univar.html">v.univar</a>,
<a href="v.what.html">v.what</a>
</em>
+
+
+<h2>REFERENCES</h2>
+
+Mandelbrot, B. B. (1982). The fractal geometry of nature. New York: W. H. Freeman.
+
+<p>
+
+Xu, Y. F. & Sun, D. A. (2005). Geotechnique 55, No. 9, 691-695
+
+
<H2>AUTHOR</H2>
Radim Blazek
Index: parse.c
===================================================================
RCS file: /grassrepository/grass6/vector/v.to.db/parse.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- parse.c 2 Dec 2007 13:01:46 -0000 1.24
+++ parse.c 3 Dec 2007 22:25:52 -0000 1.25
@@ -20,8 +20,8 @@
struct Option *field;
struct Option *qfield;
struct Option *col;
- struct Option *units;
- struct Option *qcol;
+ struct Option *units;
+ struct Option *qcol;
} parms;
struct {
struct Flag *p, *s, *t;
@@ -54,7 +54,7 @@
"area;area size;"
"compact;compactness of an area, calculated as \n"
" compactness = perimeter / (2 * sqrt(PI * area));"
- "fd;fractal dimension of an area, calculated as \n"
+ "fd;fractal dimension of boundary defining a polygon, calculated as \n"
" fd = 2 * (log(perimeter) / log(area));"
"perimeter;perimeter length of an area;"
"length;line length;"
More information about the grass-commit
mailing list