[Qgis-user] GRASS Newbie: empty results layers

2014-12-20 Thread Joris Hintjens
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.172333 +lat_2=49.839 +lat_0=90 
+lon_0=4.3674866 +x_0=15.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): 

Re: [Qgis-user] GRASS Newbie: empty results layers

2014-12-20 Thread Nicolas Cadieux
I am not GRASS guru but I will do anything for a beer in Brussels 
My experience with grass tells me you need to be careful about the GRASS region 
and I see this... 
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#160; 
GRASS_INFO_END(14043,1)#160; 
Not sure what it is but I would make sure the projections match. 
I also see this : 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#160; 
And stuff like : GRASS_INFO_ERROR(14052,1): Unable to open vector map on level 
2. Try to rebuild vector topology by v.build.#160; 
GRASS_INFO_END(14052,1)#160; 
Could this be all linked to projections and grass regions Not sure... 
I would also just try to run it directly in Grass... Making sure the region and 
projections are all the same.nbsp; Like I say... Anything for that beer!!! 
:) 
Nicolas Cadieux M.Sc. 

Le 2014-12-20 08:13, quot;Joris Hintjens [via OSGeo.org]   quot; 
lt;ml-node+s1560n5178667...@n6.nabble.comgt; a écrit : 

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-copyquot; 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=quot;+proj=lcc +lat_1=51.172333 +lat_2=49.839 
+lat_0=90 +lon_0=4.3674866 +x_0=15.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_defsquot;
v.in.ogr min_area=0.0001 snap=-1 
dsn=quot;/Volumes/data/Users/nikh/Desktop/voornik/layersquot; 
layer=VWEALijstParkenDec2013 output=tmp1418734601363 --overwrite -o
v.in.ogr min_area=0.0001 snap=-1 
dsn=quot;/Volumes/data/Users/nikh/Desktop/voornik/layersquot; 
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=quot;NAAMquot; output=output217e40d03eca4799b41412537a6a4e11 
--overwrite
v.out.ogr -s -c -e -z input=output217e40d03eca4799b41412537a6a4e11 
dsn=quot;/Volumes/data/Users/nikh/Desktop/voornikquot; 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