A new way to add GeoJSON content into QGIS as a layer

When you need to import a GeoJSON file into your QGIS project, you just need to drag & drop the GeoJSON file from File Browser.

Adding a GeoJSON file as a layer is easy as drag & drop action

However, if the GeoJSON content you want to import is not in a file already, then you need to first create a file with this content and import it as shown above. This workaround could be time-consuming especially if you just want to visualize the GeoJSON to see where geometries are located on the map together with other layers repetitively.

On the other hand, you may ask why not just use geojson.io for this purpose. It is a valid question if your data is in WGS-84 (EPSG:4326) or Web Mercator (EPSG:3857) coordinate systems and you don’t want to see your data along with other layers, but if you need to visualize GeoJSON content in different coordinate systems with other layers, you had to follow the solution above until now.

Continue…