This shows you the differences between two versions of the page.
tuto:tuto2 [2013/09/11 14:01] leoame [Implementation in ToolMap] |
tuto:tuto2 [2013/09/30 08:41] (current) leoame [Data model overview] |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== What is the data model? ====== | ====== What is the data model? ====== | ||
- | The data model is a structure of data composed to represent the reality we want to vectorize. In the data model lay all the information we want to get at the end of our work. It sorts the data of the same nature together in layers. Seeing that fact, the more intricate a project is the more layers you shall have. | + | The data model is a structure of data composed to represent the reality you want to vectorize. In the data model lay all the information you want to get at the end of your work. It sorts the data of the same nature together in layers. Seeing that fact, the more intricate a project is the more layers you shall have. |
Those layers may represent 3 types of geometries: | Those layers may represent 3 types of geometries: | ||
- | * points | + | * Points |
- | * lines | + | * Lines |
- | * polygons | + | * Polygons |
===== Practical case ===== | ===== Practical case ===== | ||
<WRAP center 90%><note important>All the following data are sample data. We doesn't warrant their accuracy, completeness or suitability for any purposes. </note></WRAP> | <WRAP center 90%><note important>All the following data are sample data. We doesn't warrant their accuracy, completeness or suitability for any purposes. </note></WRAP> | ||
- | In the subsequent case we will follow the realization of a new project. It is the hazard study of an area. We want to vectorize them properly. After analyzing them thoughtfully we can divide them in 3 different layers: | + | In the subsequent case you will follow the realization of a new project. It is the hazard study of an area. The goal is to digitize the data properly. After analyzing them thoughtfully you can divide them in 3 different layers: |
* A line layer containing information of the protective structures. | * A line layer containing information of the protective structures. | ||
* A polygonal layer containing information of hazards | * A polygonal layer containing information of hazards | ||
Line 17: | Line 18: | ||
{{maps.png?nolink}} | {{maps.png?nolink}} | ||
- | Those are the information we choose to vectorize. To do that we will need a different layer for each map; meanig two polygonal layers and a line layer. Each color of the polygonal layers represent a different object. Each object can then have individual properties. Those properties are described by the attributes. For exemple a medium hazard (object) can stem from an innondation or a Debris flow event (attributes). | + | Those are the information you choose to vectorize. To do that you will need a different layer for each map; meanig two polygonal layers and a line layer. Each color of the polygonal layers represent a different object. Each object can then have individual properties. Those properties are described by the attributes. For exemple a medium hazard (object) can stem from an innondation or a Debris flow event (attributes). |
All the objects can then be illustrated the following way: | All the objects can then be illustrated the following way: | ||
Line 32: | Line 33: | ||
<WRAP 75%><note important>A ToolMap project is a folder containing the embedded data base. It is mandatory to work on a local disk.</note></WRAP> | <WRAP 75%><note important>A ToolMap project is a folder containing the embedded data base. It is mandatory to work on a local disk.</note></WRAP> | ||
- | **[[man:proj_manage#new_project|Project]] -> [[man:proj_manage#new_project|New project]] -> [[man:proj_manage#new_project|Empty...]]** | + | |
+ | **Project -> New project -> [[man:proj_manage#new_project|Empty...]]** | ||
{{tuto-implementation1.png?nolink}} | {{tuto-implementation1.png?nolink}} | ||
- | After clicking on the **[__C__reate new project]** button the //Project definition// window pops up. On the //Project properties// tab set the name of the author and some comments if wanted. The //spatial model// tab allows you to implement your data model. | + | After clicking on the **[__C__reate new project]** button the //Project definition// window pops up. On the //Project properties// tab set the name of the author and some comments if wanted. |
- | The spatial definition tab lists all the layers defined in your project. At this particular moment it is empty, but you will fulfill it with the layers you imagined as your data model. | + | The //spatial model// tab allows you to implement your data model. It lists all the layers defined in your project. At this particular moment it is empty, but you will fulfill it with the layers you imagined as your data model. |
Click now on the **[+]** button to add your first layer... | Click now on the **[+]** button to add your first layer... | ||
Line 55: | Line 57: | ||
The attributes are listed on the second tab of the window. Click on the **[+]** button to create a new attribute. Every attribute is defined by a name and a type. In this case we have 3 different types: | The attributes are listed on the second tab of the window. Click on the **[+]** button to create a new attribute. Every attribute is defined by a name and a type. In this case we have 3 different types: | ||
- | * Enumeration: the list must be computed. | + | * Enumeration: the list must be computed. Each input is defined by a code and a name. |
* Integer | * Integer | ||
* Text: the number of max characters must be defined. | * Text: the number of max characters must be defined. | ||
Line 61: | Line 63: | ||
{{tuto-implementation5.png?nolink}} | {{tuto-implementation5.png?nolink}} | ||
- | Once you computed every information save your layer to go back to the //Project definition// window and create following the same process every other layers needed. | + | Once you computed every information click on **[__O__k]** to validate your layer and go back to the //Project definition// window. Create, following the same process, every other layers needed. |
+ | |||
+ | After your data model is fully implemented. Finish the creation of your project by clicking on the **[__S__ave]** button. | ||
{{tuto-implementation7.png?nolink}} | {{tuto-implementation7.png?nolink}} | ||
- | Now your data model shall be fully implemented. Finish the creation of your project by clicking on the **[__S__ave]** button. | + | |
+ | |||
+ | ===== Data model overview ===== | ||
+ | |||
+ | At any time (after the creation) you can export the model of your project as a pdf file. | ||
+ | |||
+ | **Project -> [[man:proj_manage#export_model_as_pdf|Export Model as PDF...]]** | ||
+ | |||
+ | The //Export data model layout// window allows you to choose between some display options, let the default display for the time being. Finalize the export by choosing a path to save the pdf file. If you followed rigorously the tutorial you should have something like: | ||
+ | |||
+ | {{tuto:tuto-datamodelpdf.png?nolink}} | ||
<WRAP left>[[tuto1|{{man:button-previous.png?nolink}}]]</WRAP> <WRAP right>[[tuto3|{{man:button-next.png?nolink}}]]</WRAP> | <WRAP left>[[tuto1|{{man:button-previous.png?nolink}}]]</WRAP> <WRAP right>[[tuto3|{{man:button-next.png?nolink}}]]</WRAP> | ||