"Fossies" - the Fresh Open Source Software Archive

Member "geotools-22.0/modules/unsupported/solr/src/test/resources/test-data/appschema-indexes/stations_complex/meteo_solr.appschema" (18 Sep 2019, 8504 Bytes) of package /linux/misc/geotools-22.0-project.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    2 <ns3:AppSchemaDataAccess xmlns:ns2="http://www.opengis.net/ogc" xmlns:ns3="http://www.geotools.org/app-schema">
    3     <namespaces>
    4         <Namespace>
    5             <prefix>station_1</prefix>
    6             <uri>http://www.stations.org/1.0</uri>
    7         </Namespace>
    8         <Namespace>
    9             <prefix>gml</prefix>
   10             <uri>http://www.opengis.net/gml/3.2</uri>
   11         </Namespace>
   12     </namespaces>
   13     <includedTypes>
   14         <Include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">includedTypes.xml</Include>
   15     </includedTypes>
   16     <sourceDataStores>
   17         <SolrDataStore>
   18             <id>stations_solr</id>
   19             <url>ttp://127.0.0.2:8080/solr/stations</url>
   20             <index name="stations">
   21                 <geometry default="true">
   22                     <name>station_location</name>
   23                     <srid>4326</srid>
   24                     <type>POINT</type>
   25                 </geometry>
   26             </index>
   27         </SolrDataStore>
   28         <DataStore>
   29             <id>dataStore</id>
   30             <parameters>
   31                 <Parameter>
   32                     <name>Connection timeout</name>
   33                     <value>20</value>
   34                 </Parameter>
   35                 <Parameter>
   36                     <name>port</name>
   37                     <value>5432</value>
   38                 </Parameter>
   39                 <Parameter>
   40                     <name>passwd</name>
   41                     <value>sis98</value>
   42                 </Parameter>
   43                 <Parameter>
   44                     <name>dbtype</name>
   45                     <value>postgis</value>
   46                 </Parameter>
   47                 <Parameter>
   48                     <name>encode functions</name>
   49                     <value>false</value>
   50                 </Parameter>
   51                 <Parameter>
   52                     <name>Evictor run periodicity</name>
   53                     <value>300</value>
   54                 </Parameter>
   55                 <Parameter>
   56                     <name>namespace</name>
   57                     <value></value>
   58                 </Parameter>
   59                 <Parameter>
   60                     <name>schema</name>
   61                     <value>meteo</value>
   62                 </Parameter>
   63                 <Parameter>
   64                     <name>create database</name>
   65                     <value>false</value>
   66                 </Parameter>
   67                 <Parameter>
   68                     <name>fetch size</name>
   69                     <value>1000</value>
   70                 </Parameter>
   71                 <Parameter>
   72                     <name>preparedStatements</name>
   73                     <value>false</value>
   74                 </Parameter>
   75                 <Parameter>
   76                     <name>min connections</name>
   77                     <value>1</value>
   78                 </Parameter>
   79                 <Parameter>
   80                     <name>Evictor tests per run</name>
   81                     <value>3</value>
   82                 </Parameter>
   83                 <Parameter>
   84                     <name>host</name>
   85                     <value>localhost</value>
   86                 </Parameter>
   87                 <Parameter>
   88                     <name>validate connections</name>
   89                     <value>true</value>
   90                 </Parameter>
   91                 <Parameter>
   92                     <name>max connections</name>
   93                     <value>10</value>
   94                 </Parameter>
   95                 <Parameter>
   96                     <name>database</name>
   97                     <value>stations</value>
   98                 </Parameter>
   99                 <Parameter>
  100                     <name>Support on the fly geometry simplification</name>
  101                     <value>true</value>
  102                 </Parameter>
  103                 <Parameter>
  104                     <name>Max connection idle time</name>
  105                     <value>300</value>
  106                 </Parameter>
  107                 <Parameter>
  108                     <name>Test while idle</name>
  109                     <value>true</value>
  110                 </Parameter>
  111                 <Parameter>
  112                     <name>Loose bbox</name>
  113                     <value>true</value>
  114                 </Parameter>
  115                 <Parameter>
  116                     <name>Expose primary keys</name>
  117                     <value>true</value>
  118                 </Parameter>
  119                 <Parameter>
  120                     <name>Max open prepared statements</name>
  121                     <value>50</value>
  122                 </Parameter>
  123                 <Parameter>
  124                     <name>Estimated extends</name>
  125                     <value>true</value>
  126                 </Parameter>
  127                 <Parameter>
  128                     <name>user</name>
  129                     <value>sisapp</value>
  130                 </Parameter>
  131             </parameters>
  132         </DataStore>
  133     </sourceDataStores>
  134     <targetTypes>
  135         <FeatureType>
  136             <schemaUri>meteo.xsd</schemaUri>
  137         </FeatureType>
  138     </targetTypes>
  139     <typeMappings>
  140         <FeatureTypeMapping>
  141             <mappingName>ObservationType-e17fbd44-fd26-46e7-bd71-e2568073c6c5</mappingName>
  142             <sourceDataStore>dataStore</sourceDataStore>
  143             <sourceType>meteo_observations</sourceType>
  144             <targetElement>station_1:Observation</targetElement>
  145             <attributeMappings>
  146                 <AttributeMapping>
  147                     <targetAttribute>station_1:Observation</targetAttribute>
  148                     <idExpression>
  149                         <OCQL>id</OCQL>
  150                     </idExpression>
  151                     <indexField>observation_id</indexField>
  152                 </AttributeMapping>
  153                 <AttributeMapping>
  154                     <targetAttribute>station_1:value</targetAttribute>
  155                     <sourceExpression>
  156                         <OCQL>value</OCQL>
  157                     </sourceExpression>
  158                     <indexField>value</indexField>
  159                 </AttributeMapping>
  160                 <AttributeMapping>
  161                     <targetAttribute>station_1:parameter</targetAttribute>
  162                     <sourceExpression>
  163                         <OCQL>parameter_id</OCQL>
  164                         <linkElement>'ParameterType-59fe639f-f5eb-44a8-9bf0-f764eeefe1d0'</linkElement>
  165                         <linkField>FEATURE_LINK[1]</linkField>
  166                     </sourceExpression>
  167                 </AttributeMapping>
  168                 <AttributeMapping>
  169                     <targetAttribute>FEATURE_LINK[1]</targetAttribute>
  170                     <sourceExpression>
  171                         <OCQL>station_id</OCQL>
  172                     </sourceExpression>
  173                 </AttributeMapping>
  174             </attributeMappings>
  175         </FeatureTypeMapping>
  176         <FeatureTypeMapping>
  177             <mappingName>StationType-f46d72da-5591-4873-b210-5ed30a6ffb0d</mappingName>
  178             <sourceDataStore>dataStore</sourceDataStore>
  179             <sourceType>meteo_stations</sourceType>
  180             <targetElement>station_1:Station</targetElement>
  181             <indexDataStore>stations_solr</indexDataStore>
  182             <indexType>stations</indexType>
  183             <attributeMappings>
  184                 <AttributeMapping>
  185                     <targetAttribute>station_1:observation</targetAttribute>
  186                     <sourceExpression>
  187                         <OCQL>id</OCQL>
  188                         <linkElement>'ObservationType-e17fbd44-fd26-46e7-bd71-e2568073c6c5'</linkElement>
  189                         <linkField>FEATURE_LINK[1]</linkField>
  190                     </sourceExpression>
  191                     <isMultiple>true</isMultiple>
  192                     <indexField>observation</indexField>
  193                 </AttributeMapping>
  194                 <AttributeMapping>
  195                     <targetAttribute>station_1:Station</targetAttribute>
  196                     <idExpression>
  197                         <OCQL>id</OCQL>
  198                     </idExpression>
  199                     <indexField>station_id</indexField>
  200                 </AttributeMapping>
  201                 <AttributeMapping>
  202                     <targetAttribute>station_1:stationName</targetAttribute>
  203                     <sourceExpression>
  204                         <OCQL>strConcat('1_', common_name)</OCQL>
  205                     </sourceExpression>
  206                     <indexField>station_name</indexField>
  207                 </AttributeMapping>
  208             </attributeMappings>
  209         </FeatureTypeMapping>
  210     </typeMappings>
  211 </ns3:AppSchemaDataAccess>