<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><div id="yiv700800032"><table id="yiv700800032bodyDrftID" class="yiv700800032" border="0" cellpadding="0" cellspacing="0"><tbody><tr><td id="yiv700800032drftMsgContent" style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; font-family: arial; font-size: 10pt;"> Micha & Markus, thanks for the tips, I will try r.mapcalc to extract the borders by color; you confirmed my concern that the hashing and other artifacts may alter the final result. If I can't get it to work, I may just start from scratch with v.digit.<br><br>--- On <b>Tue, 11/9/10, Micha Silver <i><micha@arava.co.il></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Micha Silver <micha@arava.co.il><br>Subject: Re:
[GRASS-user] r.thin ?<br>To: "charlie" <carowan@yahoo.com><br>Cc: grass-user@lists.osgeo.org<br>Date: Tuesday, November 9, 2010, 1:53 PM<br><br><div id="yiv700800032yiv1761263796">
<title></title>
On 11/09/2010 06:21 PM, charlie wrote:
<blockquote type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font: inherit;" valign="top">
<div id="yiv700800032yiv1761263796yiv1699634914">
<table id="yiv700800032yiv1761263796yiv1699634914bodyDrftID" class="yiv700800032yiv1761263796yiv1699634914" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv700800032yiv1761263796yiv1699634914drftMsgContent" style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; font-family: arial; font-size: 10pt;">
<div id="yiv700800032yiv1761263796yiv1699634914yiv1442764382">
<table id="yiv700800032yiv1761263796yiv1699634914yiv1442764382bodyDrftID" class="yiv700800032yiv1761263796yiv1699634914yiv1442764382" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv700800032yiv1761263796yiv1699634914yiv1442764382drftMsgContent" style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; font-family: arial; font-size: 10pt;">
<div id="yiv700800032yiv1761263796yiv1699634914yiv1442764382yiv1727622015">
<table id="yiv700800032yiv1761263796yiv1699634914yiv1442764382yiv1727622015bodyDrftID" class="yiv700800032yiv1761263796yiv1699634914yiv1442764382yiv1727622015" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv700800032yiv1761263796yiv1699634914yiv1442764382yiv1727622015drftMsgContent" style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; font-family: arial; font-size: 10pt;">Micha
and Achim, thank you for the replies. In response to your questions, I
am trying to convert a raster map (a scanned & georeferenced map
with only XY data) with a shoreline and some wetland islands into a
vector map so I can compare gains/losses over time.<br>
<br>
A preview of the map is here:
<a rel="nofollow" class="yiv700800032yiv1761263796moz-txt-link-freetext" target="_blank" href="http://historicalcharts.noaa.gov/tiled_jpgs_done/zoomifyURLDrivenWebPage.htm?zoomifyImagePath=579-12-1929">http://historicalcharts.noaa.gov/tiled_jpgs_done/zoomifyURLDrivenWebPage.htm?zoomifyImagePath=579-12-1929</a><br>
<br>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</blockquote>
<br>
So what you want is the boundaries of the islands? I think that in
order to extract this from the image, you'll have to do some
pre-processing of the image - you need the raster to show only the
boundaries, and everything else should be 0. From the r.thin man page:<br>
"r.thin assumes that linear features are encoded with positive values
on a background of 0's in the input raster data file. "<br>
So you'll have to query the image for the color value of the boundary
lines, then use an r.mapcalc expression to get only those raster pixels
and set everything else to 0. This might get very tedious since it
seems all the text and horizontal hashing lines are the same color as
the boundary lines....<br>
If you succeed to separate the boundaries, then run the resulting
raster thru r.thin, and finally convert to vector.<br>
<br>
<blockquote type="cite">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="font: inherit;" valign="top">
<div id="yiv700800032yiv1761263796yiv1699634914">
<table id="yiv700800032yiv1761263796yiv1699634914bodyDrftID" class="yiv700800032yiv1761263796yiv1699634914" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv700800032yiv1761263796yiv1699634914drftMsgContent" style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; font-family: arial; font-size: 10pt;">
<div id="yiv700800032yiv1761263796yiv1699634914yiv1442764382">
<table id="yiv700800032yiv1761263796yiv1699634914yiv1442764382bodyDrftID" class="yiv700800032yiv1761263796yiv1699634914yiv1442764382" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv700800032yiv1761263796yiv1699634914yiv1442764382drftMsgContent" style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; font-family: arial; font-size: 10pt;">
<div id="yiv700800032yiv1761263796yiv1699634914yiv1442764382yiv1727622015">
<table id="yiv700800032yiv1761263796yiv1699634914yiv1442764382yiv1727622015bodyDrftID" class="yiv700800032yiv1761263796yiv1699634914yiv1442764382yiv1727622015" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td id="yiv700800032yiv1761263796yiv1699634914yiv1442764382yiv1727622015drftMsgContent" style="font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; font-family: arial; font-size: 10pt;">The
command I used is as follows:<br>
r.thin input=NOAA1929 output=NOAA1929THIN iterations=6000 <br>
<br>
I have tried r.thin with 1000 iterations, which did successfully thin
the lines down to the features borders quite well, however only 50% of
the map was completed.<br>
<br>
I bumped the iterations up to 6000, it completed in 4200, but it seemed
that it thinned the entire map down to a 1px line.<br>
<br>
Thanks<br>
<br>
--- On <b>Tue, 11/9/10, Micha Silver <i><a rel="nofollow" class="yiv700800032yiv1761263796moz-txt-link-rfc2396E"><micha@arava.co.il></a></i></b>
wrote:<br>
<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>
From: Micha Silver <a rel="nofollow" class="yiv700800032yiv1761263796moz-txt-link-rfc2396E"><micha@arava.co.il></a><br>
Subject: Re: [GRASS-user] r.thin ?<br>
To: "charlie" <a rel="nofollow" class="yiv700800032yiv1761263796moz-txt-link-rfc2396E"><carowan@yahoo.com></a><br>
Cc: <a rel="nofollow" class="yiv700800032yiv1761263796moz-txt-link-abbreviated">grass-user@lists.osgeo.org</a><br>
Date: Tuesday, November 9, 2010, 5:24 AM<br>
<br>
<div class="yiv700800032yiv1761263796yiv1699634914yiv1442764382yiv1727622015plainMail">charlie wrote:<br>
<br>
> Hi. I am currently using Grass 6.4 on linux and beginning the the
process of vectorizing an old NOAA raster map with r.thin. The map is
approximately 12,000 pixels by 8,000 pixels wide.<br>
> <br>
> According to this post, ( <a rel="nofollow" target="_blank" href="http://osgeo-org.1803224.n2.nabble.com/r-thin-td2718260.html#a2718260">http://osgeo-org.1803224.n2.nabble.com/r-thin-td2718260.html#a2718260</a>
)the iteration variable has to be equal or larger than half the number
of cells of the wider line so I increased the iterations to 6,000, and
it would up finishing in approximately 4,200 passes.<br>
> <br>
> Previously, I was getting excellent preliminary results, with
fewer (1,000) iterations, distinct features were visible, however at
least 50% of the map was not completed. <br>
> Now with an increase to 6,000 iterations r.thin completes, but the
results are a single 1px wide horizontal line. Im sure I am
overlooking something relatively simple; can anyone give me any advice
on how to best run r.thin in this particular case?<br>
> <br>
<br>
What is it you are trying to do? The r.thin module is designed to make
line features in a raster exactly one pixel wide so that when
converting to a line vector, the line will be clean.<br>
If you run r.thin on a raster that represents areas, and give a high
enough iteration value, the areas will eventually be reduced to lines.<br>
<br>
> <br>
> Thanks!<br>
> <br>
> Charlie<br>
> <br>
> <br>
> <a href=<a rel="nofollow" class="yiv700800032yiv1761263796moz-txt-link-rfc2396E" target="_blank" href="http://www.wetlandresearch.com">"http://www.wetlandresearch.com"</a>>Wetlands</a><br>
> <br>
> <br>
> This mail was received via Mail-SeCure System.<br>
>
------------------------------------------------------------------------<br>
> <br>
> _______________________________________________<br>
> grass-user mailing list<br>
> <a rel="nofollow">grass-user@lists.osgeo.org</a><br>
> <a rel="nofollow" target="_blank" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
> <br>
> This mail was received via Mail-SeCure System.<br>
> <br>
> <br>
> <br>
<br>
</div>
</blockquote>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<br>
This mail was received via Mail-SeCure System.<br>
</blockquote>
<br>
<br>
<pre class="yiv700800032yiv1761263796moz-signature">--
Micha Silver
Arava Development Co. +972-52-3665918
<a rel="nofollow" class="yiv700800032yiv1761263796moz-txt-link-freetext" target="_blank" href="http://www.surfaces.co.il">http://www.surfaces.co.il</a>
</pre>
</div></blockquote></td></tr></tbody></table></div></td></tr></table>