|
|
(99 intermediate revisions by 5 users not shown) |
Line 1: |
Line 1: |
| {{stub}}
| | 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. |
|
| |
|
| {{learned|what GeoJSON is|how GeoJSON relates to the Tygron Engine|what data can be read into the Tygron Engine|how to prepare your GeoJSON file|how to upload GeoJSON data into the Engine}}
| | ==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. |
|
| |
|
| ==What is GeoJSON==
| | *Go to the documentation for [[How_to_create_a_GeoJSON_file_in_ArcMap|ArcGIS]] |
| GeoJson is a file format, which is meant to store data about geographical features (GIS data). It is a simple text-based format which can be inspected by humans, but is also readable by most GIS software.
| | *Go to the documentation for [[How_to_create_a_GeoJSON_in_QGIS|QGIS]] |
|
| |
|
| ==How GeoJSON relates to the Tygron Engine==
| | Also take a look at the [[Data_preparation|data preparation]] page for considerations and tips regarding importing geo data. |
| [[Project]]s in the Tygron Engine consist of a number of spatial data layers, such as [[construction]]s, [[zone]]s, and [[land]]. When a project is newly created using the [[wizard]], much of this data is already aggregated from [[data sources|available data]]. However, it may be desirable to load additional data into the project. The Tygron Engine can read GeoJSON files for this purpose.
| |
|
| |
|
| ==When to use GeoJSON files== | | ====Notes==== |
| The Tygron Engine creates projects using the wizard with a number of default data sources. However, some users or organisations may have data which is preferable or complementary to the data already present in the project. This may be for a number of reasons:
| | 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: |
| * The project takes place in a location for which there are no data sources connected by default
| | * The file must be saved in GeoJSON format |
| * The default data sources are not accurate or up-to-date enough
| | * The file must have a CRS (Coordinate Reference System) defined |
| * The project's intended starting situation is not the same as the real, current situation
| |
| * There is some form of data which is not covered by the Tygron Engine by default
| |
| In these situations, data in the Tygron Engine can be overwritten or supplemented by the user.
| |
| | |
| ==Data in the Engine== | |
| When loading a GeoJSON file, it can take the form of a number of data types. Currently, it is possible to use GeoJSON files to automatically create or update a number of types of data in the world. Data can be loaded in as:
| |
| * [[Construction]]s (Constructions placed based on the shapes defined in the file)
| |
| * [[Area]]s (Areas placed based on the shapes defined in the file)
| |
| * [[Zoning]] (Zones placed based on the shapes defined in the file)
| |
| * Construction values (Constructions are modified based on the attributes in the file)
| |
| | |
| ==How to prepare a GIS file==
| |
| A GIS file can be converted into a GeoJSON file, so that it can be loaded by the Tygron Engine. Any 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 Tygron Engine.
| |
| * The file must be saved in GeoJSON format. | |
| * The file must use coordinate system EPSG:3857, Pseudo Mercator. | |
| * The file must use character encoding UTF-8. | | * The file must use character encoding UTF-8. |
| * All desired shapes must be polygons. Not lines or points. Non-polygon shapes are ignored.
| | * 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]]. |
| * All desired attributes must be numerical, so that they can be loaded as valid [[attribute]] values. Non-numeric attributes are ignored when attempting to load them as attributes. | |
| To convert a GIS file so that it meets these requirements, almost any GIS application can be used. ArcGIS Desktop is one example. An open-source alternative is QGIS. Whichever application is selected should allow for inspecting the existing shapes, and transforming them into polygons. This can often be done by, for example, creating a buffer around any shape which is not yet a polygon. They should also allow for inspecting and adding attributes to the shapes. Any attribute information which is to be uploaded should be numerical. If any attribute is not numerical, the values of that attribute must either be changed to be valid numbers, or a new attribute must be created with a numerical value based on the desired attribute. When this is done for all desired shapes and attributes, the file must be saved with the proper format. It must be saved in the coordinate system specified above, as a GeoJSON file with UTF-8 character encoding. This results in a single ".geojson" file, which can be loaded into the Tygron Engine.
| |
|
| |
|
| {{editor steps|title=Convert a GIS file|Open the GIS file in a GIS application, such as QGIS|If necessary, turn non-polygon shapes such as lines or points into polygons|If necessary, make sure all desired attributes are numeric|Save the file in GeoJSON format, using EPSG:3857, Pseudo Mercator, with encoding UTF-8}}
| |
|
| |
|
| ===How to prepare a GIS file using QGIS===
| | ==How to import GeoJSON file== |
| | |
| ==How to load a GeoJSON file into the engine==
| |
| <!--[[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.]]--> | | <!--[[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.]]--> |
| The Tygron Engine can be provided with a GeoJSON file, either by dragging-and-dropping the relevant file into the Tygron Engine, or by selecting "Import GeoJSON File" from the relevant [[Ribbon]] dropdown menu in the Tygron Engine. When using the dropdown menu, a file-selection screen will appear, so that the relevant GeoJSON file can be selected. When the file has been selected, or dropped into the Engine, a window will appear where its possible to select what kind of data the GeoJSON file should form in the project.
| | 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> |
| Depending on which option is selected, the options on the next window may vary, but a number are consistent for all desired forms of data.
| | {{Template:GeoDataOverview}} |
| | | [[Category:Files]] |
| [[File:GeoJSON_option_select.jpg|framed|right|How many shapes intersect with the 3D world, and the "File selection" option.]]
| |
| [[File:GeoJSON_option_merge.jpg|framed|right|The "Merge" option.]]
| |
| [[File:GeoJSON_option_filter.jpg|framed|right|The "Filter" option.]]
| |
| [[File:GeoJSON_option_name.jpg|framed|right|The "Name" option.]] | |
| | |
| ===Import Constructions===
| |
| | |
| ===Import Construction Values===
| |
| | |
| ===Import Areas===
| |
| | |
| ===Import Zoning===
| |