This shows you the differences between two versions of the page.
tuto:tuto2 [2013/09/11 13:40] leoame |
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 45: | Line 47: | ||
The //Thematic layer definition// window pops up. You will have several operations to do: | The //Thematic layer definition// window pops up. You will have several operations to do: | ||
- | - Set the name of your layer | + | * Set the name of your layer |
- | - Define its geometrical nature | + | * Define its geometrical nature |
- | - Create the objects contained in this layer | + | * Create the objects contained in this layer |
- | - Create the attributes characterizing the objects | + | * Create the attributes characterizing the objects |
The objects are listed on the first tab of the window. Click on the **[+]** to create a new object. Set a code and a name for every object. | The objects are listed on the first tab of the window. Click on the **[+]** to create a new object. Set a code and a name for every object. | ||
Line 54: | Line 56: | ||
{{tuto-implementation3.png?nolink}} | {{tuto-implementation3.png?nolink}} | ||
- | The attributes are listed on the second tab of the window. By clicking on the **[+]** button i can add a new attribute. | + | 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. Each input is defined by a code and a name. | ||
+ | * Integer | ||
+ | * Text: the number of max characters must be defined. | ||
{{tuto-implementation5.png?nolink}} | {{tuto-implementation5.png?nolink}} | ||
- | For every attribute I create I've got to define: | + | 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. |
- | - The name of the attribute | + | |
- | - The type of the attribute | + | |
- | * Enumerations: define the list of value | + | |
- | * Text: define the maximal number of autorized characters | + | |
- | * Integer: - | + | |
- | * Float: define the field precision, field scale and the result sample. | + | |
- | * Date: - | + | |
- | {{tuto-implementation6.png?nolink}} | + | After your data model is fully implemented. Finish the creation of your project by clicking on the **[__S__ave]** button. |
- | + | ||
- | Once I computed every information I can save my layer to go back to the //Project definition// window and create with the same process every layers I need. | + | |
{{tuto-implementation7.png?nolink}} | {{tuto-implementation7.png?nolink}} | ||
- | Now that my data model is fully implemented I finish the creation of my 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> | ||