[GRASS-user] v.generalize for area boundaries?

Hi,

I am following the v.generalize tutorial at
  http://users.ox.ac.uk/~orie1848/tutorial.html
   (we should move that to the wiki before it disappears)
but it doesn't say much about working with areas beyond removing small
ones.

I have a vector area which has a very "steppy" boundary, like from
r.to.vect with a sawtooth pattern at the cell edges. I want to run a
smoothing filter over it to get rid of the jaggy bits.

No matter what method I try my output map is always the same as the input
map, no vertices are created or destroyed.

any ideas how to do this? I know about 'v.clean tool=prune' and Markus
Metz's topology-preserving v.simplify (psst- add it to wiki addons) but
I'd like to learn more about how to use v.generalize.

thanks,
Hamish

On Tue, Feb 17, 2009 at 7:35 AM, Hamish <hamish_b@yahoo.com> wrote:

Hi,

I am following the v.generalize tutorial at
http://users.ox.ac.uk/~orie1848/tutorial.html
  (we should move that to the wiki before it disappears)

Here are converters to Mediawiki syntax:

http://www.jtidy.de/
http://diberri.dyndns.org/wikipedia/html2wiki/index.html

Additionally, the screenshots need to be uploaded.

Markus

On 17.02.2009 08:35, Hamish wrote:

Hi,

I am following the v.generalize tutorial at
  http://users.ox.ac.uk/~orie1848/tutorial.html
   (we should move that to the wiki before it disappears)
but it doesn't say much about working with areas beyond removing small
ones.

That page and the images exists in the svn too. How does one go about
adding extra manual pages? Or perhaps we could integrate it into the
manual page itself?

I have a vector area which has a very "steppy" boundary, like from
r.to.vect with a sawtooth pattern at the cell edges. I want to run a
smoothing filter over it to get rid of the jaggy bits.

No matter what method I try my output map is always the same as the input
map, no vertices are created or destroyed.

any ideas how to do this? I know about 'v.clean tool=prune' and Markus
Metz's topology-preserving v.simplify (psst- add it to wiki addons) but
I'd like to learn more about how to use v.generalize.

How large is the cell you exported from? First you have to use a
smoothing operator. When you are done with the smoothing you should use
the douglas method to reduce the number of points.

I'll see if I can whip up an example for you.

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

On 17.02.2009 18:28, Wolf Bergenheim wrote:

I'll see if I can whip up an example for you.

Okay here is what I did:

r.to.vect input=geology output=test
v.generalize method=snakes input=test output=snakes

It produces nice straight lines and with method=douglas threshold=30 you
can get it even better (note that the cell size was 30m) Also note that
the method=snakes I used simply the default values for alpha and beta.

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

Hi,
Is it possible with grass to replace missing values in a map by surrounding values by a sort of interpolation, knowing that sometimes many missing values are numerous one near another? If yes, how?
Thank you very much
Stéphanie

Sorry i forgot to change the subject.

FAROUX STEPHANIE wrote:

Hi,
Is it possible with grass to replace missing values in a map by surrounding values by a sort of interpolation, knowing that sometimes many missing values are numerous one near another? If yes, how?
Thank you very much
Stéphanie
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Hi..
please try r.neighbors

cheers..
Ivan

Il giorno mar, 17/02/2009 alle 18.00 +0100, FAROUX STEPHANIE ha scritto:

Hi,
Is it possible with grass to replace missing values in a map by
surrounding values by a sort of interpolation, knowing that sometimes
many missing values are numerous one near another? If yes, how?
Thank you very much
Stéphanie
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

--
Ti prego di cercare di non inviarmi files .dwg, .doc, .xls, .ppt.
Preferisco formati liberi.
Please try to avoid to send me .dwg, .doc, .xls, .ppt files.
I prefer free formats.
http://it.wikipedia.org/wiki/Formato_aperto
http://en.wikipedia.org/wiki/Open_format

Ivan Marchesini
Department of Civil and Environmental Engineering
University of Perugia
Via G. Duranti 93/a
06125
Perugia (Italy)
Socio fondatore GFOSS "Geospatial Free and Open Source Software" http://www.gfoss.it
e-mail: marchesini@unipg.it
        ivan.marchesini@gmail.com
tel: +39(0)755853760
fax (university): +39(0)755853756
fax (home): +39(0)5782830887
jabber: geoivan73@jabber.org

On Tue, Feb 17, 2009 at 7:03 PM, ivan marchesini <marchesini@unipg.it> wrote:

Hi..
please try r.neighbors

r.fillnulls is another option:
http://grass.osgeo.org/grass64/manuals/html64_user/r.fillnulls.html

Markus

cheers..
Ivan

Il giorno mar, 17/02/2009 alle 18.00 +0100, FAROUX STEPHANIE ha scritto:

Hi,
Is it possible with grass to replace missing values in a map by
surrounding values by a sort of interpolation, knowing that sometimes
many missing values are numerous one near another? If yes, how?
Thank you very much
Stéphanie