[GRASS-user] v.select error: point array must contain 0 or >1 elements

Thayer Young thayeray at yahoo.com
Sat Jan 17 13:12:01 PST 2015


I have two shapefiles that I imported into GRASS 6.4.5 using v.in.ogr.  One is a polygon file of building footprints.  The second is a polyline of the pavement edges of urban streets.  I am trying to convert this into street area.  I used v.clean, v.type (to switch from line to boundaries), and v.centroids.  This conversion process gives me street areas but also creates doughnut holes corresponding to the area inside of a city block outlined by the streets.  For the most part the doughnut holes contain buildings, so I am trying to use v.select to select the areas that do not contain buildings.  I have not been able to get anything besides "overlap" to work.  Overlap is not good enough though because many of the buildings have shared nodes with the streets, for example where a driveway runs along one side of a house.  I checked and my version of GRASS was compiled with the following GEOS details:   --with-geos=/Library/Frameworks/GEOS.framework/Versions/3/unix/bin/geos-config
Below is an example of an error that I am getting when I try anything besides overlap:                                                    
v.select --overwrite ainput=EdgePav_cent at PERMANENT binput=Bldg at PERMANENT output=Pav_sel operator=containsWARNING: Vector map <Pav_sel> already exists and will be overwrittenBuilding spatial index...Processing features...ERROR: IllegalArgumentException: point array must contain 0 or >1 elements A similar question appears to have previously gone unanswered:grass-development-gis - [GRASS-dev] v.select - ERROR: IllegalArgumentException: point array must contain 0 or >1 elements - msg#00289 - Recent Discussion OSDir.com

|   |
|   |   |   |   |   |
| grass-development-gis - [GRASS-dev] v.select - ERROR: IllegalArgumentException: point array mus...hi, I've tried v.select of a line vector by an area vector: GEOS-based selection v.select ainput=geav150 at rstreamanalysis binput=mgoutlet at rstreamanalysis output=test operator=overlaps  |
|  |
| View on osdir.com | Preview by Yahoo |
|  |
|   |

Thanks for any advice you can provide.
-Thayer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20150117/9721fbb4/attachment.html>


More information about the grass-user mailing list