<div>Hi there,</div>
<div> </div>
<div>Sorry to expand a little bit this thread. I have a vector map with 10 thousands of records, and for each record I have a set of about 10 attributes. Now I would like to generate a raster map from one attribute of vector map. But on vector I have CHAR values like: "Low", "Medium" and "High", and I would like that my raster map get values 1, 2 and 3, respectivelly.</div>
<div> </div>
<div>Any help are welcome.<br></div>
<div>milton</div>
<div>brazil=toronto<br></div>
<div class="gmail_quote">2009/5/18 Micha Silver <span dir="ltr"><<a href="mailto:micha@arava.co.il">micha@arava.co.il</a>></span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">Offenthaler Ivo wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">What would you suggest as the most convenient way to update a small (60 points) vector map? E.g. a map's attribute "pollution_level" for a given point-ID (attribute "sitecode") has to be updated, based on some plain text output (columns "sitecode" and "pollution level") of another software?<br>
<br></blockquote></div>In a command shell, you might find something like this will do it:<br><br>while read sc pl<br> do<br> echo "UPDATE <vect_point_map> SET pollution_level=$pl WHERE sitecode=$sc" | db.execute<br>
done < plain_text_file<br><br>This assumes that the plain_text_file is just two columns, sitecode and pollution_level. You can loop thru the new values any way that's convenient. The line:<br>echo "UPDATE .... WHERE ..." | db.execute<br>
is what does the work.<br>-- <br>Micha<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">Many thanks in advance! Ivo<br><br>_______________________________________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br><br><br></div>This mail was received via Mail-SeCure System.<br><br><br> <br></blockquote>
<div>
<div></div>
<div class="h5"><br>_______________________________________________<br>grass-user mailing list<br><a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br>
</div></div></blockquote></div><br>