Skip to content

Points can now be rendered with customizable and scalable symbols

Compare
Choose a tag to compare
@maartenplieger maartenplieger released this 06 Apr 13:37
· 1129 commits to master since this release
d00aa44

Version 2.7.1 2022-04-06

  • Points can now be rendered with customizable and scalable symbols
  • The time dimension for a layer in a GetCapabilities document can now be set based on the modification time of the file by configuring a dimension using: <Dimension default="filetimedate">time</Dimension>
  <Symbol name="triangle" coordinates="[[-1, -1], [1, -1], [0.0, 1], [-1, -1]]"/>
  <Symbol name="square" coordinates="[[-1, -1], [1, -1], [1, 1], [-1, 1], [-1, -1]]"/>
  
  <Style name="age_magnitude">
    
    <Legend fixed="true" tickinterval="100000">magnitude</Legend>
    <RenderMethod>point</RenderMethod>
    <Min>0</Min>
    <Max>2000000</Max>
    <NameMapping name="point" title="Seismic events with age and magnitude" abstract="The seismic events are colored according to age and the size of the disc is based on Magnitude"/>
    <Point min="2592000" max="1000000000000" pointstyle="radiusandvalue" symbol="triangle" textformat=" " plotstationid="false"  fillcolor="#CCCCCC" discradius="2.5" textradius="0" dot="false" fontsize="14" textcolor="#FFFFFF"/>
    <Point min="604800" max="2592000" pointstyle="radiusandvalue" symbol="square" textformat=" " plotstationid="false"  fillcolor="#FFFFFFFF" discradius="2.5" textradius="0" dot="false" fontsize="14" textcolor="#FFFFFF"/>
    <Point min="86400" max="604800" pointstyle="radiusandvalue" textformat=" " plotstationid="false"  fillcolor="#FFFF00FF" discradius="2.5" textradius="0" dot="false" fontsize="14" textcolor="#FFFFFF"/>
    <Point min="3600" max="86400" pointstyle="radiusandvalue" textformat=" " plotstationid="false"  fillcolor="#FF9900FF" discradius="2.5" textradius="0" dot="false" fontsize="14" textcolor="#FFFFFF"/>
    <Point min="0" max="3600" pointstyle="radiusandvalue" textformat=" " plotstationid="false"  fillcolor="#FF0000" discradius="2.5" textradius="0" dot="false" fontsize="14" textcolor="#FFFFFF"/>
    <LegendGraphic value="{ADAGUC_DATASET_DIR}/beslegend.png"/>
  </Style>


  <Layer type="database">
    <Title>magnitude</Title>
    <FilePath filter="^.*\.csv$">/data/adaguc-autowms/BES/usgs_earthquakes-bla.csv</FilePath>
    <Variable>age</Variable>
    <Variable>magnitude</Variable>
    <Styles>age_magnitude</Styles>
  </Layer>

Gives

image