Hi, My first experiments with grass commands frustrate me. All tests I run end up with empty shp layers with 0 items. I managed to “selectAll-copy" the log (but where is that log saved?) and this is the result. Any comment will be rewarded with a beer next time you pass in Brussels.
Running QGis2.6.1 on OSX 10.10 Yosemite thanks in advance Joris here’s the log Algorithm v.distance - Finds the nearest element in vector map 'to' for elements in vector map 'from'. starting... g.proj -c proj4="+proj=lcc +lat_1=51.16666723333333 +lat_2=49.8333339 +lat_0=90 +lon_0=4.367486666666666 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +towgs84=-106.869,52.2978,-103.724,0.3366,-0.457,1.8422,-1.2747 +units=m +no_defs" v.in.ogr min_area=0.0001 snap=-1 dsn="/Volumes/data/Users/nikh/Desktop/voornik/layers" layer=VWEALijstParkenDec2013 output=tmp1418734601363 --overwrite -o v.in.ogr min_area=0.0001 snap=-1 dsn="/Volumes/data/Users/nikh/Desktop/voornik/layers" layer=AnkerplLamb72 output=tmp1418734601364 --overwrite -o g.region n=240475.402871 s=153205.121463 e=258860.969192 w=22089.4926875 res=1 v.distance from=tmp1418734601363 to=tmp1418734601364 upload=dist column="NAAM" output=output217e40d03eca4799b41412537a6a4e11 --overwrite v.out.ogr -s -c -e -z input=output217e40d03eca4799b41412537a6a4e11 dsn="/Volumes/data/Users/nikh/Desktop/voornik" format=ESRI_Shapefile olayer=test type=auto Cleaning up temporary files ... Starting GRASS ... Executing '/Volumes/data/Users/nikh/.qgis2//processing/grass_batch_job.sh' ... Welcome to GRASS 6.4.4 (2014) GRASS_INFO_MESSAGE(14043,1): Default region was updated to the new projection, but if you have multiple mapsets `g.region -d` should be run in each to update the region from the default GRASS_INFO_END(14043,1) GRASS_INFO_MESSAGE(14043,2): Projection information updated GRASS_INFO_END(14043,2) GRASS_INFO_MESSAGE(14044,1): Over-riding projection check GRASS_INFO_END(14044,1) GRASS_INFO_MESSAGE(14044,2): Layer: VWEALijstParkenDec2013 GRASS_INFO_END(14044,2) GRASS_INFO_MESSAGE(14044,3): Counting polygons for 80 features... GRASS_INFO_END(14044,3) GRASS_INFO_MESSAGE(14044,4): Importing map 80 features... GRASS_INFO_END(14044,4) GRASS_INFO_MESSAGE(14044,5): ----------------------------------------------------- GRASS_INFO_END(14044,5) GRASS_INFO_MESSAGE(14044,6): Building topology for vector map ... GRASS_INFO_END(14044,6) GRASS_INFO_MESSAGE(14044,7): Registering primitives... GRASS_INFO_END(14044,7) GRASS_INFO_MESSAGE(14044,8): 80 primitives registered GRASS_INFO_END(14044,8) GRASS_INFO_MESSAGE(14044,9): 80 vertices registered GRASS_INFO_END(14044,9) GRASS_INFO_MESSAGE(14044,10): Number of nodes: 80 GRASS_INFO_END(14044,10) GRASS_INFO_MESSAGE(14044,11): Number of primitives: 80 GRASS_INFO_END(14044,11) GRASS_INFO_MESSAGE(14044,12): Number of points: 80 GRASS_INFO_END(14044,12) GRASS_INFO_MESSAGE(14044,13): Number of lines: 0 GRASS_INFO_END(14044,13) GRASS_INFO_MESSAGE(14044,14): Number of boundaries: 0 GRASS_INFO_END(14044,14) GRASS_INFO_MESSAGE(14044,15): Number of centroids: 0 GRASS_INFO_END(14044,15) GRASS_INFO_MESSAGE(14044,16): Number of areas: - GRASS_INFO_END(14044,16) GRASS_INFO_MESSAGE(14044,17): Number of isles: - GRASS_INFO_END(14044,17) GRASS_INFO_MESSAGE(14044,18): Building topology for vector map ... GRASS_INFO_END(14044,18) GRASS_INFO_MESSAGE(14044,19): Registering primitives... GRASS_INFO_END(14044,19) GRASS_INFO_MESSAGE(14044,20): 80 primitives registered GRASS_INFO_END(14044,20) GRASS_INFO_MESSAGE(14044,21): 80 vertices registered GRASS_INFO_END(14044,21) GRASS_INFO_MESSAGE(14044,22): Building areas... GRASS_INFO_END(14044,22) GRASS_INFO_MESSAGE(14044,23): 0 areas built GRASS_INFO_END(14044,23) GRASS_INFO_MESSAGE(14044,24): 0 isles built GRASS_INFO_END(14044,24) GRASS_INFO_MESSAGE(14044,25): Attaching islands... GRASS_INFO_END(14044,25) GRASS_INFO_MESSAGE(14044,26): Attaching centroids... GRASS_INFO_END(14044,26) GRASS_INFO_MESSAGE(14044,27): Number of nodes: 80 GRASS_INFO_END(14044,27) GRASS_INFO_MESSAGE(14044,28): Number of primitives: 80 GRASS_INFO_END(14044,28) GRASS_INFO_MESSAGE(14044,29): Number of points: 80 GRASS_INFO_END(14044,29) GRASS_INFO_MESSAGE(14044,30): Number of lines: 0 GRASS_INFO_END(14044,30) GRASS_INFO_MESSAGE(14044,31): Number of boundaries: 0 GRASS_INFO_END(14044,31) GRASS_INFO_MESSAGE(14044,32): Number of centroids: 0 GRASS_INFO_END(14044,32) GRASS_INFO_MESSAGE(14044,33): Number of areas: 0 GRASS_INFO_END(14044,33) GRASS_INFO_MESSAGE(14044,34): Number of isles: 0 GRASS_INFO_END(14044,34) GRASS_INFO_WARNING(14044,35): Input data contains 3D features. Created vector is 2D only, use -z flag to import 3D vector GRASS_INFO_END(14044,35) GRASS_INFO_MESSAGE(14046,1): Over-riding projection check GRASS_INFO_END(14046,1) GRASS_INFO_MESSAGE(14046,2): Layer: AnkerplLamb72 GRASS_INFO_END(14046,2) GRASS_INFO_MESSAGE(14046,3): Counting polygons for 382 features... GRASS_INFO_END(14046,3) GRASS_INFO_MESSAGE(14046,4): Importing map 382 features... GRASS_INFO_END(14046,4) GRASS_INFO_MESSAGE(14046,5): ----------------------------------------------------- GRASS_INFO_END(14046,5) GRASS_INFO_MESSAGE(14046,6): Building topology for vector map ... GRASS_INFO_END(14046,6) GRASS_INFO_MESSAGE(14046,7): Registering primitives... GRASS_INFO_END(14046,7) 1000 GRASS_INFO_MESSAGE(14046,8): 1163 primitives registered GRASS_INFO_END(14046,8) GRASS_INFO_MESSAGE(14046,9): 83169 vertices registered GRASS_INFO_END(14046,9) GRASS_INFO_MESSAGE(14046,10): Number of nodes: 1160 GRASS_INFO_END(14046,10) GRASS_INFO_MESSAGE(14046,11): Number of primitives: 1163 GRASS_INFO_END(14046,11) GRASS_INFO_MESSAGE(14046,12): Number of points: 0 GRASS_INFO_END(14046,12) GRASS_INFO_MESSAGE(14046,13): Number of lines: 0 GRASS_INFO_END(14046,13) GRASS_INFO_MESSAGE(14046,14): Number of boundaries: 1163 GRASS_INFO_END(14046,14) GRASS_INFO_MESSAGE(14046,15): Number of centroids: 0 GRASS_INFO_END(14046,15) GRASS_INFO_MESSAGE(14046,16): Number of areas: - GRASS_INFO_END(14046,16) GRASS_INFO_MESSAGE(14046,17): Number of isles: - GRASS_INFO_END(14046,17) GRASS_INFO_MESSAGE(14046,18): ----------------------------------------------------- GRASS_INFO_END(14046,18) GRASS_INFO_WARNING(14046,19): Cleaning polygons, result is not guaranteed! GRASS_INFO_END(14046,19) GRASS_INFO_MESSAGE(14046,20): ----------------------------------------------------- GRASS_INFO_END(14046,20) GRASS_INFO_MESSAGE(14046,21): Break polygons: GRASS_INFO_END(14046,21) GRASS_INFO_MESSAGE(14046,22): ----------------------------------------------------- GRASS_INFO_END(14046,22) GRASS_INFO_MESSAGE(14046,23): Remove duplicates: GRASS_INFO_END(14046,23) GRASS_INFO_MESSAGE(14046,24): ----------------------------------------------------- GRASS_INFO_END(14046,24) GRASS_INFO_MESSAGE(14046,25): Break boundaries: GRASS_INFO_END(14046,25) GRASS_INFO_MESSAGE(14046,26): ----------------------------------------------------- GRASS_INFO_END(14046,26) GRASS_INFO_MESSAGE(14046,27): Remove duplicates: GRASS_INFO_END(14046,27) GRASS_INFO_MESSAGE(14046,28): ----------------------------------------------------- GRASS_INFO_END(14046,28) GRASS_INFO_MESSAGE(14046,29): Clean boundaries at nodes: GRASS_INFO_END(14046,29) GRASS_INFO_MESSAGE(14046,30): ----------------------------------------------------- GRASS_INFO_END(14046,30) GRASS_INFO_MESSAGE(14046,31): Break boundaries: GRASS_INFO_END(14046,31) GRASS_INFO_MESSAGE(14046,32): ----------------------------------------------------- GRASS_INFO_END(14046,32) GRASS_INFO_MESSAGE(14046,33): Remove duplicates: GRASS_INFO_END(14046,33) GRASS_INFO_MESSAGE(14046,34): ----------------------------------------------------- GRASS_INFO_END(14046,34) GRASS_INFO_MESSAGE(14046,35): Clean boundaries at nodes: GRASS_INFO_END(14046,35) GRASS_INFO_MESSAGE(14046,36): ----------------------------------------------------- GRASS_INFO_END(14046,36) GRASS_INFO_MESSAGE(14046,37): Merge boundaries: GRASS_INFO_END(14046,37) GRASS_INFO_MESSAGE(14046,38): ----------------------------------------------------- GRASS_INFO_END(14046,38) GRASS_INFO_MESSAGE(14046,39): Change dangles to lines: GRASS_INFO_END(14046,39) GRASS_INFO_MESSAGE(14046,40): ----------------------------------------------------- GRASS_INFO_END(14046,40) GRASS_INFO_MESSAGE(14046,41): Remove bridges: GRASS_INFO_END(14046,41) GRASS_INFO_MESSAGE(14046,42): ----------------------------------------------------- GRASS_INFO_END(14046,42) GRASS_INFO_MESSAGE(14046,43): Building topology for vector map ... GRASS_INFO_END(14046,43) GRASS_INFO_MESSAGE(14046,44): Building areas... GRASS_INFO_END(14046,44) GRASS_INFO_MESSAGE(14046,45): 394 areas built GRASS_INFO_END(14046,45) GRASS_INFO_MESSAGE(14046,46): 362 isles built GRASS_INFO_END(14046,46) GRASS_INFO_MESSAGE(14046,47): Attaching islands... GRASS_INFO_END(14046,47) GRASS_INFO_MESSAGE(14046,48): Number of nodes: 1519 GRASS_INFO_END(14046,48) GRASS_INFO_MESSAGE(14046,49): Number of primitives: 1758 GRASS_INFO_END(14046,49) GRASS_INFO_MESSAGE(14046,50): Number of points: 0 GRASS_INFO_END(14046,50) GRASS_INFO_MESSAGE(14046,51): Number of lines: 0 GRASS_INFO_END(14046,51) GRASS_INFO_MESSAGE(14046,52): Number of boundaries: 1758 GRASS_INFO_END(14046,52) GRASS_INFO_MESSAGE(14046,53): Number of centroids: 0 GRASS_INFO_END(14046,53) GRASS_INFO_MESSAGE(14046,54): Number of areas: 394 GRASS_INFO_END(14046,54) GRASS_INFO_MESSAGE(14046,55): Number of isles: 362 GRASS_INFO_END(14046,55) GRASS_INFO_MESSAGE(14046,56): Number of areas without centroid: 394 GRASS_INFO_END(14046,56) GRASS_INFO_MESSAGE(14046,57): ----------------------------------------------------- GRASS_INFO_END(14046,57) GRASS_INFO_MESSAGE(14046,58): Find centroids for layer: AnkerplLamb72 GRASS_INFO_END(14046,58) GRASS_INFO_MESSAGE(14046,59): ----------------------------------------------------- GRASS_INFO_END(14046,59) GRASS_INFO_MESSAGE(14046,60): Write centroids: GRASS_INFO_END(14046,60) GRASS_INFO_WARNING(14046,61): 2 areas represent more (overlapping) features, because polygons overlap in input layer(s). Such areas are linked to more than 1 row in attribute table. The number of features for those areas is stored as category in layer 2 GRASS_INFO_END(14046,61) GRASS_INFO_MESSAGE(14046,62): ----------------------------------------------------- GRASS_INFO_END(14046,62) GRASS_INFO_MESSAGE(14046,63): 384 input polygons GRASS_INFO_END(14046,63) GRASS_INFO_MESSAGE(14046,64): Total area: 2.21065E+09 (394 areas) GRASS_INFO_END(14046,64) GRASS_INFO_MESSAGE(14046,65): Overlapping area: 1.21E-06 (2 areas) GRASS_INFO_END(14046,65) GRASS_INFO_MESSAGE(14046,66): Area without category: 69792.2 (8 areas) GRASS_INFO_END(14046,66) GRASS_INFO_MESSAGE(14046,67): ----------------------------------------------------- GRASS_INFO_END(14046,67) GRASS_INFO_MESSAGE(14046,68): Building topology for vector map ... GRASS_INFO_END(14046,68) GRASS_INFO_MESSAGE(14046,69): Registering primitives... GRASS_INFO_END(14046,69) GRASS_INFO_MESSAGE(14046,70): 827 primitives registered GRASS_INFO_END(14046,70) GRASS_INFO_MESSAGE(14046,71): 82572 vertices registered GRASS_INFO_END(14046,71) GRASS_INFO_MESSAGE(14046,72): Building areas... GRASS_INFO_END(14046,72) GRASS_INFO_MESSAGE(14046,73): 394 areas built GRASS_INFO_END(14046,73) GRASS_INFO_MESSAGE(14046,74): 362 isles built GRASS_INFO_END(14046,74) GRASS_INFO_MESSAGE(14046,75): Attaching islands... GRASS_INFO_END(14046,75) GRASS_INFO_MESSAGE(14046,76): Attaching centroids... GRASS_INFO_END(14046,76) GRASS_INFO_MESSAGE(14046,77): Number of nodes: 795 GRASS_INFO_END(14046,77) GRASS_INFO_MESSAGE(14046,78): Number of primitives: 827 GRASS_INFO_END(14046,78) GRASS_INFO_MESSAGE(14046,79): Number of points: 0 GRASS_INFO_END(14046,79) GRASS_INFO_MESSAGE(14046,80): Number of lines: 0 GRASS_INFO_END(14046,80) GRASS_INFO_MESSAGE(14046,81): Number of boundaries: 441 GRASS_INFO_END(14046,81) GRASS_INFO_MESSAGE(14046,82): Number of centroids: 386 GRASS_INFO_END(14046,82) GRASS_INFO_MESSAGE(14046,83): Number of areas: 394 GRASS_INFO_END(14046,83) GRASS_INFO_MESSAGE(14046,84): Number of isles: 362 GRASS_INFO_END(14046,84) GRASS_INFO_MESSAGE(14046,85): Number of areas without centroid: 8 GRASS_INFO_END(14046,85) GRASS_INFO_MESSAGE(14046,86): ----------------------------------------------------- GRASS_INFO_END(14046,86) GRASS_INFO_WARNING(14046,87): Errors were encountered during the import GRASS_INFO_END(14046,87) GRASS_INFO_MESSAGE(14046,88): Try to import again, snapping with at least 1e-10: 'snap=1e-10' GRASS_INFO_END(14046,88) GRASS_INFO_ERROR(14050,1): Column not found in table GRASS_INFO_END(14050,1) GRASS_INFO_ERROR(14052,1): Unable to open vector map on level 2. Try to rebuild vector topology by v.build. GRASS_INFO_END(14052,1) Closing monitors ... /Applications/QGIS.app/Contents/MacOS/grass/etc/Init.sh: line 1051: d.mon: command not found Cleaning up temporary files ... Batch job '/Volumes/data/Users/nikh/.qgis2//processing/grass_batch_job.sh' (defined in GRASS_BATCH_JOB variable) was executed. Goodbye from GRASS GIS Cleaning up temporary files ... Starting GRASS ... Executing '/Volumes/data/Users/nikh/.qgis2//processing/grass_batch_job.sh' ... Welcome to GRASS 6.4.4 (2014) GRASS_INFO_ERROR(14115,1): Unable to open vector map on level 2. Try to rebuild vector topology by v.build. GRASS_INFO_END(14115,1) Closing monitors ... /Applications/QGIS.app/Contents/MacOS/grass/etc/Init.sh: line 1051: d.mon: command not found Cleaning up temporary files ... Batch job '/Volumes/data/Users/nikh/.qgis2//processing/grass_batch_job.sh' (defined in GRASS_BATCH_JOB variable) was executed. Goodbye from GRASS GIS Converting outputs Loading resulting layers _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user