https://issues.qgis.org/https://issues.qgis.org/favicon.ico2019-01-28T07:28:38ZQGIS Issue TrackingQGIS Application - Bug report #20559: Copy>paste from a grass polygon layer gives unexpected resultshttps://issues.qgis.org/issues/20559?journal_id=990912019-01-28T07:28:38ZLoïc BARTOLETTI
<ul></ul><p>Confirmed on 3.4.4 and master with GRASS 7.4 and 7.6</p>
<p>I tested with QGIS Master and GRASS 7.4.4 using memory layers, shapefiles and postgis. Here is my procedure and results:</p>
<p>- Load a GRASS layer with isolated polygons<br />- Copy a polygon (its wkt is of the Linestring type)<br />- Paste the polygon into a polygon memory layer: error<br />- Paste the polygon into a shapefile polygon: success<br />- Paste the polygon in a postgis polygon layer: error<br />- Paste the polygon into a line memory layer: success<br />- Paste the polygon in a shapefile line: success<br />- Paste the polygon in a postgis line layer: success</p>
<p>I get the same results if I copy a line layer from a shp for example.</p>
<p>The problem is therefore that qgis, recovers a GRASS polygon by its exterior line (you can do the test by importing a polygon with a hole) even if when loading the layer he recognizes it well as a polygon.</p>
<p>Another interesting point is that when you enable the GRASS option to display virtual topologies, if you select the polygon boundaries (LineString layer) the resulting WKT is "NULL".</p>
<p>I think the problem is bigger than just the copy/paste of geometry.</p> QGIS Application - Bug report #20559: Copy>paste from a grass polygon layer gives unexpected resultshttps://issues.qgis.org/issues/20559?journal_id=990962019-01-28T09:52:39ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Affected QGIS version</strong> changed from <i>3.4.1</i> to <i>3.5(master)</i></li><li><strong>Priority</strong> changed from <i>Low</i> to <i>Normal</i></li></ul>