Geo Data tutorial: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 23: Line 23:
# Now we need to find data that is published as a WFS. For the Netherlands, you can go for example to the: [http://nationaalgeoregister.nl Nationaal Georegister]. Here you van browse for open datasets. Type in: “archeologie” and click on the first hit: ''Archeologie Catalogus''. Take a moment to read what this dataset is about. Then copy the WFS URL: this is the URL that contains WFS in the URL link.
# Now we need to find data that is published as a WFS. For the Netherlands, you can go for example to the: [http://nationaalgeoregister.nl Nationaal Georegister]. Here you van browse for open datasets. Type in: “archeologie” and click on the first hit: ''Archeologie Catalogus''. Take a moment to read what this dataset is about. Then copy the WFS URL: this is the URL that contains WFS in the URL link.
[[File:Ng_wfs.JPG|600px|center]]
[[File:Ng_wfs.JPG|600px|center]]
# Start the Geo Data Wizard by clicking in the Editor on ''Geo import''. {{Editor ribbon|header=Geo Data|bar=Geo Import}}
# Start the Geo Data Wizard by clicking in the Editor on ''Geo import''. {{Editor location|Geo Import}}
# Choose the correct type for importing the data. Since we are going to create a map which is equivalent to an overlay, choose as type: AREAS. Read the [[Geo_Data_Wizard|Geo Data Wizard]] for more information about the differences between the imported types.
# Choose the correct type for importing the data. Since we are going to create a map which is equivalent to an overlay, choose as type: AREAS. Read the [[Geo_Data_Wizard|Geo Data Wizard]] for more information about the differences between the imported types.
[[File:Import_areas.JPG|600px|center]]
[[File:Import_areas.JPG|600px|center]]
Line 39: Line 39:
====Create an overlay====
====Create an overlay====
# Go in the Editor to Areas and notice that the areas you have imported are on the left side listed. Click on them and notice that in the 3D world the corresponding area is highlighted. In the tab ''Attributes'' on the right side of the screen, notice that the attributes are imported as well.  
# Go in the Editor to Areas and notice that the areas you have imported are on the left side listed. Click on them and notice that in the 3D world the corresponding area is highlighted. In the tab ''Attributes'' on the right side of the screen, notice that the attributes are imported as well.  
{{Editor ribbon|header=Geo Data|bar=AREAS}}
{{Editor location|AREAS}}
[[File:Areas_attributes.JPG|600px|center]]
[[File:Areas_attributes.JPG|600px|center]]
# Since we don't want to go by these areas one by one to see the archeological value areas, we are going to create a map so we can see them in one view.
# Since we don't want to go by these areas one by one to see the archeological value areas, we are going to create a map so we can see them in one view.
Go therefore in the editor to overlays.
Go therefore in the editor to overlays.
{{Editor ribbon|header=Geo Data|bar=OVERLAYS}}
{{Editor location|OVERLAYS}}
# Add a new overlay by clicking in the bottom left corner on ''Add Areas''.
# Add a new overlay by clicking in the bottom left corner on ''Add Areas''.
# Notice a new overlay, named: ''Speciaal gebied'' is added.  
# Notice a new overlay, named: ''Speciaal gebied'' is added.  
Line 55: Line 55:
# Firstly read on the Wiki what a [[WMS|WMS]] exactly is.
# Firstly read on the Wiki what a [[WMS|WMS]] exactly is.
# Add an Image overlay by hovering over the overlays button and choose the add Image overlay.
# Add an Image overlay by hovering over the overlays button and choose the add Image overlay.
{{Editor ribbon|header=Geo Data|bar=Overlays}}
{{Editor location|Overlays}}
# Notice that a new overlay (named Beeldlaag) is added. Change on the right side the name and then open the Configuration Wizard.  
# Notice that a new overlay (named Beeldlaag) is added. Change on the right side the name and then open the Configuration Wizard.  
# Select the second option: import from a Web Image Service
# Select the second option: import from a Web Image Service
Line 151: Line 151:
===Creating a GeoTiff Overlay===
===Creating a GeoTiff Overlay===
Go to:
Go to:
{{Editor ribbon|header=Geo Data|bar=OVERLAYS}}
{{Editor location|OVERLAYS}}
and select Add Geo Tiff.
and select Add Geo Tiff.


