-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding title and abstract to raster styles
Showing configured raster styles in WMS capabilities Adding command to link RasterStyle to BrowseTypes
- Loading branch information
1 parent
b6752d6
commit 0e87b7c
Showing
11 changed files
with
163 additions
and
50 deletions.
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 |
---|---|---|
@@ -1,14 +1,25 @@ | ||
from eoxserver.render.colors import COLOR_SCALES | ||
from eoxserver.render.browse.objects import RasterStyle, RasterStyleColorEntry | ||
from eoxserver.render.colors import COLOR_SCALES, BASE_COLORS | ||
from eoxserver.render.browse.objects import ( | ||
GeometryStyle, | ||
RasterStyle, | ||
RasterStyleColorEntry, | ||
) | ||
|
||
DEFAULT_RASTER_STYLES = {} | ||
DEFAULT_GEOMETRY_STYLES = {} | ||
|
||
for name, entries in COLOR_SCALES.items(): | ||
DEFAULT_RASTER_STYLES[name] = RasterStyle( | ||
name, | ||
name, | ||
name, | ||
"ramp", | ||
[ | ||
RasterStyleColorEntry(i, color) | ||
for i, color in entries | ||
] | ||
) | ||
|
||
|
||
for name in BASE_COLORS.keys(): | ||
DEFAULT_GEOMETRY_STYLES[name] = GeometryStyle(name, name, name) |
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
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
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
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
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
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
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.