https://issues.qgis.org/https://issues.qgis.org/favicon.ico2009-09-22T03:46:09ZQGIS Issue TrackingQGIS Application - Feature request #1943: ftools/buffer produce result shape with wrong crs parametershttps://issues.qgis.org/issues/1943?journal_id=200062009-09-22T03:46:09ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Hi,</p>
<p>what version of qgis are you using?</p>
<p>Here on 1.3 seems to have no problems.</p> QGIS Application - Feature request #1943: ftools/buffer produce result shape with wrong crs parametershttps://issues.qgis.org/issues/1943?journal_id=200072009-09-22T03:50:26Zcmoe -Cedric.Moeri@bd.so.ch
<ul></ul><p>Replying to [comment:1 lutra]:</p>
<blockquote>
<p>Hi,</p>
<p>what version of qgis are you using?</p>
<p>Here on 1.3 seems to have no problems.</p>
</blockquote>
<p>Hi,</p>
<p>i'm using 1.2.0 <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/b17898e29210dafafde94d2d53c206484b6e1690" title="reshape tool (r11500) git-svn-id: http://svn.osgeo.org/qgis/trunk@11504 c8812cc2-4d05-0410-92ff-...">b17898e2</a> (SVN r11505) and 1.4.0 <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/5d5883bc997c59f6d2d4cc0ec5b798edf31d746b" title="fix #1941 git-svn-id: http://svn.osgeo.org/qgis/trunk@11698 c8812cc2-4d05-0410-92ff-de0c093fc19c">5d5883bc</a> (SVN r11699). It happens on both versions.</p> QGIS Application - Feature request #1943: ftools/buffer produce result shape with wrong crs parametershttps://issues.qgis.org/issues/1943?journal_id=200082009-09-22T04:49:05ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>This is weird.</p>
<p>I'm using qgis 1.3 and 1.4 trunk under Ubuntu 9.04</p>
<p>I apparently see no problems (with or without OTFR enabled), even if as a fact the towgs84 parameter is missing in the resulting layer projection.</p>
<p>I see also that other layers resulting from other ftools operation seem to miss the towgs84 if present in the source layer.</p>
<p>Not sure where the problem may reside, if in the plugin or in the projection component.</p> QGIS Application - Feature request #1943: ftools/buffer produce result shape with wrong crs parametershttps://issues.qgis.org/issues/1943?journal_id=200092009-11-23T07:49:36Zcmoe -Cedric.Moeri@bd.so.ch
<ul></ul><p>The problem I see is, that ogr always strips out the towgs84 parameter when creating a shapefile. See also <a class="issue tracker-2 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/2123" title="wrong projection information when creating a new shapefile (Closed)">#2123</a>.</p>
<p>The problem is the call of ogr in the constructor of <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsVectorFileWriter">QgsVectorFileWriter</a>. But the "wrong" or, as ogr it calls, esri style like prj file may be overwritten by qgis. That's what already is done in the <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsVectorFileWriter">QgsVectorFileWriter</a>::writeAsShapefile.<br />I wrote a little patch to do that, please have a look at it, and, if appropriate, apply it.</p>
<p>The missing parameter is quite cruical, if you are working in epsg21781. In the normal range of the coordinates (600000/200000), the missing parameters leads to a misplacement which is about 100 meters.</p> QGIS Application - Feature request #1943: ftools/buffer produce result shape with wrong crs parametershttps://issues.qgis.org/issues/1943?journal_id=200102009-11-25T08:14:12Zcmoe -Cedric.Moeri@bd.so.ch
<ul></ul><p>I learned from Marco that Jürgen is our OGR guru.:-) Since this is an ogr issue, I assign the ticket now to him.</p>
<p>regards<br />Cédric</p> QGIS Application - Feature request #1943: ftools/buffer produce result shape with wrong crs parametershttps://issues.qgis.org/issues/1943?journal_id=200112009-11-26T01:39:28Zcmoe -Cedric.Moeri@bd.so.ch
<ul><li><strong>Resolution</strong> set to <i>fixed</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>this should be fixed now in <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/83d6e0ca42ea25764a6bdf9bd0bad52db32300f7" title="[FEATURE] allow specification of CRS when creating shape files (also fixes #2123) git-svn-id: ...">83d6e0ca</a> (SVN r12260) from Juergen.</p>