Changeset 27


Ignore:
Timestamp:
02/28/13 14:38:27 (11 years ago)
Author:
lucsch
Message:

Correcting attributes:

  • Prominent_Lithological_Features_L

Correcting small typo in tutorial

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/models/swisstopo/user_content.txt

    r26 r27  
    221221166     Hsur301003      2       50      rivière Fluss                           0                        
    222222167     Hsur3   0       50      Border of Surface_Water_PLG     Border of Surface_Water_PLG                             0                        
    223 168     Vlit402006      0       29      brèche  Brekzie                                                  
    224 169     Vlit402007      0       29      poudingue       Konglomerat                                                      
    225 170     Vlit402009      0       29      grès, indifférencié     Sandstein, undifferenziert                                                       
    226 171     Vlit402018      0       29      grès à galets   Geröll führender Sandstein                                                       
    227 172     Vlit402021      0       29      grès à nummulites       Nummulitensandstein                                                      
    228 173     Vlit402022      0       29      grès coquillier Muschelsandstein                                                         
    229 174     Vlit402026      0       29      argilite        Tonstein                                                         
    230 175     Vlit402027      0       29      marne   Mergelstein                                                      
    231 176     Vlit402034      0       29      calcaire, indifférencié Kalkstein, undifferenziert                                                       
    232 177     Vlit402035      0       29      calcaire siliceux       Kieselkalk                                                       
    233 178     Vlit402041      0       29      calcaire bréchique      Kalkbrekzie                                                      
    234 179     Vlit402043      0       29      calcaire à nummulites   Nummulitenkalk                                                   
    235 180     Vlit402047      0       29      calcaire d'eau douce    Süsswasserkalk                                                   
    236 181     Vlit402049      0       29      dolomie Dolomit                                                  
    237 182     Vlit402052      0       29      radiolarite     Radiolarit                                                       
    238 183     Vlit402056      0       29      charbon, indifférencié  Kohle, undifferenziert                                                   
    239 184     Vlit402059      0       29      anthracite      Anthrazit                                                        
    240 185     Vlit402061      0       29      oolite ferrugineuse     Eisenoolith                                                      
    241 186     Vlit402063      0       29      roche phosphatée, indifférenciée        phosphoritreiches Gestein, undifferenziert                                                       
    242 187     Vlit402071      0       29      anhydrite       Anhydrit                                                         
    243 188     Vlit402072      0       29      gypse   Gips                                                     
    244 189     Vlit402073      0       29      sel     Steinsalz                                                        
    245 190     Vlit402094      0       29      calcrète        Krustenkalk                                                      
    246 191     Vlit403026      0       29      roche filonienne, indifférenciée        Ganggestein, undifferenziert                                                     
    247 192     Vlit403027      0       29      microgranite    Mikrogranit                                                      
    248 193     Vlit403029      0       29      pegmatite       Pegmatit                                                         
    249 194     Vlit403030      0       29      aplite  Aplit                                                    
    250 195     Vlit403033      0       29      lamprophyre     Lamprophyr                                                       
    251 196     Vlit403039      0       29      roche effusive, indifférenciée  Ergussgestein, undifferenziert                                                   
    252 197     Vlit403041      0       29      rhyolite        Rhyolith                                                         
    253 198     Vlit403053      0       29      roche pyroclastique, indifférenciée     pyroklastisches Gestein, undifferenziert                                                         
    254 199     Vlit403060      0       29      roche volcano-sédimentaire, indifférenciée      Tuffit, undifferenziert                                                  
    255 200     Vlit403066      0       29      bentonite       Bentonit                                                         
    256 201     Vlit404005      0       29      kakirite, indifférenciée        Kakirit, undifferenziert                                                         
    257 202     Vlit404010      0       29      cataclasite, indifférenciée     Kataklasit, undifferenziert                                                      
    258 203     Vlit404018      0       29      mylonite, indifférenciée        Mylonit, undifferenziert                                                         
    259 204     Vlit404023      0       29      phyllonite      Phyllonit                                                        
    260 205     Vlit404025      0       29      pseudotachylite Pseudotachylit                                                   
    261 206     Vlit404056      0       29      roche à calcsilicates   Kalksilikatfels                                                  
    262 207     Vlit404057      0       29      marbre  Marmor                                                   
    263 208     Vlit404062      0       29      amphibolite     Amphibolit                                                       
    264 209     Vlit404067      0       29      hornfels        Hornfels                                                         
    265 210     Vlit404070      0       29      skarn   Skarn                                                    
    266 211     Vlit404071      0       29      greisen Greisen                                                  
     223168     Vlit402006      0       29      brèche  Brekzie                         0                        
     224169     Vlit402007      0       29      poudingue       Konglomerat                             0                        
     225170     Vlit402009      0       29      grès, indifférencié     Sandstein, undifferenziert                              0                        
     226171     Vlit402018      0       29      grès à galets   Geröll führender Sandstein                              0                        
     227172     Vlit402021      0       29      grès à nummulites       Nummulitensandstein                             0                        
     228173     Vlit402022      0       29      grès coquillier Muschelsandstein                                0                        
     229174     Vlit402026      0       29      argilite        Tonstein                                0                        
     230175     Vlit402027      0       29      marne   Mergelstein                             0                        
     231176     Vlit402034      0       29      calcaire, indifférencié Kalkstein, undifferenziert                              0                        
     232177     Vlit402035      0       29      calcaire siliceux       Kieselkalk                              0                        
     233178     Vlit402041      0       29      calcaire bréchique      Kalkbrekzie                             0                        
     234179     Vlit402043      0       29      calcaire à nummulites   Nummulitenkalk                          0                        
     235180     Vlit402047      0       29      calcaire d'eau douce    Süsswasserkalk                          0                        
     236181     Vlit402056      0       29      charbon, indifférencié  Kohle, undifferenziert                          0                        
     237182     Vlit402059      0       29      anthracite      Anthrazit                               0                        
     238183     Vlit402061      0       29      oolite ferrugineuse     Eisenoolith                             0                        
     239184     Vlit402063      0       29      roche phosphatée, indifférenciée        phosphoritreiches Gestein, undifferenziert                              0                        
     240185     Vlit402094      0       29      calcrète        Krustenkalk                             0                        
     241186     Vlit403053      0       29      roche pyroclastique, indifférenciée     pyroklastisches Gestein, undifferenziert                                0                        
     242187     Vlit403060      0       29      roche volcano-sédimentaire, indifférenciée      Tuffit, undifferenziert                         0                        
     243188     Vlit403066      0       29      bentonite       Bentonit                                0                        
    267244                                                                                                 
    268245attributs                                                                                                
     
    37935616      3       Main_Com        110     Rbed311003      roche sédimentaire indifférenciée       Sedimentgestein undifferenziert                                          
    38035716      3       Main_Com        111     Rbed311004      argillite       Tonstein                                                 
    381 16      3       Main_Com        112     Rbed311022      marne   Mergelstein                                              
     35816      3       Main_Com        112     Rbed311010      marne   Mergelstein                                              
    38235916      3       Main_Com        113     Rbed311005      roche calcaire  Kalkstein                                                
    38336016      3       Main_Com        114     Rbed311006      roche dolomitique       Dolomitstein                                             
  • trunk/tutorial/model_tutorial.tex

    r21 r27  
    3636 
    3737\begin{figure} [htbp] 
    38         \centering 
    39     \includegraphics[width=1\textwidth]{img/workflow.pdf} 
    40     \caption{Conceptual workflow} 
    41     \label{fig:conceptual-workflow} 
     38  \centering 
     39  \includegraphics[width=1\textwidth]{img/workflow.pdf} 
     40  \caption{Conceptual workflow} 
     41  \label{fig:conceptual-workflow} 
    4242\end{figure} 
    4343 
     
    4545 
    4646\section{Data needed} 
    47 In order work, TmDmCreator needs the following files: 
     47For proper operation,  TmDmCreator requires the following files: 
    4848%\begin{itemize} 
    49     \begin{description*} 
     49\begin{description*} 
    5050  \item[base\_structure.sql]\hfill \\ contains the necessary SQL code base for all ToolMap projects. This file should normally not be edited by users 
    5151  \item[user\_structure.sql]\hfill \\ contains the SQL structure describing the layers attributes 
     
    7474 
    7575\begin{figure} [hbp] 
    76         \centering 
    77     \includegraphics[width=.6\textwidth]{img/layers.png} 
    78     \caption{List of layers as shown in user\_content.txt} 
    79     \label{fig:layers} 
     76  \centering 
     77  \includegraphics[width=.6\textwidth]{img/layers.png} 
     78  \caption{List of layers as shown in user\_content.txt} 
     79  \label{fig:layers} 
    8080\end{figure} 
    8181 
     
    9797 
    9898\begin{figure} [hbp] 
    99         \centering 
    100     \includegraphics[height=.9\textheight]{img/objects.png} 
    101     \caption{Objects structure as described in user\_content.txt} 
    102     \label{fig:objects} 
     99  \centering 
     100  \includegraphics[height=.9\textheight]{img/objects.png} 
     101  \caption{Objects structure as described in user\_content.txt} 
     102  \label{fig:objects} 
    103103\end{figure} 
    104104 
     
    111111-- layer_at1 -- 
    112112CREATE TABLE `layer_at1` ( 
    113   `OBJECT_ID` int(10) unsigned NOT NULL, 
    114   -- add user attributes here -- 
    115   PRIMARY KEY (`OBJECT_ID`), 
    116   KEY `LAYER_ATX_FKIndex1` (`OBJECT_ID`) 
     113`OBJECT_ID` int(10) unsigned NOT NULL, 
     114-- add user attributes here -- 
     115PRIMARY KEY (`OBJECT_ID`), 
     116KEY `LAYER_ATX_FKIndex1` (`OBJECT_ID`) 
    117117) ENGINE=MyISAM DEFAULT CHARSET=utf8; 
    118118\end{lstlisting} 
    119119This code is the basic template for creating an attribute table. The number after layer\_at (see line 2) indicates the layer index and refers to the LAYER\_INDEX column in user\_content.txt. In our example layer\_at1 describe the attributes for the layer Boreholes\_PT. User attributes can then be added on line 4 of this template. 
    120120Below are described the five attributes that can be used in a ToolMap data model as well as the corresponding SQL code 
     121 
     122 
    121123\subsubsection {Enumeration} 
    122124\label{sec:enumeration} 
    123     \crealplisting{SQL} 
    124     \begin{lstlisting} 
    125     `D_C_UNDERG` int(11) DEFAULT NULL COMMENT 'ENUMERATION', 
    126     \end{lstlisting} 
    127     If you add such fields, then you must also fill the list of supported values (see section~\ref{sec:attribute-values}). 
    128     \subsubsection {Text} 
    129     \begin{lstlisting} 
    130     `DESCRIPT` varchar(255) DEFAULT NULL, 
    131     \end{lstlisting} 
    132     The number next to the keyword varchar indicates the maximum text length.  
    133     \subsubsection {Integer} 
    134     \begin{lstlisting} 
    135     `NUM_REF` int(11) DEFAULT NULL,        
    136     \end{lstlisting} 
    137     There is no special option for integer fields 
    138   \subsubsection {Float} 
     125\crealplisting{SQL} 
     126\begin{lstlisting} 
     127`D_C_UNDERG` int(11) DEFAULT NULL COMMENT 'ENUMERATION', 
     128\end{lstlisting} 
     129If you add such fields, then you must also fill the list of supported values (see section~\ref{sec:attribute-values}). 
     130\subsubsection {Text} 
     131\begin{lstlisting} 
     132`DESCRIPT` varchar(255) DEFAULT NULL, 
     133\end{lstlisting} 
     134The number next to the keyword varchar indicates the maximum text length.  
     135\subsubsection {Integer} 
     136\begin{lstlisting} 
     137`NUM_REF` int(11) DEFAULT NULL,        
     138\end{lstlisting} 
     139There is no special option for integer fields 
    139140 
    140     \begin{lstlisting} 
    141     `TEMP` decimal(5,2) DEFAULT NULL, 
    142     \end{lstlisting} 
    143     The two digits next to the keyword decimal indicate the field precision and scale. In this example, 5 is the precision and 2 is the scale. The precision represents the number of significant digits that are stored for values, and the scale represents the number of digits that can be stored following the decimal point. In this case, values that can be stored range from -999.99 to 999.99. 
    144     \subsubsection {Date} 
    145141 
    146     \begin{lstlisting} 
    147     `REF_DATE` date DEFAULT NULL, 
    148     \end{lstlisting} 
    149     There is no special option for date fields 
     142\subsubsection {Float} 
     143 
     144\begin{lstlisting} 
     145`TEMP` decimal(5,2) DEFAULT NULL, 
     146\end{lstlisting} 
     147The two digits next to the keyword decimal indicate the field precision and scale. In this example, 5 is the precision and 2 is the scale. The precision represents the number of significant digits that are stored for values, and the scale represents the number of digits that can be stored following the decimal point. In this case, values that can be stored range from -999.99 to 999.99. 
     148\subsubsection {Date} 
     149 
     150\begin{lstlisting} 
     151`REF_DATE` date DEFAULT NULL, 
     152\end{lstlisting} 
     153There is no special option for date fields 
    150154 
    151155 
     
    165169 
    166170\begin{figure} [htbp] 
    167         \centering 
    168     \includegraphics[width=.9\textwidth]{img/attributs.png} 
    169     \caption{Attributes section structure} 
    170     \label{fig:attributs} 
     171  \centering 
     172  \includegraphics[width=.9\textwidth]{img/attributs.png} 
     173  \caption{Attributes section structure} 
     174  \label{fig:attributs} 
    171175\end{figure} 
    172176 
Note: See TracChangeset for help on using the changeset viewer.