#3161: different results by v.in.ogr --ui and vector import wizzard (data shift) ----------------------+--------------------------- Reporter: hellik | Owner: grass-dev@… Type: defect | Status: new Priority: blocker | Milestone: 7.2.0 Component: Vector | Version: svn-trunk Resolution: | Keywords: vector import CPU: x86-64 | Platform: MSWindows 7 ----------------------+---------------------------
Comment (by mmetz): Replying to [comment:4 hellik]: > Replying to [comment:1 mmetz]: > > In the end, the user has to decide if reprojection is needed or if the source srs and the location srs are similar enough to allow for using v.in.ogr -o (override projection check). After investigating the input data with g.proj georef=<data to be imported> and ogrinfo/gdalinfo. > > as mentioned before, there is no ''override projection check'' needed by import via v.in.ogr --ui. > > if you want to try > > - data can be downloaded [https://www.tirol.gv.at/data/datenkatalog/umwelt/gewaessernetz/ river net]; > > - then ogr2ogr -s_srs EPSG:31254 -t_srs EPSG:31287 > > - create location by EPSG:31287 and datum_trans 2 > > - then import ''GUI -> import common formats'' I tested. The location has the same parameters like yours: {{{ > g.proj -p -PROJ_INFO------------------------------------------------- name : MGI / Austria Lambert datum : hermannskogel ellps : bessel proj : lcc lat_1 : 49 lat_2 : 46 lat_0 : 47.5 lon_0 : 13.33333333333333 x_0 : 400000 y_0 : 400000 no_defs : defined towgs84 : 577.326,90.129,463.919,5.1366,1.4742,5.2970,2.4232 -PROJ_EPSG------------------------------------------------- epsg : 31287 -PROJ_UNITS------------------------------------------------ unit : meter units : meters meters : 1 }}} Now test if the SRS of the shapefile is identical {{{ > v.in.ogr in=Gesamtgewaessernetz_v11_Tirol_epsg31287 layer=Gesamtgewaessernetz_v11_Tirol -j Projection of input dataset and current location appear to match }}} fine, now v.import {{{ > v.import in=Gesamtgewaessernetz_v11_Tirol_epsg31287 out=Gesamtgewaessernetz_v11_Tirol_epsg31287 [...] Input <Gesamtgewaessernetz_v11_Tirol_epsg31287> successfully imported without reprojection }}} All fine, no reprojection. What is your output of `v.in.ogr -j`? -- Ticket URL: <https://trac.osgeo.org/grass/ticket/3161#comment:5> GRASS GIS <https://grass.osgeo.org> _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev