<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    <br>
    <br>
    -------- Original Message --------
    <table class="moz-email-headers-table" border="0" cellpadding="0"
      cellspacing="0">
      <tbody>
        <tr>
          <th align="RIGHT" valign="BASELINE" nowrap="nowrap">Subject: </th>
          <td>Re: [GRASS-user] Length of a political boundary</td>
        </tr>
        <tr>
          <th align="RIGHT" valign="BASELINE" nowrap="nowrap">Date: </th>
          <td>Mon, 04 Apr 2011 07:48:02 +0530</td>
        </tr>
        <tr>
          <th align="RIGHT" valign="BASELINE" nowrap="nowrap">From: </th>
          <td>ambijat <a class="moz-txt-link-rfc2396E" href="mailto:ambijat@hotmail.com">&lt;ambijat@hotmail.com&gt;</a></td>
        </tr>
        <tr>
          <th align="RIGHT" valign="BASELINE" nowrap="nowrap">To: </th>
          <td>Hamish <a class="moz-txt-link-rfc2396E" href="mailto:hamish_b@yahoo.com">&lt;hamish_b@yahoo.com&gt;</a></td>
        </tr>
      </tbody>
    </table>
    <br>
    <br>
    <pre>No, Hamish,
This is not the case as I see it. My fundamental method is as follows:
1. in a 3x3 matrix of neighbours analysis I want to fit in one worthy 
formula.
2. For every such matrix there are going to be at least 3 non-zero 
values and 6 zero values.
3. as we know that c^2 = a^2 + b^2, i would be counting on a = elevation 
difference between the two adjacent cells, and b = 90 meters, which is 
the resolution of the cell.
4. So, c values for each such set of two adjacent cells can be 
calculated, and a sum of all such values which are actually hypotenuse 
values would give me more accurate value of the total length of the 
boundary.

This is a kind of algorithm I have in mind. Anybody who can translate 
into formula?
Thanks!

Ambrish

On 4/4/2011 5:07 AM, Hamish wrote:
&gt; ambijat wrote:
&gt;&gt; I have a typical problem. I have extracted the raster
&gt;&gt; boundary line from SRTM data. each cell contains the
&gt;&gt; elevation value. Idealll\y speaking the total length of a
&gt;&gt; boundary would be the some of the cells x cell resolution
&gt;&gt; (90m). But, this is not true to actual boundary length as
&gt;&gt; there are elevation in mountainous regions.
&gt;&gt;
&gt;&gt; So, I need to add all the hypotenuse values of the cells.
&gt;&gt; How can it be done any idea ?
&gt; you can do lots of refinement, but fundamentally it's a fractal problem
&gt; with no real answer,
&gt; see
&gt; <a class="moz-txt-link-freetext" href="http://en.wikipedia.org/wiki/How_Long_Is_the_Coast_of_Britain%3F_Statistical_Self-Similarity_and_Fractional_Dimension">http://en.wikipedia.org/wiki/How_Long_Is_the_Coast_of_Britain%3F_Statistical_Self-Similarity_and_Fractional_Dimension</a>
&gt;
&gt; the 2D plan-area within a boundary will converge on a single answer though
&gt; as you make dx smaller and smaller. also within a single constant dataset
&gt; you can compare one area to another ("this edge is x% of the total
&gt; boundary").
&gt;
&gt; v.to.rast + v.to.db may give you an answer, but I won't use it.
&gt;
&gt;
&gt; see also the r.surf.area and r.volume modules, which are slightly different
&gt; creatures in the same family of problem.
&gt;
&gt;
&gt; Hamish
&gt;
&gt;
&gt;

</pre>
  </body>
</html>