Line 176: Line 176:


Note, if you change your DEM, you will loose the original DTM. Go To:  
Note, if you change your DEM, you will loose the original DTM. Go To:  
{{Editor ribbon|header=Geo Data|bar=OVERLAYS}}
{{Editor location|OVERLAYS}}


And the Heightmap Overlay. Then:
And the Heightmap Overlay. Then:
Line 185: Line 185:
Now we will import a different DEM. Go to:
Now we will import a different DEM. Go to:


{{Editor ribbon|header=Geo Data|bar=TERRAIN}}
{{Editor location|import elevation}}


And do the following:
And do the following:

Revision as of 16:07, 9 May 2019

Getting Started

For this tutorial we use the project Geo_data_tutorial, which is located in Delft. To get this project, Contact Tygron Support. In this tutorial, you will learn the different ways to import different type of data in your project:

  1. Import data from Web services
  2. Import (vector) data as a a single, separate file
  3. Import (raster) data


Download and unpack the content of this zip-file on your desktop: [1]

Importing data from Web services

In this section we are going to import data from a:

  • WFS (Web Feature Service)
  • WMS (Web Map Service)
  • CSW (Catalogue Service)

Import data from a WFS

Archeological Value map

In this assignment you will create an Archeological Value Map.

Archeological map.JPG
  1. First read what exactly a Web Feature Service is.
  2. Now we need to find data that is published as a WFS. For the Netherlands, you can go for example to the: Nationaal Georegister. Here you van browse for open datasets. Type in: “archeologie” and click on the first hit: Archeologie Catalogus. Take a moment to read what this dataset is about. Then copy the WFS URL: this is the URL that contains WFS in the URL link.
Ng wfs.JPG
  1. Start the Geo Data Wizard by clicking in the Editor on Geo import.
    Editor → Current Situation (Ribbon tab) → Geo import (Ribbon bar)
  2. Choose the correct type for importing the data. Since we are going to create a map which is equivalent to an overlay, choose as type: AREAS. Read the Geo Data Wizard for more information about the differences between the imported types.
Import areas.JPG
  1. In step 1 of the wizard, choose for add WFS service.
  2. Click on add a new Feature Service and provide a custom name, Service Type (WFS_JSON) and URL of the WFS. After you have entered this data, click on add and then next.
Add wfs.JPG
  1. In step 1.2 all the datasets that are published through this URL are shown (these are called layers). Choose the first layer: archeo_monumenten. If this dataset is not in your project, an error message is given. What could be a reason that the data is not in your project?
  2. In step 2 the location of the objects in your project area is shown.
  3. In step 3 we can filter the features and in step 4 adding as new areas or updating areas. Click 2 times on next.
  4. In step 5 we name the features. Click on: Based on specific Attribute and choose for the attribute TOPONIEM. Now the features will be named after their geographic entity.
Naming.JPG
  1. In step 6 the attributes that will be imported are selected. Only numerical attributes are imported in the Tygron Platform. These are by default checked. Why is the list of attributes shorter than the list was in step 5? Click on next.
  2. In step 7 click on Finish. Now the Geo data wizard is finished and the data is imported.

Create an overlay

  1. Go in the Editor to Areas and notice that the areas you have imported are on the left side listed. Click on them and notice that in the 3D world the corresponding area is highlighted. In the tab Attributes on the right side of the screen, notice that the attributes are imported as well.
Editor → Current Situation (Ribbon tab) → Areas (Ribbon bar)
Areas attributes.JPG
  1. Since we don't want to go by these areas one by one to see the archeological value areas, we are going to create a map so we can see them in one view.

Go therefore in the editor to overlays.

