[GRASS-user] postgresql geometry parameter not respected in v.in.ogr -r

patrick_s patrick_GIS at gmx.net
Tue Feb 26 08:05:06 PST 2019


Dear list

The syntax of v.in.ogr ignores the "geometry" Parameter, when using the 
"spatial" Parameter or "-r". A workaround is the use of v.clip and g.rename.

I am a longterm user, but unregular user and have no userid to start a 
ticket. Hope this helps for future development nontheless.

Best,

Patrick

#using flag "-r" and "spatial" finds "2990 vertices registered"

v.in.ogr spatial="2653156, 1249949, 2675000, 1267232" 
input="PG:dbname=psql_local" layer=${DBSCHEMA}.${DATASET} 
out=gr_${DATASET}_${REFYEAR} type=point geometry="geom_2" -o --o

v.in.ogr -r input="PG:dbname=psql_local" layer=${DBSCHEMA}.${DATASET} 
out=gr_${DATASET}_${REFYEAR} type=point geometry="geom_2" -o --o #2990 
vertices registered

#clipping with same region after loading reduces to "1079 primitives 
registered"

v.clip in=gr_${DATASET}_${REFYEAR} out=gr_${DATASET}clip_${REFYEAR} -r



More information about the grass-user mailing list