-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
373 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | ||
<StyledLayerDescriptor version="1.0.0" | ||
xsi:schemaLocation="http://www.opengis.net/sld StyledLayerDescriptor.xsd" | ||
xmlns="http://www.opengis.net/sld" | ||
xmlns:ogc="http://www.opengis.net/ogc" | ||
xmlns:xlink="http://www.w3.org/1999/xlink" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<NamedLayer> | ||
<Name>Simple Raster</Name> | ||
<UserStyle> | ||
<Title>Simple Raster</Title> | ||
<FeatureTypeStyle> | ||
<Rule> | ||
<Name>Small populated New Yorks</Name> | ||
<RasterSymbolizer> | ||
<Opacity>0.5</Opacity> | ||
<ChannelSelection> | ||
<RedChannel> | ||
<SourceChannelName>1</SourceChannelName> | ||
</RedChannel> | ||
<BlueChannel> | ||
<SourceChannelName>2</SourceChannelName> | ||
<ContrastEnhancement> | ||
<Histogram/> | ||
<GammaValue>2</GammaValue> | ||
</ContrastEnhancement> | ||
</BlueChannel> | ||
<GreenChannel> | ||
<SourceChannelName>3</SourceChannelName> | ||
<ContrastEnhancement> | ||
<Normalize/> | ||
</ContrastEnhancement> | ||
</GreenChannel> | ||
</ChannelSelection> | ||
<ColorMap type="ramp"> | ||
<ColorMapEntry color="#323232" quantity="-300" label="label1" opacity="1"/> | ||
<ColorMapEntry color="#BBBBBB" quantity="200" label="label2" opacity="1"/> | ||
</ColorMap> | ||
<ContrastEnhancement> | ||
<Histogram/> | ||
</ContrastEnhancement> | ||
</RasterSymbolizer> | ||
</Rule> | ||
</FeatureTypeStyle> | ||
</UserStyle> | ||
</NamedLayer> | ||
</StyledLayerDescriptor> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { Style } from 'geostyler-style'; | ||
|
||
const rasterSimpleRaster: Style = { | ||
'name': 'Simple Raster', | ||
'rules': [{ | ||
'name': 'Small populated New Yorks', | ||
'symbolizers': [{ | ||
'kind': 'Raster', | ||
'opacity': 0.5, | ||
'channelSelection': { | ||
'redChannel': { | ||
'sourceChannelName': '1' | ||
}, | ||
'blueChannel': { | ||
'sourceChannelName': '2', | ||
'contrastEnhancement': { | ||
'enhancementType': 'histogram', | ||
'gammaValue': 2 | ||
} | ||
}, | ||
'greenChannel': { | ||
'sourceChannelName': '3', | ||
'contrastEnhancement': { | ||
'enhancementType': 'normalize' | ||
} | ||
} | ||
}, | ||
'colorMap': { | ||
'type': 'ramp', | ||
'colorMapEntries': [{ | ||
'color': '#323232', | ||
'quantity': -300, | ||
'label': 'label1', | ||
'opacity': 1 | ||
}, { | ||
'color': '#BBBBBB', | ||
'quantity': 200, | ||
'label': 'label2', | ||
'opacity': 1 | ||
}] | ||
}, | ||
'contrastEnhancement': { | ||
'enhancementType': 'histogram' | ||
} | ||
}] | ||
}] | ||
}; | ||
|
||
export default rasterSimpleRaster; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
{ | ||
"StyledLayerDescriptor": { | ||
"$": { | ||
"version": "1.0.0", | ||
"xsi:schemaLocation": "http://www.opengis.net/sld StyledLayerDescriptor.xsd", | ||
"xmlns": "http://www.opengis.net/sld", | ||
"xmlns:ogc": "http://www.opengis.net/ogc", | ||
"xmlns:xlink": "http://www.w3.org/1999/xlink", | ||
"xmlns:xsi": "http://www.w3.org/2001/XMLSchema-instance" | ||
}, | ||
"NamedLayer": [ | ||
{ | ||
"Name": [ | ||
"Simple Raster" | ||
], | ||
"UserStyle": [ | ||
{ | ||
"Title": [ | ||
"Simple Raster" | ||
], | ||
"FeatureTypeStyle": [ | ||
{ | ||
"Rule": [ | ||
{ | ||
"RasterSymbolizer": [ | ||
{ | ||
"Opacity": [ | ||
"0.5" | ||
], | ||
"ChannelSelection": [ | ||
{ | ||
"RedChannel": [ | ||
{ | ||
"SourceChannelName": [ | ||
"1" | ||
] | ||
} | ||
], | ||
"BlueChannel": [ | ||
{ | ||
"SourceChannelName": [ | ||
"2" | ||
], | ||
"ContrastEnhancement": [ | ||
{ | ||
"Histogram": [ | ||
"" | ||
], | ||
"GammaValue": [ | ||
"2" | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"GreenChannel": [ | ||
{ | ||
"SourceChannelName": [ | ||
"3" | ||
], | ||
"ContrastEnhancement": [ | ||
{ | ||
"Normalize": [ | ||
"" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"ColorMap": [ | ||
{ | ||
"$": { | ||
"type": "ramp" | ||
}, | ||
"ColorMapEntry": [ | ||
{ | ||
"$": { | ||
"color": "#323232", | ||
"quantity": "-300", | ||
"label": "label1", | ||
"opacity": "1" | ||
} | ||
}, | ||
{ | ||
"$": { | ||
"color": "#BBBBBB", | ||
"quantity": "200", | ||
"label": "label2", | ||
"opacity": "1" | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"ContrastEnhancement": [ | ||
{ | ||
"Histogram": [ | ||
"" | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.