Editor → Current Situation (Ribbon tab) → Overlays (Ribbon bar)
  1. Add a new overlay by clicking in the bottom left corner on Add Areas.
  2. Notice a new overlay, named: Speciaal gebied is added.
  3. Select this overlay and notice the new menu on the right side.
Overlays areas.JPG
  1. Give the new overlay a fitting name and check the areas belonging to the archeological value map. If there are a lot of areas, you can also click on the button in the bottom right corner on Add Areas with Attribute. Here you can select a common attribute of these areas. Select the common attribute, for example MONUMENTNR and click on Add.
Add areas.JPG

Import data from a WMS

Import data from a WMS

  1. Firstly read on the Wiki what a WMS exactly is.
  2. Add an Image overlay by hovering over the overlays button and choose the add Image overlay.
Editor → Current Situation (Ribbon tab) → Overlays (Ribbon bar)
  1. Notice that a new overlay (named Beeldlaag) is added. Change on the right side the name and then open the Configuration Wizard.
  2. Select the second option: import from a Web Image Service
  3. Click on add a new Image Service and provide a custom name, Service Type (WMS_IMAGE) and URL of the WMS. If the data is filled in correctly, click on add and then next.

As WMS URL you can use the WMS url of the Archeologie Catalogus from the previous assignment. The WMS url is the url with WMS in the link.

  1. After you have finished the wizard, can you tell the difference between the WFS and the WMS data?

Import data from a Catalogue Service

Monumental Buildings map

In this step we are going to create a map (overlay) of all the monumental buildings in Delft.

Monumental buildings.JPG
  1. Start by reading what a CSW exactly is.
  2. Open the Geo Data wizard and choose for type AREAS.
  3. In step 1 of the wizard, choose for: Search for data in a Catalog Service.
  4. Click on Select Catalog Service and choose ArcGIS online.
Catalog service.JPG
  1. In the next screen you can type a keyword of the dataset you want to find. We are going to create a map of the monumental buildings in Delft. Think of a correct keyword to type and click on Search. Remember the project owner of the data should match the location of your project. Why is that?
Monument csw.JPG
  1. Complete the wizard. Don't forget in step 5 to choose the correct attribute to base the name on.
  2. Follow the previous steps for creating an Overlay.
  3. Now your map of Monumental Buildings is finished.

Importing data from a single, separate file

In this section we are going to import data from a single, separate file. For example if you downloaded a file of data from the internet. To import data in the Tygron Platform, the file must be of the GeoJSON format.

In the next assignment we are going to import two datasts as objects in the 3D model. One dataset contains a road, an office, parking space and park. The other dataset contains trees.

Importing data as a GeoJSON

Importing polygon data of a fictional office location

  • Read this section on the Wiki of what exactly a GeoJSON file is.
  • Mostly data is not available as a GeoJSON but for example as a Shapefile. We can create a GeoJSON file ourselves with a GIS.
  1. In the zip folder you downloaded at the start of this tutorial are two .shp files. These are Shapefiles. Follow the steps to create a GeoJSON file in you preferred GIS. You can skip the part of modifying the attributes.
  2. After you have created the two GeoJSON files, open the Geo Data Wizard.
  3. Select as type Buildings.
Type buildings.JPG
  1. Select in step 1 Import a GeoJSON file and choose the file: Office in the next step.
  2. Click on Next in the following steps, choosing consequently the first option. In step 5 choose the correct column for the naming of the objects.
  3. In step 7 we see a new step that we did not come across when choosing to import data as AREAS. In this step you decide what kind of 3D object the data will be. Click on One Function if your dataset only consists of data of one type, for example a dataset with only buildings or only roads. If you have a file like we do with an office, road, parking space and building, choose Function Mapping.
  4. Choose first the default function by clicking on Select. For this tutorial we choose as default function a function in the category Offices.
  5. Then make sure the drop down menu is on Name and click on Add. Now click on the button Values. Based on the data in the column Type, you can select a function. Select for example Park, click on Select (the screen closes) en click again on the button Select. Choose from the Function list a park function.
  6. Repeat the steps for the attributes Parkeerplaats and Weg. We are now creating rules to base the mapping on on. We do not have to create rules for every attribute, since we have set a default function. Think of what would happen if we had another feature in our dataset with for example Type:School.
