JorgeDeJesus

correct so_Soil.xml

Nov 26th, 2015
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.68 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <as:AppSchemaDataAccess xmlns:as="http://www.geotools.org/app-schema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geotools.org/app-schema AppSchemaDataAccess.xsd">
  3. <namespaces>
  4.         <Namespace><prefix>gml</prefix><uri>http://www.opengis.net/gml/3.2</uri></Namespace>
  5.         <Namespace><prefix>om</prefix><uri>http://www.opengis.net/om/2.0</uri></Namespace>
  6.         <Namespace><prefix>sam</prefix><uri>http://www.opengis.net/sampling/2.0</uri></Namespace>
  7.         <Namespace><prefix>sams</prefix><uri>http://www.opengis.net/samplingSpatial/2.0</uri></Namespace>
  8.         <Namespace><prefix>xlink</prefix><uri>http://www.w3.org/1999/xlink</uri></Namespace>
  9.         <Namespace><prefix>xsi</prefix><uri>http://www.w3.org/2001/XMLSchema-instance</uri></Namespace>
  10.         <Namespace><prefix>soil</prefix><uri>http://www.opengis.net/soil-data-ie/0.1</uri></Namespace>
  11. </namespaces>
  12.  
  13.     <sourceDataStores>
  14.         <DataStore>
  15.             <id>datastore</id>
  16.             <parameters>
  17.             <Parameter><name>dbtype</name><value>postgisng</value></Parameter>
  18.             <!-- REMOVED DB ACCESS -->
  19.            
  20.             <Parameter><name>Expose primary keys</name><value>true</value></Parameter>
  21.             </parameters>
  22.         </DataStore>
  23.     </sourceDataStores>
  24.     <targetTypes>
  25.         <FeatureType>
  26.          <schemaUri>http://schemas.opengis.net/samplingSpatial/2.0/spatialSamplingFeature.xsd</schemaUri>
  27.           <schemaUri>http://schemas.opengis.net/om/2.0/observation.xsd</schemaUri>
  28.           <schemaUri>http://schemas.opengis.net/sampling/2.0/samplingFeature.xsd</schemaUri>
  29.           <schemaUri>http://lab.scinfo.org.nz/static/schema/soil-data-ie/0.1/soil-data-ie.xsd</schemaUri>
  30.                   <schemaUri>http://schemas.opengis.net/gml/3.2.1/gml.xsd</schemaUri>
  31.         </FeatureType>
  32.     </targetTypes>
  33.     <typeMappings>
  34.         <FeatureTypeMapping>
  35.             <sourceDataStore>datastore</sourceDataStore>
  36.             <sourceType>soil</sourceType>
  37.             <targetElement>soil:SO_Soil</targetElement>
  38.             <attributeMappings>
  39.                 <AttributeMapping>
  40.                     <targetAttribute>soil:SO_Soil</targetAttribute>
  41.                     <idExpression> 
  42.                                          <OCQL>soil_gml_id</OCQL>
  43.                     </idExpression>
  44.                 </AttributeMapping>
  45.                 <AttributeMapping>
  46.                     <targetAttribute>gml:identifier</targetAttribute>
  47.                     <sourceExpression>
  48.                         <OCQL>strConCat('http://lab.scinfo.org.nz/soil-data-ie/id/isric/soil/so_soil/',profile_id)</OCQL>
  49.                     </sourceExpression>
  50.                     <ClientProperty>
  51.                             <name>codeSpace</name>
  52.                             <value>'http://www.landcareresearch.co.nz'</value>
  53.                         </ClientProperty>
  54.                 </AttributeMapping>
  55.  
  56.                   <AttributeMapping>
  57.                                         <targetAttribute>gml:description</targetAttribute>
  58.                                         <sourceExpression>
  59.                                                 <OCQL>strConCat('WOSIS profile code ',profile_code)</OCQL>
  60.                                         </sourceExpression>
  61.                                 </AttributeMapping>
  62.  
  63.                      <AttributeMapping>
  64.                     <encodeIfEmpty>true</encodeIfEmpty>
  65.                                         <targetAttribute>soil:soRelatedSamplingFeature</targetAttribute>
  66.                                    
  67.                                 </AttributeMapping>
  68.                 <AttributeMapping>
  69.                                     <encodeIfEmpty>true</encodeIfEmpty>
  70.                                     <targetAttribute>soil:soClassifier</targetAttribute>
  71.                                
  72.  
  73.                                 </AttributeMapping>
  74.                
  75.                 <AttributeMapping>
  76.                                     <encodeIfEmpty>true</encodeIfEmpty>
  77.                                     <targetAttribute>soil:soAvailableWaterCapacity</targetAttribute>
  78.                 </AttributeMapping>
  79.  
  80.                 <AttributeMapping>
  81.                                     <encodeIfEmpty>true</encodeIfEmpty>
  82.                                     <targetAttribute>soil:soDrainage</targetAttribute>
  83.                                 </AttributeMapping>
  84.  
  85.                 <AttributeMapping>
  86.                                     <encodeIfEmpty>true</encodeIfEmpty>
  87.                                     <targetAttribute>soil:soDepthToRock</targetAttribute>
  88.                                 </AttributeMapping>
  89.            
  90.  
  91.                     <AttributeMapping>
  92.                         <targetAttribute>soil:soHorizon</targetAttribute>
  93.                 <encodeIfEmpty>true</encodeIfEmpty>
  94.                             <sourceExpression>
  95.                
  96.                                     <OCQL>profile_id</OCQL>
  97.                                         <linkElement>_sohorizon</linkElement>
  98.                                         <linkField>FEATURE_LINK</linkField>
  99.                                   </sourceExpression>
  100.                                    <isMultiple>true</isMultiple>
  101.                                    
  102.                     <ClientProperty>
  103.                     <name>xlink:title</name>
  104.                                         <value></value>
  105.                    </ClientProperty>    
  106.            
  107.                                    <ClientProperty>
  108.                                        <name>xlink:href</name>
  109.            
  110.                                         <value>strConCat('http://lab.scinfo.org.nz/soil-data-ie/id/isric/soil/so_horizon/',profile_layer_id)</value>
  111.                                     </ClientProperty>                  
  112.                 <ClientProperty>
  113.                                        <name>xlink:title</name>
  114.                                        
  115.                    
  116.                                        
  117.                     <value>layer_title</value>
  118.                                     </ClientProperty>
  119.                                 </AttributeMapping>
  120.  
  121.             </attributeMappings>
  122.         </FeatureTypeMapping>
  123.  
  124.         <!-- ======================================== -->
  125.         <!-- link to gml_name datastore for multiple gml:name -->
  126.            
  127.         <!-- Feature Linking-->
  128.  
  129.         <FeatureTypeMapping>
  130.                        <mappingName>_sohorizon</mappingName>
  131.                         <sourceDataStore>datastore</sourceDataStore> -->
  132.  
  133.                         <sourceType>profile_layer2</sourceType>
  134.                     <targetElement>soil:SO_Horizon</targetElement>
  135.            
  136.             <attributeMappings>
  137.                 <encodeIfEmpty>true</encodeIfEmpty>
  138.  
  139.                         <AttributeMapping>
  140.                                 <targetAttribute>FEATURE_LINK</targetAttribute>
  141.            
  142.                                 <sourceExpression><OCQL>profile_id_fk</OCQL></sourceExpression>
  143.                         </AttributeMapping>  
  144.                                                                            
  145.                             <AttributeMapping>                  
  146.                                 <targetAttribute>soil:soHorizon</targetAttribute>
  147.                             </AttributeMapping>
  148.                                      
  149.             </attributeMappings>
  150.         </FeatureTypeMapping>  
  151.  
  152.     </typeMappings>
  153. </as:AppSchemaDataAccess>
Advertisement
Add Comment
Please, Sign In to add comment