Skip to content

Instantly share code, notes, and snippets.

@talaj
Last active October 12, 2016 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save talaj/519cf925bcc7b945e73f2eea0299129b to your computer and use it in GitHub Desktop.
Save talaj/519cf925bcc7b945e73f2eea0299129b to your computer and use it in GitHub Desktop.
comp-op
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE Map[]>
<Map background-image="../../data/images/pattern.png">
<Parameters>
<Parameter name="sizes">512,512</Parameter>
<Parameter name="bbox">-1,-1,1,1</Parameter>
</Parameters>
<Style name="pozadi">
<Rule>
<PolygonPatternSymbolizer file="../../data/images/dummy.png" />
</Rule>
</Style>
<Style name="style">
<Rule>
<RasterSymbolizer>
<RasterColorizer default-mode="linear">
<stop color="rgba(0, 0, 0, 0)" value="0"/>
<stop color="rgba(0, 0, 0, 255)" value="200"/>
</RasterColorizer>
</RasterSymbolizer>
</Rule>
</Style>
<Layer name="pozadi" comp-op="src-over">
<StyleName>pozadi</StyleName>
<Datasource>
<Parameter name="inline">
wkt
"POLYGON((-1 -1, -1 1, 1 1, 1 -1, -1 -1))"
</Parameter>
<Parameter name="type">csv</Parameter>
</Datasource>
<Layer name="style" comp-op="dst-in">
<StyleName>style</StyleName>
<Datasource>
<Parameter name="file">p.tiff</Parameter>
<Parameter name="band">1</Parameter>
<Parameter name="type">gdal</Parameter>
</Datasource>
</Layer>
</Layer>
</Map>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment