|
|
| (12 intermediate revisions by 4 users not shown) |
| Line 1: |
Line 1: |
| {{learned|what a GeoJSON is|how to create a GeoJSON file|how to upload GeoJSON data into the {{software}}}}
| | GeoJSON is a file format for geographical data (e.g. [[Polygon]]s or [[Point]]s). It is a simple text-based format which can be read by humans, but also by computers. Any Geo Dataset in another format can be converted to the GeoJSON file format. |
| [[Category:Files]] | |
| | |
| ==What is GeoJSON==
| |
| GeoJSON is a file format for geographical data. It is a simple text-based format which can be read by humans, but also by computers. Any Geo Dataset in another format can be converted to the GeoJSON file format.
| |
|
| |
|
| ==How to create a GeoJSON file== | | ==How to create a GeoJSON file== |
| To convert a Geo Data set so that it meets these requirements, for example a GIS (Geographical Information System) can be used. ArcGIS Desktop is one example. An open-source alternative is QGIS. | | To convert a Geo Dataset to a GeoJSON, a GIS (Geographical Information System) can be used. ArcGIS Desktop is one example. An open-source alternative is QGIS. |
|
| |
|
| The GeoJSON file must conform to a number of prerequisites before it can be loaded properly. Files which do not conform to these prerequisites may not be loaded properly by the {{software}}. The requirements are:
| | *Go to the documentation for [[How_to_create_a_GeoJSON_file_in_ArcMap|ArcGIS]] |
| * The file must be saved in GeoJSON format
| | *Go to the documentation for [[How_to_create_a_GeoJSON_in_QGIS|QGIS]] |
| * The file must have a CRS (Coordinate Reference System) defined
| |
| * The file must use character encoding UTF-8.
| |
| * All desired attributes must be numerical, so that they can be loaded as valid [[attribute]] values. Attributes with text values are ignored when attempting to load them as attributes. See for steps, [[Data_preparation#Text_attributes|this page]].
| |
|
| |
|
| Also take a look at the [[Data_preparation|data preparation]] page for considerations and tips regarding importing geo data. | | Also take a look at the [[Data_preparation|data preparation]] page for considerations and tips regarding importing geo data. |
|
| |
|
| | Use the [[Geo Data Wizard]] for importing the created file. Select in step 1 the first option: ''Import a GeoJSON file'' and follow the steps in the wizard. |
|
| |
|
| {{editor steps|title=create a GeoJSON file|Open the Geo Dataset in a GIS|Save the file in GeoJSON format with encoding UTF-8}}
| | ==Import requirements== |
| | The GeoJSON file must meet the following requirements to be loaded properly by the {{software}}: |
| | * The file must be saved in GeoJSON format. |
| | * The file must have a CRS (Coordinate Reference System) defined. |
| | * The file must use character encoding UTF-8. |
| | * All desired attributes must be numerical, so that they can be loaded as valid [[attribute]] values. Attributes with text values are ignored when attempting to load them as attributes. |
|
| |
|
| The next sections show how to create a GeoJSON file in ArcGIS en QGIS.
| | {{article end |
| | |notes= |
| | *Shapefiles can be converted to GeoJSONs using [[QGIS]] |
| | |howtos= |
| | * [[Data preparation#Text_attributes|How to create a mapping from text to numerical attributes]] |
| | *[[How to create an interest area GeoJSON]] |
| | }} |
|
| |
|
| *Go to the documentation for [[#How_to_create_a_GeoJSON_file_in_ArcGIS|ArcGIS]]
| | {{GeoDataOverview}} |
| *Go to the documentation for [[#How_to_create_a_GeoJSON_file_in_QGIS|QGIS]]
| | [[Category:Files]] |
| | |
| ===How to create a GeoJSON file in QGIS===
| |
| These steps for creating a GeoJSON file in QGIS are described in more detail below.
| |
| | |
| ===How to create a GeoJSON file in ArcGIS===
| |
| A GeoJSON file can also be created in ArcGIS using the Data Interoperability Extension. Without this extension, it is not possible to create a GeoJSON file.
| |
| Keep in mind that the JSON output data format is not the same as the GeoJSON format.
| |
| Below the steps are provided for creating a GeoJSON file in ArcGIS.
| |
| | |
| | |
| {{editor steps|title=save a dataset in GeoJSON format in ArcGIS|Open the dataset in ArcMap|In the Menu bar go to the Menu Customize and choose Extensions|Select the Data Interoperability Extension|Choose the Quick Export tool from the Data Interoperability Toolbox|In the Quick Export tool: choose the input layer, set as output format GeoJSON and provide a location for saving the exported dataset}} | |
| | |
| | |
| <gallery mode="nolines">
| |
| File:Customize.png|Navigate in the Menu bar to Customize and then click on Extensions
| |
| File:Extensions.png|Select the Data Interoperability Extension
| |
| File:Quick_export.png|Choose the Quick Export tool in the Data Interoperability Toolbox
| |
| File:Quick_export_popup.png|Select the input layer and click on the button (see image)
| |
| File:Format_location.png|Choose the GeoJSON output format and the right location and dataset name for saving the new dataset
| |
| </gallery><br clear=all>
| |
| | |
| ==How to load a GeoJSON file into the {{software}}==
| |
| <!--[[File:GeoJSON_received.jpg|framed|right|After either dragging and dropping the GeoJSON file, or selecting a file with the file-selection window, this window will appear.]]-->
| |
| Use the [[Geo Data Wizard]] for importing the created file. Select in step 1 the first option: ''Import a GeoJSON file'' and follow the steps in the wizard.
| |
| <br>
| |
| {{Template:GeoDataOverview}}
| |
GeoJSON is a file format for geographical data (e.g. Polygons or Points). It is a simple text-based format which can be read by humans, but also by computers. Any Geo Dataset in another format can be converted to the GeoJSON file format.
How to create a GeoJSON file
To convert a Geo Dataset to a GeoJSON, a GIS (Geographical Information System) can be used. ArcGIS Desktop is one example. An open-source alternative is QGIS.
- Go to the documentation for ArcGIS
- Go to the documentation for QGIS
Also take a look at the data preparation page for considerations and tips regarding importing geo data.
Use the Geo Data Wizard for importing the created file. Select in step 1 the first option: Import a GeoJSON file and follow the steps in the wizard.
Import requirements
The GeoJSON file must meet the following requirements to be loaded properly by the Tygron Platform:
- The file must be saved in GeoJSON format.
- The file must have a CRS (Coordinate Reference System) defined.
- The file must use character encoding UTF-8.
- All desired attributes must be numerical, so that they can be loaded as valid attribute values. Attributes with text values are ignored when attempting to load them as attributes.
Notes
- Shapefiles can be converted to GeoJSONs using QGIS
How-to's