<?xml version="1.0" encoding="UTF-8"?>
<deegreeWPVS xmlns="http://www.deegree.org/services/wpvs" xmlns:md="http://www.deegree.org/webservices"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.deegree.org/services/wpvs https://schemas.deegree.org/core/3.6/services/wpvs/wpvs_configuration.xsd">
  <ServiceConfiguration>
    <!-- Configures the number of textures stored in GPU (Graphic Processing Unit) memory, i.e. ready for rendering. -->
    <TexturesInGPUMem>300</TexturesInGPUMem>
    <!-- The number of texture tiles (a dataset texture for a dem fragment) to be cached -->
    <CachedTextureTiles>400</CachedTextureTiles>
    <!-- The maximum direct memory (in MegaBytes) to be allocated for texture coordinates -->
    <DirectTextureMemory>400</DirectTextureMemory>
    <!--
      The number of dem fragments stored in memory, this value depends on following variables: <ul> <li>width/height of
      the elevationmodel</li> <li>the number of levels in a macrotriangle</li> <li>the number of rows in a
      macrotriangle</li> </ul> <p>for a dem with 32768*32768 meters, 18 levels and 64 rows per macro triangle 1000 is
      good value.</p> <p>a dem with 32768*32768 meters, with 16 levels and 128 rows per macro 300 is sufficient. </p>
      <p>In general, the higher the value, the more memory is needed, the less IO is needed.</p>
    -->
    <NumberOfDEMFragmentsCached>1000</NumberOfDEMFragmentsCached>
    <!-- The maximum direct memory (in MegaBytes) to be allocated for reading mesh fragments from the disk -->
    <DirectIOMemory>500</DirectIOMemory>
    <!-- How many direct buffers should be held in cache, they will be used for the result images -->
    <NumberOfResultImageBuffers>25</NumberOfResultImageBuffers>
    <!-- the approximate latitude of the scene in WGS84 degrees -->
    <LatitudeOfScene>51.7</LatitudeOfScene>
    <MaxViewWidth>1200</MaxViewWidth>
    <MaxViewHeight>1000</MaxViewHeight>
    <!-- MaxRequestFarClippingPlane>15000</MaxRequestFarClippingPlane-->
    <!-- NearClippingPlane>0.1</NearClippingPlane-->
    <!-- Rendering quality settings that affect geometry and texture LOD selection -->
    <Copyright>
      <Text>Made by deegree WPVS</Text>
      <Image url="../images/copyright/deegree.png" />
    </Copyright>
    <SkyImages>
      <SkyImage file="../images/sky/sunset.jpg" name="sunset" />
      <SkyImage file="../images/sky/cloudy.jpg" name="cloudy" />
      <SkyImage file="../images/sky/cirrus_cloud.jpg" name="cirrus" />
    </SkyImages>
    <DatasetDefinitions>
      <Title>Datasets offered by the WPVS</Title>
      <MetadataURL>https://schemas.deegree.org/services/wpvs/</MetadataURL>
      <Abstract>This definition is a container for all available datasets</Abstract>
      <!-- md:Keywords>
        <md:Keyword lang="de_DE">Beschreibung von der Datasetdefinition</md:Keyword>
        <md:Keyword lang="en_US">Describing the dataset defintion</md:Keyword>
        <md:Type codeSpace="http://www.deegree.org">Description</md:Type>
      </md:Keywords -->
      <BaseCRS>EPSG:31466</BaseCRS>
      <TranslationToLocalCRS x="-2560250.0" y="-5638990.0"/>
      <!-- Geometry quality after projection -->
      <MaxPixelError>5</MaxPixelError>
      <DEMDataset>
        <!-- The title is identity building, clients should request the title not the name (like WMS 1.3.0) -->
        <Title>dem</Title>
        <Name>Elevation model</Name>
        <Abstract>The elevation model of the campus of the University of Cologne</Abstract>
        <BatchedMTStoreId>campus</BatchedMTStoreId>
      </DEMDataset>
      <DEMTextureDataset RequestTimeout="3600">
        <Title>campusortho</Title>
        <Name>Aerial photographs of 2003</Name>
        <!-- Maximum size of a texel after projection -->
        <MaxProjectedTexelSize>1</MaxProjectedTexelSize>
        <CoverageStoreId>campusortho</CoverageStoreId>
      </DEMTextureDataset> 
      <ColormapDataset>
        <Title>colormap</Title>
        <Name>A linear interpolated colormap with isotrope height lines</Name>
        <MinColor>#FF0000</MinColor>
        <!--MaxColor>#00FF00</MaxColor-->
        <!--HeightISOColor>#221109</HeightISOColor-->
        <MinZValue>0</MinZValue>
        <!--MaxZValue>500</MaxZValue-->
      </ColormapDataset>
      <RenderableDataset>
        <Title>buildings</Title>
        <Name>Buildings of the city</Name>
        <Abstract>The building of the city</Abstract>
        <RenderableStoreId>buildings</RenderableStoreId>
        <MaxPixelError>5</MaxPixelError>
        <SwitchLevels>
          <Level min="0.0" max="0.03" />
          <Level min="0.03" max="0.05" />
          <Level min="0.05" max="0.09" />
          <Level min="0.09" max="0.85" />
          <Level min="0.85" max="1.1" />
          <Level min="1.1" max="10" />
        </SwitchLevels>
      </RenderableDataset>      
    </DatasetDefinitions>
  </ServiceConfiguration>
</deegreeWPVS>
