|
I am trying to export line
vectors to PostGIS with either v.out.ogr or v.out.postgis. I find that v.out.ogr sets the wrong SRID in the PostGIS geometry_columns. I get SRID 900914 instead of the SRID of the GRASS Location. Using v.out.postgis, on the other hand, I call option="SRID=2039" and the SRID is correct in the PostGIS table, but no attributes. I tried with both without the flag '-t' and with the flag. No difference. Here are the commands: GRASS 7.0.4 (ITM):> g.version GRASS 7.0.4 (2016) GRASS 7.0.4 (ITM):> g.proj -p -PROJ_INFO------------------------------------------------- name : Transverse Mercator proj : tmerc ellps : grs80 lat_0 : 31.73439361111111 lon_0 : 35.20451694444445 k : 1.0000067 x_0 : 219529.584 y_0 : 626907.39 towgs84 : -48,55,52,0,0,0,0 no_defs : defined -PROJ_UNITS------------------------------------------------ unit : metre units : metres meters : 1 GRASS 7.0.4 (ITM):> v.out.postgis -c --overwrite input=${STREAMS} type=line output="PG:host=nekarot dbname=geodata user=geodba" output_layer=nikuz.${STREAMS} options="SRID=2039,GEOMETRY_NAME=geom,FID=gid" # I get correct SRID, but no attributes ?? GRASS 7.0.4 (ITM):> v.out.ogr -s --overwrite input=${STREAMS} format=PostgreSQL type=line output="PG:host=nekarot dbname=geodata user=geodba" lco="FID=gid,GEOMETRY_NAME=geom" output_layer=nikuz.${STREAMS} # Full set of attributes but SRID=900914 ?? Any help is appreciated, Micha -- Micha Silver Arava Drainage Authority +972-523-665918 |
_______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