Function mapping.JPG
  1. Click on Next. In step 8 we can also create a mapping for the Stakeholders. For example, we can assign the roads, park and parking space to the municipality and the office to the company stakeholder. The mapping is done in the same way as step 7. Create a mapping with at least two stakeholders.
Stakeholders.JPG
  1. Finish the wizard.
  2. Notice the new buildings are now in the 3D model
Location plan.JPG
New plan 2.JPG

Importing point data of fictional trees

  1. Import the other dataset trees by repeating the previous steps for importing a GeoJSON file.
  2. In step 2 of the wizard, notice that there are 10 points in the datset and no lines or polygons. In the Tygron Platform it is only possible to import polygons. Therefore, we can buffer the points to create (round polygons) for the trees. Set the buffer size on 1, so as not to create very large trunks and follow the rest of the wizard.
Point data buffer.JPG
  1. How would you do the mapping in step 7? As One Function or a Function Mapping?
  2. After finishing the wizard, notice the new trees in the office location area.
Trees.JPG


Importing a GeoTiff

For this part of the tutorial we use the ready prepared GeoTiff Kd_Delft.tif. This file contains a selection of the layer doorlatendheid_laag 1 from the Hydrological Instrument. They layer represents classes of hydraulic conductivity of the freatic groundwater layer; the ability of the layer to transport groundwater, in m2/day:

class in geotiff kd [m2/day]
2 5-10
3 10-20
4 20-30
5 30-40
6 40-60
7 60-80
8 80-100

If you finish the tutorial, the result should be as the picture below:

GD tuto KD Overlay.PNG

Creating a GeoTiff Overlay

Go to:

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

and select Add Geo Tiff.

Add the GeoTiff Kd_Delft.tif in the following steps:

  1. In the general-tab press Select GeoTiff
  2. In the Geotiff Import Wizard, press Import new Geo Tiffsin the bottom-right
  3. Locate Kd_Delft.tif and press Open
  4. Make sure your newly imported GeoTiff is selcted and press Apply

In the general-tab GeoTiff: should refer to Kd_Delft.tif. Now add a legend:

  1. go to the legend tab
  2. create a legend with the 7 classes as above, by:
    • checking Has Custom Legend
    • adding 7 records (or removing if you have to many)
    • adding values, descriptions and colors starting from the lowest record
  3. if finished, go to the general-tab and press refresh grid

You should arrive at the overlay as shown in the picture above. Please check the following:

  • open Kd_Delft.tif in a GIS-editor (e.g. QGIS); review the presence of a NoData value and projection. If these are not present, the file will not be imported(!!)
  • open the Geotiff Import Wizard and notice the option overwrite CRS. If your GeoTiff does not contain projection info, you can use this option to specify a CRS (Coordinate Reference System). If the Tygron Platform has trouble projecting your projected GeoTiff on the map, you can also use this option to overwrite the existing CRS.

Changing a DEM

For the purpose of this exercise, we will change the DEM with the Kd_delft.tiff, previously imported. Note, it doesn't make sense to do so, but it is just for the purpose of the exercise.

Note, if you change your DEM, you will loose the original DTM. Go To:

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

And the Heightmap Overlay. Then:

  • change the grid-cell size to 1m
  • select DTM (where you will not see the elevation of houses)
  • export the DTM as a GeoTiff

Now we will import a different DEM. Go to:

Editor → Current Situation (Ribbon tab) → Terrain (Ribbon bar) → Select elevation GeoTiff (Dropdown)

And do the following:

  • Select Select elevation GeoTiff
  • Select kd_delft.tiff
  • Press apply

The DTM should look as below:

GD tuto KD as elevation.PNG

Now:

  • revert the DTM to the elevation model to its original state by re-importing the DEM you previously exported
  • make a GeoTiff in QGIS covering a part of the project area, import it via Select elevation GeoTiff and see how it mergens with the DTM