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

Hi,

I've got a grass vector map containing some areas with holes. It's a
polygon of a river containing some islands; it looks nice in grass,
centroids with cat in the wet parts, no centroids in the islands.
There is no DB table.

after exporting with 'v.out.ogr type=area' to a shapefile, when I load
the shp file into QGIS 0.8.1 I see that all the holes have been filled in.
The boundaries are still intact. using qgis's editing tools I can cut
them out, but it takes a bit of manual labour to fix them all.

what am I doing wrong?

thanks,
Hamish

Hamish wrote:

Hi,

I've got a grass vector map containing some areas with holes. It's a
polygon of a river containing some islands; it looks nice in grass,
centroids with cat in the wet parts, no centroids in the islands.
There is no DB table.

after exporting with 'v.out.ogr type=area' to a shapefile, when I load
the shp file into QGIS 0.8.1 I see that all the holes have been filled in.
The boundaries are still intact. using qgis's editing tools I can cut
them out, but it takes a bit of manual labour to fix them all.

what am I doing wrong?
  

Maybe use v.out.ogr -c?
I did a quick test and got the same result like you, islands within rivers are filled without -c. Exporting only features with a category fixed it for me, holes stay holes and are not filled.

Best,
Markus M

Hello Hamish,

I had a possibly related problem with a vector that went through v.clean. I filed this ticket: http://trac.osgeo.org/grass/ticket/397.

I noticed that layer 0 had the filled holes while layer 1 was the good polygons. v.clean seemed to merge those two layers. With Markus M's fix, I solved my problem. Which reminds me...should I close this ticket since it works for me?

Bob

Bob Moskovitz
Research Analyst I
Seismic Hazard Evaluation Project
California Geological Survey
http://gmw.consrv.ca.gov/shmp

CONFIDENTIALITY NOTICE: This communication is intended only for the use of the individual or entity to which it is addressed. This message contains information from the State of California, California Geological Survey, which may be privileged, confidential and exempt from disclosure under applicable law, including the Electronic Communications Privacy Act. If the reader of this communication is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.

-----Original Message-----
From: grass-user-bounces@lists.osgeo.org
[mailto:grass-user-bounces@lists.osgeo.org]On Behalf Of Hamish
Sent: Thursday, April 09, 2009 12:02 AM
To: grass list
Subject: [GRASS-user] exporting areas to shapefiles without filling
holes

Hi,

I've got a grass vector map containing some areas with holes. It's a
polygon of a river containing some islands; it looks nice in grass,
centroids with cat in the wet parts, no centroids in the islands.
There is no DB table.

after exporting with 'v.out.ogr type=area' to a shapefile, when I load
the shp file into QGIS 0.8.1 I see that all the holes have
been filled in.
The boundaries are still intact. using qgis's editing tools I can cut
them out, but it takes a bit of manual labour to fix them all.

what am I doing wrong?

thanks,
Hamish
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Moskovitz, Bob wrote:

I filed this ticket: http://trac.osgeo.org/grass/ticket/397.

...should I close this ticket since it works for me?
  

No, because the fix is not yet backported to 6.4. This was a bug in the vector libs when updating topology and not specific to removing small areas.

Is it ok to fix it now in 6.4 too?

On Tue, Apr 14, 2009 at 9:23 AM, Markus Metz
<markus.metz.giswork@googlemail.com> wrote:

Moskovitz, Bob wrote:

I filed this ticket: http://trac.osgeo.org/grass/ticket/397.

...should I close this ticket since it works for me?

No, because the fix is not yet backported to 6.4. This was a bug in the
vector libs when updating topology and not specific to removing small areas.

Is it ok to fix it now in 6.4 too?

If it is a bug it should be fixed :slight_smile:

thanks
Markus