https://issues.qgis.org/https://issues.qgis.org/favicon.ico2014-06-25T00:41:41ZQGIS Issue TrackingQGIS Application - Bug report #10711: every geojson layers are named OGRGeoJSONhttps://issues.qgis.org/issues/10711?journal_id=532912014-06-25T00:41:41ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Feedback</i></li></ul><p>can you please attach a sample of your data?</p> QGIS Application - Bug report #10711: every geojson layers are named OGRGeoJSONhttps://issues.qgis.org/issues/10711?journal_id=541302014-07-02T07:07:33ZAntonio Locandroantonio.locandro@cocesna.org
<ul></ul><p>Confirmed,</p>
<p>Every time you add a geoJSON layer via add vector command to map canvas the default layer name is OGRGeoJSON instead of reading the filename</p>
<p>Would be much more intuitive if it used filename as default specially if you load several ones</p> QGIS Application - Bug report #10711: every geojson layers are named OGRGeoJSONhttps://issues.qgis.org/issues/10711?journal_id=542202014-07-04T14:04:14ZJürgen Fischerjef@norbit.de
<ul><li><strong>Category</strong> set to <i>Data Provider/OGR</i></li></ul> QGIS Application - Bug report #10711: every geojson layers are named OGRGeoJSONhttps://issues.qgis.org/issues/10711?journal_id=561822014-10-11T02:36:17ZGiovanni Manghigiovanni.manghi@gmail.com
<ul><li><strong>Status</strong> changed from <i>Feedback</i> to <i>Open</i></li><li><strong>Affected QGIS version</strong> changed from <i>2.2.0</i> to <i>master</i></li></ul> QGIS Application - Bug report #10711: every geojson layers are named OGRGeoJSONhttps://issues.qgis.org/issues/10711?journal_id=563402014-10-15T10:06:15ZAntonio Locandroantonio.locandro@cocesna.org
<ul></ul><p>Just to add to this, if you drag & drop the geojson file it does preserve the filename, so this issue only happens using add vector command. IMHO adding files via browser and add vector command should work the same to have the same User Experience</p> QGIS Application - Bug report #10711: every geojson layers are named OGRGeoJSONhttps://issues.qgis.org/issues/10711?journal_id=564042014-10-17T05:04:03ZJukka Rahkonenjukka.rahkonen@mmmtike.fi
<ul></ul><p>Reason is probably that the GDAL GeoJSON driver finds the layer as "OGRGeoJSON". Perhaps this should be discussed with GDAL developers. I don't know if GeoJSON can contain more than one layer or if it is possible to give a name to the layer(s).</p>
<p>ogrinfo test.json<br />ERROR 4: GeoJSON Driver doesn't support update.<br />Had to open data source read-only.<br />INFO: Open of `test.json'<br /> using driver `GeoJSON' successful.<br />1: OGRGeoJSON (Polygon)</p> QGIS Application - Bug report #10711: every geojson layers are named OGRGeoJSONhttps://issues.qgis.org/issues/10711?journal_id=570132014-10-30T12:30:13ZJürgen Fischerjef@norbit.de
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Fixed in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/d94194988f5b0e4384fc024ce3574d89bc98a1a9" title="also restore style for file based layers (followup dfff717a0) and use file name for GeoJSON layer...">d94194988f5b0e4384fc024ce3574d89bc98a1a9</a>.</p>