[GRASS-user] exporting areas to shapefiles without filling holes

Markus Metz markus.metz.giswork at googlemail.com
Thu Apr 9 10:27:00 EDT 2009


Micha Silver wrote:
> Markus Metz wrote:
>
>> My question is if the behaviour of v.out.ogr could be changed for 
>> grass7 to export only features with categories by default if this is 
>> the most common situation, e.g. invert the meaning of the -c flag.
> So what would then happen if you export a vector which includes closed 
> boundaries which have no cat, and centroids with the cat value? (and 
> you request type=area)??
In this case you would get a proper, filled area, because the area has a 
cat. Querying the exported vector would give you all the info for that 
area that you would also get in grass with the original vector, no 
information is lost.

Boundaries in grass usually don't have cats, and if they have, they are 
not used for linking area attributes. In grass, only the centroid's cat 
is used for linking to area attributes.

Markus


More information about the grass-user mailing list