Jan Suleiman, terrestris GmbH & Co. KG
Daniel Koch, terrestris GmbH & Co. KG
LAYER
NAME "point_simple_point"
TYPE POINT
DATA "../shapes/points.shp"
EXTENT -180 -90 180 90
METADATA
"wms_title" "point_simple_point"
"wms_srs" "EPSG:4326"
END
CLASS
STYLE
SYMBOL "circle"
COLOR 0 255 0
SIZE 15
END
END
END
LAYER
NAME "point_simple_point"
TYPE POINT
DATA "../shapes/points.shp"
EXTENT -180 -90 180 90
METADATA
"wms_title" "point_simple_point"
"wms_srs" "EPSG:4326"
END
CLASS
STYLE
SYMBOL "circle"
COLOR 0 255 0
SIZE 15
END
END
END
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<StyledLayerDescriptor version="1.1.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" xmlns:se="http://www.opengis.net/se">
<NamedLayer>
<se:Name>Demo Style</se:Name>
<UserStyle>
<se:Name>Demo Style</se:Name>
<se:FeatureTypeStyle>
<se:Rule>
<se:Name>Rule 1</se:Name>
<se:PointSymbolizer uom="http://www.opengeospatial.org/se/units/pixel">
<se:Graphic>
<se:Mark>
<se:WellKnownName>circle</se:WellKnownName>
</se:Mark>
</se:Graphic>
</se:PointSymbolizer>
</se:Rule>
</se:FeatureTypeStyle>
</UserStyle>
</NamedLayer>
</StyledLayerDescriptor>
geostyler -s qgis -t sld -o output.sld input.qml
Land: {{federal_state}}
Population: {{pop}}
Incl. auto-complete
Opacity: {{pop / total_pop}}
Color: {{'#aabb' + pop}}
const myContext = {
"composition": {
"LineEditor": {
"opacityField": {
"visibility": false
},
"widthField": {
"default": 5
}
},
"IconEditor": {
"visibility": false
}
},
"locale": {
"Style": {
"nameFieldLabel": "Style Name"
}
}
};
<GeoStylerContext.Provider value={myContext}>
<Style style={style} onStyleChange={onChange} />
</GeoStylerContext.Provider>
{
version: 8,
name: 'Simple Circle',
layers: [
{
id: 'Simple Circle',
type: 'circle',
paint: {
'circle-color': '#000000',
'circle-radius': 5,
'circle-opacity': 1,
'circle-stroke-width': 2,
'circle-stroke-color': '#FF0000',
'circle-stroke-opacity': 0.5
}
}
]
}
{
name: 'Simple Circle',
rules: [{
name: 'Simple Circle',
symbolizers: [{
kind: 'Mark',
wellKnownName: 'circle',
color: '#000000',
radius: 5,
fillOpacity: 1,
strokeWidth: 2,
strokeColor: '#FF0000',
strokeOpacity: 0.5
}]
}]
}
<CssParameter name="stroke-width">
<Function name="max">
<Function name="pi" />
<Function name="strLength">
<PropertyName>Foo</PropertyName>
</Function>
</Function>
</CssParameter>
Slides are published under CC BY-SA
license.
terrestris.github.io/foss4g2023
git repository