Geo Plugins tutorial: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
mNo edit summary
 
(51 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|tutorial=Parts of this tutorial are a continuation of the [[Template Project tutorial]].
|tutorial=Parts of this tutorial are a continuation of the [[Template Project tutorial]].
|project=This tutorial can best be started with a Project in the city of The Hague in the Netherlands, due to one of the used data sources being specific to that city. Note that multiple new Projects will be created during this tutorial.
|project=This tutorial can best be started with a Project in the city of The Hague in the Netherlands, due to one of the used data sources being specific to that city. Note that multiple new Projects will be created during this tutorial.
|additional=To work with Project templating functionality fully (specifically, to assign Template status to a Project), either Domain Admin access rights are required, or the assistance of a Domain Admin for your organisation is required.
|additional=To work with Project templating functionality fully (specifically, to assign Template status to a Project), either Domain Admin access rights are required, or the assistance of a Domain Admin for your organization is required.
|Start your project. This can be a pre-existing project, or a newly created project.
|Start your project. This can be a pre-existing project, or a newly created project.
{{page break}}
{{page break}}
===Create a dataset for the tutorial===
===Create a dataset for the tutorial===
Any [[Project]] may contain any number of [[Geo Plugin]]s. However, for the purpose of this tutorial a [[Project]] in a specific location is required, due to some of the steps relying on a datasource which has data only in a specific region.
Any [[Project]] may contain any number of [[Geo Plugin]]s. However, for the purpose of this tutorial a [[Project]] in a specific location is required, due to some of the steps relying on a data source which has data only in a specific region.


Find an open spot in the Project's 3D world.
Find an open spot in the [[project area]] using the [[3D Visualization]].
[[File:GeoPluginTutorial-prep-open-spot.jpg|650px|thumb|center|An open spot.]]
[[File:GeoPluginTutorial-prep-open-spot.jpg|650px|thumb|center|An open spot.]]


In this spot, data can be created which can then be set up to import.
In this spot, data can be created which can then be set up to import.


Draw 3 Areas. They can be any shape or orientation. However, ensure they do not overlap.
Draw 3 [[Area]]s. They can be any shape or orientation. However, ensure they do not overlap.
[[File:GeoPluginTutorial-prep-drawn-areas.jpg|650px|thumb|center|Three drawn Areas, visualized with an Areas Overlay. Ensure they have shapes which do not overlap.]]
[[File:GeoPluginTutorial-prep-drawn-areas.jpg|650px|thumb|center|Three drawn Areas, visualized with an [[Area Overlay]]. Ensure they have shapes which do not overlap.]]


{{page break}}
{{page break}}
Line 23: Line 23:
[[File:GeoPluginTutorial-prep-area-residences.jpg|650px|thumb|center|An Area with a RESIDENCES Attribute.]]
[[File:GeoPluginTutorial-prep-area-residences.jpg|650px|thumb|center|An Area with a RESIDENCES Attribute.]]


{{page break}}
Give ''each'' of the Areas a "GREEN_HEIGHT" Attribute, with values between 10 and 25.
Give ''each'' of the Areas a "GREEN_HEIGHT" Attribute, with values between 10 and 25.
[[File:GeoPluginTutorial-prep-area-green.jpg|650px|thumb|center|The Area now also has a GREEN_HEIGHT Attribute.]]
[[File:GeoPluginTutorial-prep-area-green.jpg|650px|thumb|center|The Area now also has a GREEN_HEIGHT Attribute.]]
Line 38: Line 39:
[[File:GeoPluginTutorial-prep-export.jpg|650px|thumb|center|The geo data export window.]]
[[File:GeoPluginTutorial-prep-export.jpg|650px|thumb|center|The geo data export window.]]


{{page break}}
Opt to export the created [[Area]]s as a [[GeoJSON]] to the [[Geo Share]]. This will create a small file in your [[Domain]]'s [[Geo Share]] space, which can be used as a source for geo data.
Opt to export the created [[Area]]s as a [[GeoJSON]] to the [[Geo Share]]. This will create a small file in your [[Domain]]'s [[Geo Share]] space, which can be used as a source for geo data.
[[File:GeoPluginTutorial-prep-geoshare.jpg|650px|thumb|center|The [[Geo Share]] now has a file for the [[Area]]s exported from this [[Project]].]]
[[File:GeoPluginTutorial-prep-geoshare.jpg|650px|thumb|center|The [[Geo Share]] now has a file for the [[Area]]s exported from this [[Project]].]]
Line 49: Line 51:
[[Geo Plugin]]s offer a way to store such a mapping, so that import operations can be easily repeated. In them, information is stored about which data can be found in the relevant data source, and how that data should be interpreted or modified when it is imported. They can then be used when manually importing data, but can also be called upon when a new Project is created to automatically obtain data relevant for the use-case and models the [[Template Project]] entails.
[[Geo Plugin]]s offer a way to store such a mapping, so that import operations can be easily repeated. In them, information is stored about which data can be found in the relevant data source, and how that data should be interpreted or modified when it is imported. They can then be used when manually importing data, but can also be called upon when a new Project is created to automatically obtain data relevant for the use-case and models the [[Template Project]] entails.


==Geo Plugin for Buildings==
==Using the Geo Import Wizard with a Geo Plugin==
One of the most important benefits of [[Geo Plugin]]s is the ability to define a mapping between data in a data source, and the various [[Function]]s available in the {{software}}. Such a Geo Plugin can then be used while importing data, such as the dataset created earlier, and saved to the [[Geo Share]].
One of the most important benefits of [[Geo Plugin]]s is the ability to define a mapping between data in a data source, and the various [[Function]]s available in the {{software}}. The benefit of this is that the details of how such an import is to be configured is reproducibly prepared.
 
Such a Geo Plugin can then be used while importing mapped data ([[Building]]s and/or [[Measure]]s), such as the dataset created earlier, and saved to the [[Geo Share]].
 
===Geo Plugin for Buildings===


In the editor, go to:
In the editor, go to:
Line 60: Line 66:
[[File:GeoPluginTutorial-geoplugins-add-buildings.jpg|350px|thumb|center|Add a BUILDINGS [[Geo Plugin]].]]
[[File:GeoPluginTutorial-geoplugins-add-buildings.jpg|350px|thumb|center|Add a BUILDINGS [[Geo Plugin]].]]


{{page break}}
In the right panel, set the name of the [[Geo Plugin]] to "Geo Plugin for Buildings".
In the right panel, set the name of the [[Geo Plugin]] to "Geo Plugin for Buildings".
[[File:GeoPluginTutorial-geoplugin-name-buildings.jpg|350px|thumb|center|Name for the [[Geo Plugin]].]]
[[File:GeoPluginTutorial-geoplugin-name-buildings.jpg|350px|thumb|center|Name for the [[Geo Plugin]].]]
Line 75: Line 82:
[[File:GeoPluginTutorial-geolink-building.jpg|650px|thumb|center|The bottom panel for the [[Geo Link]] of a BUILDINGS [[Geo Plugin]].]]
[[File:GeoPluginTutorial-geolink-building.jpg|650px|thumb|center|The bottom panel for the [[Geo Link]] of a BUILDINGS [[Geo Plugin]].]]


{{page break}}
A [[Geo Link]] is a specific connection which can be applied to any feature. Based on the configuration of the [[Geo Link]], a feature will either be processed and imported, or it will not be processed by this [[Geo Link]]. With multiple [[Geo Link]]s in a [[Geo Plugin]], every feature is checked for whichever [[Geo Link]] has the best match (if any) and then that [[Geo Link]] will dictate how the feature is imported.
A [[Geo Link]] is a specific connection which can be applied to any feature. Based on the configuration of the [[Geo Link]], a feature will either be processed and imported, or it will not be processed by this [[Geo Link]]. With multiple [[Geo Link]]s in a [[Geo Plugin]], every feature is checked for whichever [[Geo Link]] has the best match (if any) and then that [[Geo Link]] will dictate how the feature is imported.


Line 97: Line 105:
[[File:GeoPluginTutorial-geolink-offices-matching.jpg|650px|thumb|center|The [[Geo Link]] will require a feature to have an OFFICES [[Attribute]], with any value.]]
[[File:GeoPluginTutorial-geolink-offices-matching.jpg|650px|thumb|center|The [[Geo Link]] will require a feature to have an OFFICES [[Attribute]], with any value.]]


{{page break}}
In the right panel, add another [[Geo Link]].
In the right panel, add another [[Geo Link]].


Line 106: Line 115:


[[File:GeoPluginTutorial-geolink-residences-matching.jpg|650px|thumb|center|The [[Geo Link]] will require a feature to have an RESIDENCES [[Attribute]], with any value.]]
[[File:GeoPluginTutorial-geolink-residences-matching.jpg|650px|thumb|center|The [[Geo Link]] will require a feature to have an RESIDENCES [[Attribute]], with any value.]]
{{page break}}


===Import Buildings using the Geo Plugin===
===Import Buildings using the Geo Plugin===
Line 118: Line 129:
As data source to import data from, opt to import a [[GeoJSON]].
As data source to import data from, opt to import a [[GeoJSON]].


{{page break}}
Select the file which was created earlier and stored on the [[Geo Share]]. It should be easily parsed and recognize 3 features.
Select the file which was created earlier and stored on the [[Geo Share]]. It should be easily parsed and recognize 3 features.


Line 126: Line 138:
[[File:GeoPluginTutorial-import-name.jpg|350px|thumb|center|Enter a name of your choosing.]]
[[File:GeoPluginTutorial-import-name.jpg|350px|thumb|center|Enter a name of your choosing.]]


{{page break}}
Continue to the step regarding Function Mapping. In that step, opt to use a [[Geo Plugin]], and select the [[Geo Plugin]] created earlier.
Continue to the step regarding Function Mapping. In that step, opt to use a [[Geo Plugin]], and select the [[Geo Plugin]] created earlier.


[[File:GeoPluginTutorial-select-plugin.jpg|350px|thumb|center|Select the [[Geo Plugin]] which was set up map features to [[Building]]s.]]
[[File:GeoPluginTutorial-select-plugin.jpg|350px|thumb|center|Select the [[Geo Plugin]] which was set up map features to [[Building]]s.]]


Continue through the rest of the steps of the import wizard, and finish it. The [[Building]]s will now appear in the [[3D world]].
Continue through the rest of the steps of the import wizard, and finish it. The [[Building]]s will now appear in the [[3D Visualization]].


[[File:GeoPluginTutorial-buildings-imported.jpg|650px|thumb|center|The buildings are now imported into the [[3D world]].]]
[[File:GeoPluginTutorial-buildings-imported.jpg|650px|thumb|center|The buildings are now imported into the [[3D Visualization]].]]


Notice that although there are 3 features in the dataset, only 2 features are loaded in. This is because the [[Geo Plugin]] has a few [[Geo Link]] which the features can match with, and 1 of the features is not matched by any of the [[Geo Link]]s. Contrary to how the [[Geo Data Wizard]]'s manual mapping options structurally defines a default [[Function]] for any unmatched features, an import with a [[Geo Plugin]] will ignore features which are not matched by any of the [[Geo Link]]s.
Notice that although there are 3 features in the dataset, only 2 features are loaded in. This is because the [[Geo Plugin]] has a few [[Geo Link]] which the features can match with, and 1 of the features is not matched by any of the [[Geo Link]]s. Contrary to how the [[Geo Data Wizard]]'s manual mapping options structurally defines a default [[Function]] for any unmatched features, an import with a [[Geo Plugin]] will ignore features which are not matched by any of the [[Geo Link]]s.


===Using a Template with a Geo Plugin===
{{page break}}
==Templates with Geo Plugins==
One of the most important benefits of [[Geo Plugin]]s is that they can be configured to automatically include data when a [[Template Project]] is used to create a new [[Project]]. While the new [[Project]] is created and the {{software}} establishes connections to external data sources, any active [[Geo Plugin]]s define additional connections which should be used to obtain more data for the [[Project]] automatically.
One of the most important benefits of [[Geo Plugin]]s is that they can be configured to automatically include data when a [[Template Project]] is used to create a new [[Project]]. While the new [[Project]] is created and the {{software}} establishes connections to external data sources, any active [[Geo Plugin]]s define additional connections which should be used to obtain more data for the [[Project]] automatically.


To do this, the [[Geo Plugin]] requires a configuration of a related [[Project Source]] as well. A new [[Project Source]] definition must be created for the dataset which is currently present on the [[Geo Share]], and that [[Project Source]] can then be referenced by the [[Geo Plugin]].
To do this, the [[Geo Plugin]] requires a configuration of a related [[Project Source]] as well. The {{software}} allows for the selection of a number of [[Project Source]]s known by default, and also the addition of alternative [[Project Source]]s which can provide more data.
 
===Geo Plugin for WFS===
[[Geo Plugin]]s are best used as connectors to live data services with coverage for all potentially relevant areas a [[Project]] or [[Template Project|Template]] may apply to. A [[WFS]] is commonly available as a service offering relevant features. Such a [[Geo Plugin]] will require some additonal details related to the specific service which is to be consulted.Specifically, a [[WFS]] is structured in layers and is usually queried in parts, which means some configuration must be provided to properly request the relevant data from it.


In the editor, go to:
In the editor, go to:


{{editor location|geo plugin|Geo Plugin for Buildings}}
{{editor location|geo plugins}}
 
At the bottom of the left panel, set the type selection to AREAS, and then opt to add a [[Geo Plugin]] of that type. It will appear in the list.
 
In the right panel, set the name of the [[Geo Plugin]] to "Geo Plugin for districts".
 
[[File:GeoPluginTutorial-geoplugin-areas-name.jpg|350px|thumb|center|The Geo Plugin name.]]
 
In the right panel, find the "Source" configuration option, and click on "Select". This will open the "Select Source" screen.
 
{{page break}}
Select the Source "CBS Buurten".
 
[[File:GeoPluginTutorial-source-CBS-selected.jpg|650px|thumb|center|The list of Sources offers a number of options available by default.]]
 
Click "OK" This will close the "Select Source" window.
 
[[File:GeoPluginTutorial-geoplugin-areas-source.jpg|350px|thumb|center|The Geo Plugin has a source configured.]]
 
{{page break}}
In the right panel, find the "Layer id" configuration option, and click on "Select".
 
[[File:GeoPluginTutorial-geoplugin-layer.jpg|350px|thumb|center|The layer setting of the Geo Plugin.]]
 
This will open the "Layer selection" prompt.
 
[[File:GeoPluginTutorial-layer-selection.jpg|350px|thumb|center|The prompt to select a layer from the configured source.]]


In the right panel, find the "Source" configuration option, and click on "Select".
Select the "wijken" layer (the name may differ slightly), and click "OK". The "Layer selection" prompt will close, and the "Layer id" will be filled out in the right panel.


[[File:GeoPluginTutorial-source-select.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-geoplugin-areas-layer.jpg|350px|thumb|center|The Geo Plugin's configuration so far.]]


This will open the "Select Source" window.
{{page break}}
Additional inputs have appeared in the right panel.


[[File:GeoPluginTutorial-source-select-window.jpg|350px|thumb|center|.]]
Find the "Name Attribute" configuration option, and click on "Select".


Click on "Add Source". This will open the [[Source Wizard]].
[[File:GeoPluginTutorial-geoplugin-nameattr.jpg|350px|thumb|center|The entry field for the Name Attribute of the configured source.]]


[[File:GeoPluginTutorial-source-wizard.jpg|350px|thumb|center|.]]
This will open a prompt with which to select the name [[Attribute]]. [[Area]]s created by this [[Geo Plugin]] will have a name based on what the original feature had as a value in this [[Attribute]].


Opt to select a service found in the [[Geo Share]], and continue to the next step.
[[File:GeoPluginTutorial-nameattr-prompt.jpg|350px|thumb|center|Select "wijknaam" as name attribute.]]


[[File:GeoPluginTutorial-source-wizard-geoshare.jpg|350px|thumb|center|.]]
Select the attribute "wijknaam", and click "OK". The prompt will close, and the "Name Attribute" will be filled out with the name of the selected [[Attribute]].


In the list of available [[GeoJSON]]s, select the [[GeoJSON]] of the previously created dataset, and continue to the next step.
[[File:GeoPluginTutorial-geoplugin-areas-nameattr.jpg|350px|thumb|center|The name attribute is now filled in as well.]]


[[File:GeoPluginTutorial-source-wizard-geojson.jpg|350px|thumb|center|.]]
{{page break}}
Find the "Unique ID Attribute" configuration option, and click on "Select".
 
[[File:GeoPluginTutorial-geoplugin-uniqueid.jpg|350px|thumb|center|The Unique ID attribute entry field.]]
 
This will open a prompt with which to select a uniquely identifying [[Attribute]] of the source data. This is important when data can be queried for large extents, as larger extents will require multiple queries to obtain all the data. To prevent the same feature to be loaded in multiple times, the features are checked to have a uniquely identifying [[Attribute]], and duplicates are discarded.


In the final step, the name and the underlying [[URL]] of the [[Project Source]] can be reviewed. Nothing needs to be changed.
Select the attribute "wijkcode", and click "OK". The prompt will close, and the "Unique ID Attribute" will be filled out with the name of the selected [[Attribute]].


[[File:GeoPluginTutorial-source-wizard-url.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-geoplugin-areas-general.jpg|350px|thumb|center|The complete source configuration of the Geo Plugin.]]


Continue past the final step. The wizard will close, and the "Select Source" window will close as well. Notice the newly created [[Project Source]] is configured in the [[Geo Plugin]].
The configuration of the [[Geo Plugin]] is now such that it should refer to the dataset of districts of the dutch CBS, using the "wijknaam" (district name) as the name for the resulting [[Area]]s in the [[Project]], and using the "wijkcode" (district code) to uniquely identify the features so as to prevent duplicates.


[[File:GeoPluginTutorial-geoplugin-source-configured.jpg|350px|thumb|center|.]]
{{page break}}


Save and exit the [[Project]], and restart the {{software}} application.
===Template with a WFS Geo Plugin===


In the main menu, switch to the projects overview and ensure the project created so far is set to "Template".
Save and exit the [[Project]]. Then restart the {{software}} application.


[[File:GeoPluginTutorial-project-template-marked.jpg|350px|thumb|center|.]]
In the main menu, switch to the projects overview and ensure the Project created so far is set to "Template".
 
[[File:GeoPluginTutorial-project-template-marked.jpg|350px|thumb|center|The Project is now marked as a "template".]]


In the main menu, opt to create a new [[Project]] and select the [[Template Project]] created so far.
In the main menu, opt to create a new [[Project]] and select the [[Template Project]] created so far.


[[File:GeoPluginTutorial-newproject-template.jpg|650px|thumb|center|.]]
[[File:GeoPluginTutorial-newproject-template2.jpg|650px|thumb|center|Selection for the creation of a new Project based on the created Template.]]


In the location selection screen, place the location selection on approximately the same location as the [[Template Project]] is on. Of importance is to have it at least cover the area where the dataset was created earlier.
{{page break}}
In the location selection screen, it is recommended to again place the location selection on approximately the same location as the [[Template Project]] is on. For the demonstration of the WFS, the location can vary more as the dataset has coverage on all of the Netherlands.


[[File:GeoPluginTutorial-location.jpg|650px|thumb|center|Ensure the location is in the same location as the dataset, and by extension the same location as the [[Template Project]].]]
[[File:GeoPluginTutorial-location2.jpg|650px|thumb|center|A Project location selected near the location of the original Project.]]


Open the "Advanced Options" panel.
Open the "Advanced Options" panel.
Line 191: Line 243:
[[File:GeoPluginTutorial-advanced-options-button.jpg|350px|thumb|center|The "Advanced Options" allow for more insight and flexibility in the data used for new [[Project]]s.]]
[[File:GeoPluginTutorial-advanced-options-button.jpg|350px|thumb|center|The "Advanced Options" allow for more insight and flexibility in the data used for new [[Project]]s.]]


{{page break}}
Switch to the "Custom" tab. Take note that the [[Geo Plugin]] created is listed here, and can be set to active or inactive. Ensure the [[Geo Plugin]] is active.
Switch to the "Custom" tab. Take note that the [[Geo Plugin]] created is listed here, and can be set to active or inactive. Ensure the [[Geo Plugin]] is active.


Line 197: Line 250:
Start the map creation process.
Start the map creation process.


While the data is being collected from the various data sources, notice an additional entry is present named "Custom Buildings".
While the data is being collected from the various data sources, notice an additional entry is present named "Custom Areas".
 
[[File:GeoPluginTutorial-loading-custom-areas.jpg|350px|thumb|center|Additional source in the loading screen.]]
 
{{page break}}
After the [[Project]] has generated and the [[3D Visualization]] is rendered, go to:
 
{{editor location|Areas}}


[[File:GeoPluginTutorial-loading-custom-buildings.jpg|350px|thumb|center|An additional entry while loading data.]]
Notice a list of [[Area]]s has been added to the [[Project]] automatically. The list of [[Area]]s is similar to the list of [[Neighborhood]]s, but is a higher-level urban subdivision.


After the [[Project]] has generated and the [[3D world]] is visible, notice that the [[Building]]s from the created dataset are immediately present in the [[3D world]].
[[File:GeoPluginTutorial-newproject-areas.jpg|650px|thumb|center|A list of district from the CBS, loaded in as [[Area]]s automatically in a new [[Project]].]]


[[File:GeoPluginTutorial-buildings-loaded.jpg|650px|thumb|center|A newly created [[Project]] immediately contains the features of the dataset as [[Building]]s.]]
{{page break}}


==Geo Plugin for WFS==
===Template with a Geo Plugin for GeoShare===
[[Geo Plugin]]s are best used as connectors to live data sources with coverage for all potentially relevant areas a [[Project]] or [[Template Project|Template]] may apply to. Setting up a [[Geo Plugin]] for a [[WFS]] is similar to setting one up for [[GeoJSON]] data, but with a few more details related to the specific service. Specifically, a [[WFS]] is structured in layers and is usually queried in parts, which means some configuration must be provided to properly request the relevant data from it.
Data on the [[GeoShare]] can be automatically added to a [[Project]] at [[Project generation]] as well. To do this, the [[Geo Plugin]] requires a configuration of a related [[Project Source]], in a similar fashion as a [[WFS]]. A new [[Project Source]] definition must be created for the dataset which is currently present on the [[Geo Share]], and that [[Project Source]] can then be referenced by the [[Geo Plugin]].


Reopen the [[Template Project]] in the editor.
First, the file on the [[GeoShare]] must be made available as a [[WFS]] . This can be done by creating a [[GeoShare Viewer]] for the file.


In the editor, go to:
In the editor, go to:


{{editor location|geo plugins}}
{{editor location|geo share}}
 
Navigate to the location where the file created earlier was stored.
 
[[File:GeoPluginTutorial-geoshare-file.jpg|350px|thumb|center|The GeoShare with the previously created file already uploaded.]]
 
In the bottom of the [[Geo Share]] window, click on "Add Viewer".
 
[[File:GeoPluginTutorial-geoshare-viewer-add.jpg|350px|thumb|center|Add a viewer to the GeoShare.]]
 
{{page break}}
A prompt will appear to name the new viewer. Enter a name for the new viewer. For the purpose of experimentation, the viewer can be named "geoplugin tutorial viewer", for example.
 
[[File:GeoPluginTutorial-geoshare-viewer-name.jpg|350px|thumb|center|Enter a name for the viewer.]]
 
A prompt will appear allowing the selection of a file to be included in the [[Geoshare Viewer]].
 
[[File:GeoPluginTutorial-geoshare-viewer-file.jpg|350px|thumb|center|select the desired file to include in the viewer.]]
 
Select the file created earlier, and confirm. Then, opt to not add any additional layers to the [[Geoshare Viewer]].
 
A new viewer is now added to the [[Geo Share]], named "geoplugin tutorial viewer".
 
[[File:GeoPluginTutorial-geoshare-viewer-added.jpg|350px|thumb|center|There is now a viewer in the GeoShare.]]
 
Click on the viewer's "edit" icon.
 
[[File:GeoPluginTutorial-geoshare-viewer-edit.jpg|350px|thumb|center|Details of the viewer can be inspected/edited.]]


At the bottom of the left panel, set the type selection to AREAS, and then opt to add a [[Geo Plugin]] of that type. It will appear in the list.
{{page break}}
This will show the details and content of the viewer.


In the right panel, set the name of the [[Geo Plugin]] to "Geo Plugin for districts".
[[File:GeoPluginTutorial-geoshare-viewer-details.jpg|350px|thumb|center|The details and configuration of the wfs.]]


[[File:GeoPluginTutorial-geoplugin-areas-name.jpg|350px|thumb|center|.]]
Click on the "WFS Link" link.


In the right panel, find the "Source" configuration option, and click on "Select". This will again open the "Select Source" screen.
[[File:GeoPluginTutorial-geoshare-viewer-wfs.jpg|350px|thumb|center|The WFS Link of the viewer.]]


Select the Source "CBS Buurten".  
A web browser (or new tab in the web browser) will open for the WFS which related to the viewer and its contents (and thus also the geojson file). Copy the address of the page which is open in the web browser.


[[File:GeoPluginTutorial-source-CBS-selected.jpg|650px|thumb|center|.]]
[[File:GeoPluginTutorial-geoshare-wfs-url.jpg|350px|thumb|center|In the web browser the url of the WFS can be selected and copied.]]


Click "OK" This will close the "Select Source" window.
{{page break}}
In the editor, go to:


[[File:GeoPluginTutorial-geoplugin-areas-source.jpg|350px|thumb|center|.]]
{{editor location|geo plugin|Geo Plugin for Buildings}}


In the right panel, find the "Layer id" configuration option, and click on "Select".
In the right panel, find the "Source" configuration option, and click on "Select".


[[File:GeoPluginTutorial-geoplugin-layer.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-source-select.jpg|350px|thumb|center|The source for the Buildings Geo Plugin can now be configured.]]


This will open the "Layer selection" prompt.
This will again open the "Select Source" window.


[[File:GeoPluginTutorial-layer-selection.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-source-select-window.jpg|350px|thumb|center|The Source selection screen.]]


Select the "wijken" layer (the name may differ slightly), and click "OK". The "Layer selection" prompt will close, and the "Layer id" will be filled out in the right panel.
Click on "Add Source or inspect local file".


[[File:GeoPluginTutorial-geoplugin-areas-layer.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-source-add.jpg|350px|thumb|center|A new Source can be added via this overview.]]


Additional inputs have appeared in the right panel.
{{page break}}
This will open the [[Source Wizard]].


Find the "Name Attribute" configuration option, and click on "Select".
[[File:GeoPluginTutorial-source-wizard.jpg|350px|thumb|center|The Source Wizard assists in the creation of a new Source.]]


[[File:GeoPluginTutorial-geoplugin-nameattr.jpg|350px|thumb|center|.]]
Continue to the first step.


This will open a prompt with which to select the name [[Attribute]]. [[Area]]s created by this [[Geo Plugin]] will have a name based on what the original feature had as a value in this [[Attribute]].
Opt to select a Web Feature Service as Source, and continue to the next step.


[[File:GeoPluginTutorial-nameattr-prompt.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-source-wizard-wfs.jpg|350px|thumb|center|Opt to add a new WFS.]]


Select the attribute "wijknaam", and click "OK". The prompt will close, and the "Name Attribute" will be filled out with the name of the selected [[Attribute]].
Enter a name for the new [[Project Source]]. For the purpose of experimentation, the source can be named "geoshare source", for example.


[[File:GeoPluginTutorial-geoplugin-areas-nameattr.jpg|350px|thumb|center|.]]
For the URL, paste the url of the [[WFS]].


Find the "Unique ID Attribute" configuration option, and click on "Select".
[[File:GeoPluginTutorial-source-wizard-details.jpg|350px|thumb|center|The configuration for the new Source, using the viewer's WFS link as url.]]


[[File:GeoPluginTutorial-geoplugin-uniqueid.jpg|350px|thumb|center|.]]
{{page break}}
Continue by clicking on "Next". The wizard will close, and the "Select Source" window will close as well. Notice the newly created [[Project Source]] is configured in the [[Geo Plugin]].


This will open a prompt with which to select a uniquely identifying [[Attribute]] of the source data. This is important when data can be queried for large extents, as larger extents will require multiple queries to obtain all the data. To prevent the same feature to be loaded in multiple times, the features are checked to have a uniquely identifying [[Attribute]], and duplicates are discarded.
[[File:GeoPluginTutorial-source-gswfs-configured.jpg|350px|thumb|center|The Source referencing the GeoShare data is now configured.]]


Select the attribute "wijkcode", and click "OK". The prompt will close, and the "Unique ID Attribute" will be filled out with the name of the selected [[Attribute]].
As with the other [[WFS]], select the appropriate layer.


[[File:GeoPluginTutorial-geoplugin-areas-general.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-source-gswfs-layer.jpg|350px|thumb|center|The identifying names of layers of the Geoshare WFS are "LAYER" with a number, but can be easily selected via the "select" prompt.]]


The configuration of the [[Geo Plugin]] is now such that it should refer to the dataset of districts of the dutch CBS, using the "wijknaam" (district name) as the name for the resulting [[Area]]s in the [[Project]], and using the "wijkcode" (district code) to uniquely identify the features so as to prevent duplicates.
For the "Name Attribute" select, the attribute "name".


===Using a Template with a WFS Geo Plugin===
[[File:GeoPluginTutorial-source-gswfs-name.jpg|350px|thumb|center|The name attribute configured.]]


{{page break}}
Save the [[Project]].
Save the [[Project]].


Line 275: Line 367:


[[File:GeoPluginTutorial-permissions.jpg|650px|thumb|center|If all rights are set to READ, set the rights for the owner to WRITE, then save, then set the rights back to READ again.]]
[[File:GeoPluginTutorial-permissions.jpg|650px|thumb|center|If all rights are set to READ, set the rights for the owner to WRITE, then save, then set the rights back to READ again.]]
Exit the [[Project]]. As the [[Project]] has just been explicitly saved, the [[Project]] does not need to be saved on close again.


Restart the {{software}} application.
Restart the {{software}} application.
Line 282: Line 372:
In the main menu, opt to create a new [[Project]] and select the [[Template Project]] created so far.
In the main menu, opt to create a new [[Project]] and select the [[Template Project]] created so far.


[[File:GeoPluginTutorial-newproject-template2.jpg|650px|thumb|center|.]]
[[File:GeoPluginTutorial-newproject-template.jpg|650px|thumb|center|The configuration for the creation of a new Project, based on a Project Template.]]


In the location selection screen, it is recommended to again place the location selection on approximately the same location as the [[Template Project]] is on. For the demonstration of the WFS, the location can vary more as the dataset has coverage on all of the Netherlands.
{{page break}}
In the location selection screen, place the location selection on approximately the same location as the [[Template Project]] is on. Of importance is to have it at least cover the area where the dataset was created earlier.


[[File:GeoPluginTutorial-location2.jpg|650px|thumb|center|.]]
[[File:GeoPluginTutorial-location.jpg|650px|thumb|center|Ensure the location is in the same location as the dataset, and by extension the same location as the [[Template Project]].]]


Start the map creation process.
Start the map creation process.


While the data is being collected from the various data sources, notice an additional entry is present named "Custom Areas".
While the data is being collected from the various data sources, notice an additional entry is present named "Custom Buildings".


[[File:GeoPluginTutorial-loading-custom-areas.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-loading-custom-buildings.jpg|350px|thumb|center|Additional source in the loading screen.]]


After the [[Project]] has generated and the [[3D world]] is visible, go to:
{{page break}}
After the [[Project]] has generated and the [[3D Visualization]] is rendered, notice that the [[Building]]s from the created dataset are immediately present in the [[3D Visualization]].


{{editor location|Areas}}
[[File:GeoPluginTutorial-buildings-loaded.jpg|650px|thumb|center|A newly created [[Project]] immediately contains the features of the dataset as [[Building]]s.]]


Notice a list of [[Area]]s has been added to the [[Project]] automatically. The list of [[Area]]s is similar to the list of [[Neighborhood]]s, but is a higher-level urban subdivision.
{{page break}}
 
[[File:GeoPluginTutorial-newproject-areas.jpg|650px|thumb|center|A list of district from the CBS, loaded in as [[Area]]s automatically in a new [[Project]].]]


==Geo Plugin modifying data==
==Geo Plugin modifying data==
As part of the importing process, [[Geo Plugin]] have the ability not only to obtain data  bus also to modify it to better match the calculation methodology of the {{software}} or of the implemented calculation models.
As part of the importing process, [[Geo Plugin]] have the ability not only to obtain data  but also to modify it to better match the calculation methodology of the {{software}} or of the implemented calculation models.


Reopen the [[Template Project]] in the editor.
Reopen the [[Template Project]] in the editor.
Line 317: Line 407:
[[File:GeoPluginTutorial-geoplugin-trees-name.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-geoplugin-trees-name.jpg|350px|thumb|center|.]]


{{page break}}
Find the "Source" configuration option and click on select to open the "Select Source" screen.
Find the "Source" configuration option and click on select to open the "Select Source" screen.


Line 327: Line 418:
[[File:GeoPluginTutorial-geoplugin-trees-general.jpg|350px|thumb|center|.]]
[[File:GeoPluginTutorial-geoplugin-trees-general.jpg|350px|thumb|center|.]]


{{page break}}
In the right panel, switch to the GeoLinks tab and add a new [[Geo Link]]. Select it.
In the right panel, switch to the GeoLinks tab and add a new [[Geo Link]]. Select it.


Line 345: Line 437:
This option will cause a feature to not be interpreted as a polygon as it is drawn in, but as a singular point which is then consistently buffered. This is important when the source data has trees drawn stylistically (e.g. as a larger extend visually resembling the foliage) rather than as a single trunk position. Loading it in as a point will still place the tree, but will prevent directly surrounding structures from being overwritten.
This option will cause a feature to not be interpreted as a polygon as it is drawn in, but as a singular point which is then consistently buffered. This is important when the source data has trees drawn stylistically (e.g. as a larger extend visually resembling the foliage) rather than as a single trunk position. Loading it in as a point will still place the tree, but will prevent directly surrounding structures from being overwritten.


{{page break}}
Switch to the "Mapped Attributes" tab.
Switch to the "Mapped Attributes" tab.


Line 355: Line 448:
This will cause the GREEN_HEIGHT [[Attribute]], if it is present in the data, to be renamed to FLOOR_HEIGHT_M. Because the FLOOR_HEIGHT_M attribute is used to set the height of trees, this means the dataset's [[Attribute]] of GREEN_HEIGHT will now directly dictate the height of the trees loaded in via this route.
This will cause the GREEN_HEIGHT [[Attribute]], if it is present in the data, to be renamed to FLOOR_HEIGHT_M. Because the FLOOR_HEIGHT_M attribute is used to set the height of trees, this means the dataset's [[Attribute]] of GREEN_HEIGHT will now directly dictate the height of the trees loaded in via this route.


{{page break}}
===Using a Template with multiple Geo Plugins===
===Using a Template with multiple Geo Plugins===


Line 360: Line 454:


: ''Note that you may have to set the editing rights to "WRITE" before you can save the changes. If this is the case, set the editing rights to "WRITE", then save the [[Project]], and then set the editing rights back to "READ".''
: ''Note that you may have to set the editing rights to "WRITE" before you can save the changes. If this is the case, set the editing rights to "WRITE", then save the [[Project]], and then set the editing rights back to "READ".''
[[File:GeoPluginTutorial-permissions.jpg|650px|thumb|center|If all rights are set to READ, set the rights for the owner to WRITE, then save, then set the rights back to READ again.]]


Exit the [[Project]]. As the [[Project]] has just been explicitly saved, the [[Project]] does not need to be saved on close again.
Exit the [[Project]]. As the [[Project]] has just been explicitly saved, the [[Project]] does not need to be saved on close again.
Line 369: Line 465:
[[File:GeoPluginTutorial-newproject-template.jpg|650px|thumb|center|.]]
[[File:GeoPluginTutorial-newproject-template.jpg|650px|thumb|center|.]]


{{page break}}
In the location selection screen, place the location selection on approximately the same location as the [[Template Project]] is on. Of importance is to have it at least cover the area where the dataset was created earlier.
In the location selection screen, place the location selection on approximately the same location as the [[Template Project]] is on. Of importance is to have it at least cover the area where the dataset was created earlier.


Line 379: Line 476:
[[File:GeoPluginTutorial-advanced-option-geoplugin-trees.jpg|650px|thumb|center|.]]
[[File:GeoPluginTutorial-advanced-option-geoplugin-trees.jpg|650px|thumb|center|.]]


{{page break}}
Start the map creation process.
Start the map creation process.


After the [[Project]] has generated and the [[3D world]] is visible, find the locations where the dataset features are located. Previously, [[Building]]s were generated in the area. Now notice 3 trees have been created.
After the [[Project]] has generated and the [[3D Visualization]] is rendered, find the locations where the dataset features are located. Previously, [[Building]]s were generated in the area. Now notice 3 trees have been created.


[[File:GeoPluginTutorial-trees.jpg|650px|thumb|center|There are trees immediately present in the newly generated [[Project]].]]
[[File:GeoPluginTutorial-trees.jpg|650px|thumb|center|There are trees immediately present in the newly generated [[Project]].]]


{{page break}}
In the editor, go to:
In the editor, go to:



Latest revision as of 15:06, 31 October 2023

Prerequisites

The following prerequisites should be met before starting this tutorial:

  • Parts of this tutorial are a continuation of the Template Project tutorial. If you have not yet followed the tutorials related to those subjects please do so first.
  • This tutorial can best be started with a Project in the city of The Hague in the Netherlands, due to one of the used data sources being specific to that city. Note that multiple new Projects will be created during this tutorial.
  • To work with Project templating functionality fully (specifically, to assign Template status to a Project), either Domain Admin access rights are required, or the assistance of a Domain Admin for your organization is required. 

Preparations

Take the following steps as preparation for following this tutorial:

  • Start your project. This can be a pre-existing project, or a newly created project.

Create a dataset for the tutorial

Any Project may contain any number of Geo Plugins. However, for the purpose of this tutorial a Project in a specific location is required, due to some of the steps relying on a data source which has data only in a specific region.

Find an open spot in the project area using the 3D Visualization.

An open spot.

In this spot, data can be created which can then be set up to import.

Draw 3 Areas. They can be any shape or orientation. However, ensure they do not overlap.

Three drawn Areas, visualized with an Area Overlay. Ensure they have shapes which do not overlap.

Give one of the Areas an "OFFICES" Attribute, with value 1.

An Area with an OFFICES Attribute.

Give another of the Areas a "RESIDENCES" Attribute, with value 1.

An Area with a RESIDENCES Attribute.

Give each of the Areas a "GREEN_HEIGHT" Attribute, with values between 10 and 25.

The Area now also has a GREEN_HEIGHT Attribute.

The result should be:

In the editor, go to:

Editor → Current Situation (Ribbon tab) → Areas (Ribbon bar) → Export Geo Data (Dropdown)

This opens the window for exporting the Areas' geo data.

The geo data export window.

Opt to export the created Areas as a GeoJSON to the Geo Share. This will create a small file in your Domain's Geo Share space, which can be used as a source for geo data.

The Geo Share now has a file for the Areas exported from this Project.

The file on the Geo Share now exists separately from the Project and Session it originated from. This file will be used a few times further in the tutorial.

Introduction to Geo Plugins

The Tygron Platform allows for the importing of geo data to enrich a Project. This can serve to both amend data which the Tygron Platform already supplies, but also to add types of data which are unique to the use-case at hand. When importing data, almost all of the related operations are to determine precisely how the imported data relates to the potential data types and subtypes available in a Tygron Platform Project.

Geo Plugins offer a way to store such a mapping, so that import operations can be easily repeated. In them, information is stored about which data can be found in the relevant data source, and how that data should be interpreted or modified when it is imported. They can then be used when manually importing data, but can also be called upon when a new Project is created to automatically obtain data relevant for the use-case and models the Template Project entails.

Using the Geo Import Wizard with a Geo Plugin

One of the most important benefits of Geo Plugins is the ability to define a mapping between data in a data source, and the various Functions available in the Tygron Platform. The benefit of this is that the details of how such an import is to be configured is reproducibly prepared.

Such a Geo Plugin can then be used while importing mapped data (Buildings and/or Measures), such as the dataset created earlier, and saved to the Geo Share.

Geo Plugin for Buildings

In the editor, go to:

Editor → Tools (Ribbon tab) → Geo Plugins (Ribbon bar)

At the bottom of the left panel, set the type selection to BUILDINGS, and then opt to add a Geo Plugin of that type. It will appear in the list.

Add a BUILDINGS Geo Plugin.

In the right panel, set the name of the Geo Plugin to "Geo Plugin for Buildings".

Name for the Geo Plugin.

In the right panel, select the GeoLinks tab

The GeoLinks tab. A Geo Plugin starts without any specific Geo Links.

At the bottom of the right panel click on "Add" to create a Geo Link.

Add a Geo Link.

Select the Geo Link. The bottom panel will appear with details for the Geo Link.

The bottom panel for the Geo Link of a BUILDINGS Geo Plugin.

A Geo Link is a specific connection which can be applied to any feature. Based on the configuration of the Geo Link, a feature will either be processed and imported, or it will not be processed by this Geo Link. With multiple Geo Links in a Geo Plugin, every feature is checked for whichever Geo Link has the best match (if any) and then that Geo Link will dictate how the feature is imported.

This first Geo Link will be a linkage for data to interpret features in geo data as offices.

Change the name of the Geo Link to "Offices link".

Click on "Select Function", and select any office Function.

The Geo Link configured with the proper name and Function.

Switch to the bottom panel's "Matching Attributes" tab. This allows configuring which attributes (and if desired, which values for those attributes) should be found in a feature for it to be processed by this specific Geo Link.

The Geo Link can be configured to require a feature to have specific Attributes before it is processed.

Add an Attribute.

Double-click to edit it, and change the Attribute to "OFFICES".

This completes the configuration of this Geo Link.

The Geo Link will require a feature to have an OFFICES Attribute, with any value.

In the right panel, add another Geo Link.

Set the Geo Link's name to "Residences link", and set the Function to any residential Function, such as "Affordable Housing".

The Geo Link configured with the proper name and Function.

Under "Matching Attributes", add an Attribute, and change that Attribute to "RESIDENCES"

The Geo Link will require a feature to have an RESIDENCES Attribute, with any value.

Import Buildings using the Geo Plugin

Now that the Geo Plugin is set up, it can be used while importing geo data.

In the editor, go to:

Editor → Current Situation (Ribbon tab) → Buildings (Ribbon bar) → Import Geo Data (Dropdown)
The Geo Data Wizard allows for the importing of geo data.

As data source to import data from, opt to import a GeoJSON.

Select the file which was created earlier and stored on the Geo Share. It should be easily parsed and recognize 3 features.

Select the file on the GeoShare which was prepared for the tutorial.

Continue to the step regarding names, and opt to create names based on your own prefix. Enter a name along the lines of "Geo Plugin Building".

Enter a name of your choosing.

Continue to the step regarding Function Mapping. In that step, opt to use a Geo Plugin, and select the Geo Plugin created earlier.

Select the Geo Plugin which was set up map features to Buildings.

Continue through the rest of the steps of the import wizard, and finish it. The Buildings will now appear in the 3D Visualization.

The buildings are now imported into the 3D Visualization.

Notice that although there are 3 features in the dataset, only 2 features are loaded in. This is because the Geo Plugin has a few Geo Link which the features can match with, and 1 of the features is not matched by any of the Geo Links. Contrary to how the Geo Data Wizard's manual mapping options structurally defines a default Function for any unmatched features, an import with a Geo Plugin will ignore features which are not matched by any of the Geo Links.

Templates with Geo Plugins

One of the most important benefits of Geo Plugins is that they can be configured to automatically include data when a Template Project is used to create a new Project. While the new Project is created and the Tygron Platform establishes connections to external data sources, any active Geo Plugins define additional connections which should be used to obtain more data for the Project automatically.

To do this, the Geo Plugin requires a configuration of a related Project Source as well. The Tygron Platform allows for the selection of a number of Project Sources known by default, and also the addition of alternative Project Sources which can provide more data.

Geo Plugin for WFS

Geo Plugins are best used as connectors to live data services with coverage for all potentially relevant areas a Project or Template may apply to. A WFS is commonly available as a service offering relevant features. Such a Geo Plugin will require some additonal details related to the specific service which is to be consulted.Specifically, a WFS is structured in layers and is usually queried in parts, which means some configuration must be provided to properly request the relevant data from it.

In the editor, go to:

Editor → Tools (Ribbon tab) → Geo Plugins (Ribbon bar)

At the bottom of the left panel, set the type selection to AREAS, and then opt to add a Geo Plugin of that type. It will appear in the list.

In the right panel, set the name of the Geo Plugin to "Geo Plugin for districts".

The Geo Plugin name.

In the right panel, find the "Source" configuration option, and click on "Select". This will open the "Select Source" screen.

Select the Source "CBS Buurten".

The list of Sources offers a number of options available by default.

Click "OK" This will close the "Select Source" window.

The Geo Plugin has a source configured.

In the right panel, find the "Layer id" configuration option, and click on "Select".

The layer setting of the Geo Plugin.

This will open the "Layer selection" prompt.

The prompt to select a layer from the configured source.

Select the "wijken" layer (the name may differ slightly), and click "OK". The "Layer selection" prompt will close, and the "Layer id" will be filled out in the right panel.

The Geo Plugin's configuration so far.

Additional inputs have appeared in the right panel.

Find the "Name Attribute" configuration option, and click on "Select".

The entry field for the Name Attribute of the configured source.

This will open a prompt with which to select the name Attribute. Areas created by this Geo Plugin will have a name based on what the original feature had as a value in this Attribute.

Select "wijknaam" as name attribute.

Select the attribute "wijknaam", and click "OK". The prompt will close, and the "Name Attribute" will be filled out with the name of the selected Attribute.

The name attribute is now filled in as well.

Find the "Unique ID Attribute" configuration option, and click on "Select".

The Unique ID attribute entry field.

This will open a prompt with which to select a uniquely identifying Attribute of the source data. This is important when data can be queried for large extents, as larger extents will require multiple queries to obtain all the data. To prevent the same feature to be loaded in multiple times, the features are checked to have a uniquely identifying Attribute, and duplicates are discarded.

Select the attribute "wijkcode", and click "OK". The prompt will close, and the "Unique ID Attribute" will be filled out with the name of the selected Attribute.

The complete source configuration of the Geo Plugin.

The configuration of the Geo Plugin is now such that it should refer to the dataset of districts of the dutch CBS, using the "wijknaam" (district name) as the name for the resulting Areas in the Project, and using the "wijkcode" (district code) to uniquely identify the features so as to prevent duplicates.

Template with a WFS Geo Plugin

Save and exit the Project. Then restart the Tygron Platform application.

In the main menu, switch to the projects overview and ensure the Project created so far is set to "Template".

The Project is now marked as a "template".

In the main menu, opt to create a new Project and select the Template Project created so far.

Selection for the creation of a new Project based on the created Template.

In the location selection screen, it is recommended to again place the location selection on approximately the same location as the Template Project is on. For the demonstration of the WFS, the location can vary more as the dataset has coverage on all of the Netherlands.

A Project location selected near the location of the original Project.

Open the "Advanced Options" panel.

The "Advanced Options" allow for more insight and flexibility in the data used for new Projects.

Switch to the "Custom" tab. Take note that the Geo Plugin created is listed here, and can be set to active or inactive. Ensure the Geo Plugin is active.

The "Advanced Options" show the available Geo Plugins.

Start the map creation process.

While the data is being collected from the various data sources, notice an additional entry is present named "Custom Areas".

Additional source in the loading screen.

After the Project has generated and the 3D Visualization is rendered, go to:

Editor → Current Situation (Ribbon tab) → Areas (Ribbon bar)

Notice a list of Areas has been added to the Project automatically. The list of Areas is similar to the list of Neighborhoods, but is a higher-level urban subdivision.

A list of district from the CBS, loaded in as Areas automatically in a new Project.

Template with a Geo Plugin for GeoShare

Data on the GeoShare can be automatically added to a Project at Project generation as well. To do this, the Geo Plugin requires a configuration of a related Project Source, in a similar fashion as a WFS. A new Project Source definition must be created for the dataset which is currently present on the Geo Share, and that Project Source can then be referenced by the Geo Plugin.

First, the file on the GeoShare must be made available as a WFS . This can be done by creating a GeoShare Viewer for the file.

In the editor, go to:

Editor → Current Situation (Ribbon tab) → Geo import (Ribbon bar) → Geo Share (Dropdown)

Navigate to the location where the file created earlier was stored.

The GeoShare with the previously created file already uploaded.

In the bottom of the Geo Share window, click on "Add Viewer".

Add a viewer to the GeoShare.

A prompt will appear to name the new viewer. Enter a name for the new viewer. For the purpose of experimentation, the viewer can be named "geoplugin tutorial viewer", for example.

Enter a name for the viewer.

A prompt will appear allowing the selection of a file to be included in the Geoshare Viewer.

select the desired file to include in the viewer.

Select the file created earlier, and confirm. Then, opt to not add any additional layers to the Geoshare Viewer.

A new viewer is now added to the Geo Share, named "geoplugin tutorial viewer".

There is now a viewer in the GeoShare.

Click on the viewer's "edit" icon.

Details of the viewer can be inspected/edited.

This will show the details and content of the viewer.

The details and configuration of the wfs.

Click on the "WFS Link" link.

The WFS Link of the viewer.

A web browser (or new tab in the web browser) will open for the WFS which related to the viewer and its contents (and thus also the geojson file). Copy the address of the page which is open in the web browser.

In the web browser the url of the WFS can be selected and copied.

In the editor, go to:

Editor → Tools (Ribbon tab) → Geo Plugins (Ribbon bar) → Geo Plugin for Buildings (Left panel)

In the right panel, find the "Source" configuration option, and click on "Select".

The source for the Buildings Geo Plugin can now be configured.

This will again open the "Select Source" window.

The Source selection screen.

Click on "Add Source or inspect local file".

A new Source can be added via this overview.

This will open the Source Wizard.

The Source Wizard assists in the creation of a new Source.

Continue to the first step.

Opt to select a Web Feature Service as Source, and continue to the next step.

Opt to add a new WFS.

Enter a name for the new Project Source. For the purpose of experimentation, the source can be named "geoshare source", for example.

For the URL, paste the url of the WFS.

The configuration for the new Source, using the viewer's WFS link as url.

Continue by clicking on "Next". The wizard will close, and the "Select Source" window will close as well. Notice the newly created Project Source is configured in the Geo Plugin.

The Source referencing the GeoShare data is now configured.

As with the other WFS, select the appropriate layer.

The identifying names of layers of the Geoshare WFS are "LAYER" with a number, but can be easily selected via the "select" prompt.

For the "Name Attribute" select, the attribute "name".

The name attribute configured.

Save the Project.

Note that you may have to set the editing rights to "WRITE" before you can save the changes. If this is the case, set the editing rights to "WRITE", then save the Project, and then set the editing rights back to "READ".
If all rights are set to READ, set the rights for the owner to WRITE, then save, then set the rights back to READ again.

Restart the Tygron Platform application.

In the main menu, opt to create a new Project and select the Template Project created so far.

The configuration for the creation of a new Project, based on a Project Template.

In the location selection screen, place the location selection on approximately the same location as the Template Project is on. Of importance is to have it at least cover the area where the dataset was created earlier.

Ensure the location is in the same location as the dataset, and by extension the same location as the Template Project.

Start the map creation process.

While the data is being collected from the various data sources, notice an additional entry is present named "Custom Buildings".

Additional source in the loading screen.

After the Project has generated and the 3D Visualization is rendered, notice that the Buildings from the created dataset are immediately present in the 3D Visualization.

A newly created Project immediately contains the features of the dataset as Buildings.

Geo Plugin modifying data

As part of the importing process, Geo Plugin have the ability not only to obtain data but also to modify it to better match the calculation methodology of the Tygron Platform or of the implemented calculation models.

Reopen the Template Project in the editor.

In the editor, go to:

Editor → Tools (Ribbon tab) → Geo Plugins (Ribbon bar)

Add a new Geo Plugin for BUILDINGS.

Set the name of the Geo Plugin "Trees".

.

Find the "Source" configuration option and click on select to open the "Select Source" screen.

Because a Project Source for the dataset on the GeoShare was already created when creating the first BUILDINGS Geo Plugin, the source can be directly selected and confirmed without the need to create it again.

.

The Geo Plugin now has the source configured.

.

In the right panel, switch to the GeoLinks tab and add a new Geo Link. Select it.

A single Geo Link is added.

In the bottom panel, change the "Name" of the Geo Link to "Default trees".

Set the Function of the Geo Link to "Default Deciduous Trees".

.

The way the Geo Link is set up now it will load in the features it finds as trees. However, trees have a couple of special properties in the Tygron Platform which the original dataset may not take into account. A Geo Link can be configured to bridge that difference.

Set the "Geometry" option of the Geo Link to RADIUS_CENTERPOINT.

.

This option will cause a feature to not be interpreted as a polygon as it is drawn in, but as a singular point which is then consistently buffered. This is important when the source data has trees drawn stylistically (e.g. as a larger extend visually resembling the foliage) rather than as a single trunk position. Loading it in as a point will still place the tree, but will prevent directly surrounding structures from being overwritten.

Switch to the "Mapped Attributes" tab.

.

Add an Attribute named "GREEN_HEIGHT", and set its rename value to "FLOOR_HEIGHT_M".

.

This will cause the GREEN_HEIGHT Attribute, if it is present in the data, to be renamed to FLOOR_HEIGHT_M. Because the FLOOR_HEIGHT_M attribute is used to set the height of trees, this means the dataset's Attribute of GREEN_HEIGHT will now directly dictate the height of the trees loaded in via this route.

Using a Template with multiple Geo Plugins

Save the Project.

Note that you may have to set the editing rights to "WRITE" before you can save the changes. If this is the case, set the editing rights to "WRITE", then save the Project, and then set the editing rights back to "READ".
If all rights are set to READ, set the rights for the owner to WRITE, then save, then set the rights back to READ again.

Exit the Project. As the Project has just been explicitly saved, the Project does not need to be saved on close again.

Restart the Tygron Platform application.

In the main menu, opt to create a new Project and select the Template Project created so far.

.

In the location selection screen, place the location selection on approximately the same location as the Template Project is on. Of importance is to have it at least cover the area where the dataset was created earlier.

.

Open the "Advanced Options" panel.

Switch to the "Custom" tab. Ensure the Geo Plugin for Buildings" is deactivated. Ensure the Geo Plugin for "Trees" is active.

.

Start the map creation process.

After the Project has generated and the 3D Visualization is rendered, find the locations where the dataset features are located. Previously, Buildings were generated in the area. Now notice 3 trees have been created.

There are trees immediately present in the newly generated Project.

In the editor, go to:

Editor → Current Situation (Ribbon tab) → Buildings (Ribbon bar)

Click on one of the trees. Notice the polygon of the tree is only a small shape indicating the location of the trunk.

The polygons of the trees, highlighted by blue indication lines.

In the right panel, switch to the "Details" tab to see the Building's Function Values, en select the "CONSTRUCTION" filter. Notice the Floor Height M Function Value value is red (indicating it has a non-default value) matching the value which was set in the data these trees were based on.

The Floor Height M Function Value is set to a specific value.

Final notes

Although not part of the general explanation provided in this tutorial, the following notes are important to keep in mind:

Tutorial completed

Congratulations. You have now completed this tutorial. In it, you have learned how to create Geo Plugins and use them to automatically map geo data, and use them to automatically retrieve data when using your Project as a Template to create a new Project.