I would rather rasterize at different grain size the same vector layer and then vectorize it. Just using g.region, v.to.rast, and r.to.vect respectively<br><br>Best<br><br><br><div class="gmail_quote">On Mon, Jun 16, 2008 at 10:10 AM, Jonathan Aguero-Valverde &lt;<a href="mailto:jua130@psu.edu">jua130@psu.edu</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Martin,<br>
I think using vectors and some scripting will be the way to go here.<br>
<br>
A simple script should be something like this:<br>
1. create a new polygon vector with v.edit<br>
2. for each point in your points vector get the x and y coords &nbsp;(v.to.db or maybe v.report)<br>
3. calculate the vertices of your polygon based on the x and y coords.<br>
4. Add new feature with v.edit<br>
5. add vertices to feature with v.edit.<br>
6. repeat for each point in points vector layer.<br>
<br>
You can also use postgres/postgis functions and create the layer in postgis, you won't need a script but you have to learn some about postgis.<br>
<br>
Hope this helps.<br>
<br>
Jonathan Aguero-Valverde<br>
PhD. Candidate<br>
The Thomas D. Larson<br>
Pennsylvania Transportation Institute<br>
The Pennsylvania State University<br>
<br>
----- Original Message ----- From: &quot;Martin Wegmann&quot; &lt;<a href="mailto:wegmann@biozentrum.uni-wuerzburg.de" target="_blank">wegmann@biozentrum.uni-wuerzburg.de</a>&gt;<br>
To: &lt;<a href="mailto:grass-user@lists.osgeo.org" target="_blank">grass-user@lists.osgeo.org</a>&gt;<br>
Sent: Monday, June 16, 2008 10:18 AM<br>
Subject: [GRASS-user] square buffeer<div><div></div><div class="Wj3C7c"><br>
<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br>
<br>
I am looking for a way to create a square buffer for a point vector so that<br>
each point is in the end the centroid of a square with defined side length.<br>
<br>
I though about r.mapcalc statements to grow north-south and west-east and then<br>
somehow create an area from this square. But I have no idea how to do it<br>
without a lot of hand-work.<br>
<br>
Any idea how to achieve that? Or hints where to find relevant documents.<br>
<br>
Martin<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>
</blockquote>
<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><br clear="all"><br>-- <br>Pedro Camilo Alcántara Concepción<br>Department of Forest and Wildlife Ecology<br>Rm. 120 Russell Labs<br>1630 Linden Dr.<br>Madison WI 53706-1598<br>Phone +1/608/265-9219<br>
http:/<a href="http://silvis.forest.wisc.edu">silvis.forest.wisc.edu</a><br>___________________________________________