In this article, we will detail how to convert a vector data (e.g. in Shapefile format) to GeoJSON using QGIS. Links to other free tools available online are also provided.
Geodesignhub supports the GeoJSON format for importing data. GeoJSON is a open standard for representing geographical features and also storing their non-spatial attributes. GeoJSON is natively supported by many tools including QGIS and GDAL.
-
In order to convert a vector data to GeoJSON to be used in Geodesignhub, Please ensure that the data is projected to WGS 1984 projection because this is the only projection supported by GeoJSON.
-
Load the vector data in QGIS, using add a vector layer command.
-
Right click on the layer and select the “Save As…” command
-
Save the GeoJSON file.
In case the saved GeoJSON file is more than 4MB, it needs to be simplified. It is recommended that you remove all attributes and just keep the ones necessary to reduce size even more. Please review the simplifying maps topic for tools and settings for simplification.
Beta tool
Geodesignhub Evaluation Maps Converter
We have created our open source own tool to convert Evaluation maps into GeoJSON that can be uploaded in Geodesignhub. You can access it using the URL above, it only supports GeoPackage which is a open OGC format for Spatial Data.
Other online tools
-
Ogre: A online tool to convert vector data to GeoJSON using the ogr2ogr command.
-
Mapshaper: A online tool to upload many data formats, simplify it and download as GeoJSON.
-
MyGeoData.eu: Another online tool to convert between different GIS data formats.
In addition there are numerous libraries in Python and other languages that can help you with the conversion. A partial list is here: awesome-geojson