https://issues.qgis.org/https://issues.qgis.org/favicon.ico2009-10-05T07:07:07ZQGIS Issue TrackingQGIS Application - Bug report #1977: spatialite layers disappear when enabling reprojectionhttps://issues.qgis.org/issues/1977?journal_id=201552009-10-05T07:07:07ZJürgen Fischerjef@norbit.de
<ul></ul><p>not reproducable here. Are you projecting to the same CRS your data is in?</p> QGIS Application - Bug report #1977: spatialite layers disappear when enabling reprojectionhttps://issues.qgis.org/issues/1977?journal_id=201562009-10-05T07:17:00ZPaolo Cavallinicavallini@faunalia.it
<ul></ul><p>Right - if I do the same in a different projection, this does not appear.</p> QGIS Application - Bug report #1977: spatialite layers disappear when enabling reprojectionhttps://issues.qgis.org/issues/1977?journal_id=201572009-10-22T03:39:23ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>I confirm the behaviour with qgis trunk and ubuntu 9.04.</p>
<p>The weird thing is that if OTFR is enabled <strong>before</strong> (regardless of the CRS) adding the spatialite layer, then it goes everything ok. If is enabled after adding it, then it disappears.</p> QGIS Application - Bug report #1977: spatialite layers disappear when enabling reprojectionhttps://issues.qgis.org/issues/1977?journal_id=201582009-11-11T18:40:44ZSteven Mizunospookster@netzero.net
<ul></ul><p>I have also noticed this problem. In <a class="wiki-page new" href="https://issues.qgis.org/projects/qgis/wiki/QgsSpatiaLiteProvider">QgsSpatiaLiteProvider</a>::select() near the bottom of the function (about line 592) the valid variable is set false on a failed database request. This may occur if the extent requested is out of bounds for the layer's CRS.</p>
<p>Once valid is false the provider won't return any data.</p>
<p>I believe the valid variable should NOT be set false just because there is an error in the current database request.</p>
<p>I believe <a class="issue tracker-1 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/2047" title="Spatialite layers fail to render after performing identify (Closed)">#2047</a> is another manifestation of this.</p> QGIS Application - Bug report #1977: spatialite layers disappear when enabling reprojectionhttps://issues.qgis.org/issues/1977?journal_id=201592009-11-29T01:34:05ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>This is still confirmed and I (only) now noticed that this is the same identical problem that we have now also with shapefiles (until a few days ago with shapefiles worked ok). See <a class="issue tracker-1 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/2148" title="shapefile layers disappear when enabling reprojection (Closed)">#2148</a>.</p>
<p>Resuming:</p>
<p>Add a layer <strong>then</strong> enable OTFR and choose a crs for the project.</p>
<p>1) If the layer crs is equal to the project crs, than is all ok</p>
<p>2) if the layer crs is different from the project crs than it doesn't show in map canvas</p>
<p>You may also want to try this:</p>
<p>Open a new project, enable OTFR, choose a crs for project and <strong>then</strong> add a layer</p>
<p>1) Even if the project crs is different from the layer crs it seems to work fine, but...</p>
<p>2) If you then choose another crs for the project (different from the layer crs), then again the layer will not show in map canvas.</p>
<p>I will test also postgis and then repost back.</p> QGIS Application - Bug report #1977: spatialite layers disappear when enabling reprojectionhttps://issues.qgis.org/issues/1977?journal_id=201602009-11-29T01:41:06ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>And it is confirmed also for Postgis layers.</p> QGIS Application - Bug report #1977: spatialite layers disappear when enabling reprojectionhttps://issues.qgis.org/issues/1977?journal_id=201612009-11-29T01:51:03ZGiovanni Manghigiovanni.manghi@gmail.com
<ul></ul><p>Well it seems to me that this is no more a data provider problem but instead a projection one. Please not that until a few days ago shapes and postgis worked fine.</p>
<p>I believe that one among <a class="issue tracker-1 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/1977" title="spatialite layers disappear when enabling reprojection (Closed)">#1977</a> and <a class="issue tracker-1 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/2148" title="shapefile layers disappear when enabling reprojection (Closed)">#2148</a> can be closed as duplicate.</p> QGIS Application - Bug report #1977: spatialite layers disappear when enabling reprojectionhttps://issues.qgis.org/issues/1977?journal_id=201622009-12-03T01:54:46ZGiovanni Manghigiovanni.manghi@gmail.com
<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>The fix for <a class="issue tracker-1 status-5 priority-3 priority- closed" href="https://issues.qgis.org/issues/2148" title="shapefile layers disappear when enabling reprojection (Closed)">#2148</a> fixed also this one. Thanks.</p>