Hi Moritz I agree that a flag would be a good way .. Best wishes
miltinho 2014-01-27, Moritz Lennert <[email protected]>: > On 25/01/14 12:52, Markus Metz wrote: >> On Sat, Jan 25, 2014 at 12:27 PM, Markus Neteler <[email protected]> >> wrote: >>> On Sat, Jan 25, 2014 at 12:08 PM, Markus Metz >>> <[email protected]> wrote: >>>> On Sat, Jan 25, 2014 at 12:10 AM, Milton Ribeiro >>>> <[email protected]> wrote: >>>>> Dear all, >>>>> >>>>> I have a polygon vector, and need to add point in the center of mass of >>>>> each >>>>> one. >>>>> I used v.centroid, but it adds just a centroid, but not in the central >>>>> position of the polygon area. >>>> >>>> v.centerpoint from addons [0] does that. >>>> >>>> Markus M >>>> >>>> [0] http://grasswiki.osgeo.org/wiki/AddOns/GRASS7/vector#v.centerpoint >>> >>> Right, I forgot about this nice addon! >>> Perhaps its functionality might be merged into v.centroids [1]? >> >> No, because the center of mass is not always within the area. > > But couldn't that be a documented flag (e.g. something like this: > 'always place centroid within the area (for GRASS polygon)'). > > Personally, I support MarkusN's idea of merging the two, if that's > possible from the code point of view. I find it more intuitive to look > for a module creating centroids... > > Moritz > _______________________________________________ > grass-user mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/grass-user > -- Miltinho - [email protected] Laboratório de Ecologia Espacial e Conservação - LEEC Depto de Ecologia - UNESP - Rio Claro Av. 24A, 1515- Bela Vista 13506-900 Rio Claro, SP, Brasil Fone: +55 19 3526-9647 (office) 19 3526-9680 (lab) Cel: 19 9853-3220 / 19 9853-5430 Depto Ecologia http://ib.rc.unesp.br/#!/departamentos/ecologia/ PG ECO & BIODIV http://ib.rc.unesp.br/#!/departamentos/ecologia/pos-graduacao-em-ecologia-e-biodiversidade/ CV http://buscatextual.cnpq.br/buscatextual/visualizacv.do?id=K4792988H6&mostrarNroCitacoesISI=true&mostrarNroCitacoesScopus=true Google citations http://scholar.google.com/citations?user=OWX_2eAAAAAJ _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
