-
-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug
Describe the bug
1/ A style in geostyler format is not correctly converted to SLD format
2/ There is a warning message about 'Fill' symbolizer king, could it be related ?
To Reproduce
geostyler.exe -s geostyler -t sld sample.geostyler -o sample.sld
Input data in 'sample.geostyler' file is :
{
"name": "Basic",
"rules": [
{
"filter": [
"&&",
[
"==",
"$type",
"Polygon"
],
[
"in",
"class",
"residential",
"suburb",
"neighbourhood"
]
],
"name": "landuse-residential",
"symbolizers": [
{
"kind": "Fill",
"visibility": true,
"opacity": 0.7
}
]
},
{
"filter": [
"==",
"class",
"grass"
],
"name": "landcover_grass",
"symbolizers": [
{
"kind": "Fill",
"opacity": 0.45
}
]
},
{
"filter": [
"==",
"class",
"wood"
],
"name": "landcover_wood",
"symbolizers": [
{
"kind": "Fill",
"opacity": {
"base": 1,
"stops": [
[
8,
0.6
],
[
22,
1
]
]
}
}
]
},
{
"filter": [
"&&",
[
"==",
"$type",
"LineString"
],
[
"!in",
"brunnel",
"tunnel",
"bridge"
],
[
"==",
"intermittent",
1
]
],
"name": "waterway_intermittent",
"symbolizers": [
{
"kind": "Line",
"visibility": true,
"opacity": 1,
"width": {
"base": 1.4,
"stops": [
[
8,
1
],
[
20,
8
]
]
},
"dasharray": [
2,
1
]
}
]
}
],
"metadata": {
"mapbox:ref": {
"sources": {
"openmaptiles": {
"type": "vector",
"url": "https://api.maptiler.com/tiles/v3-openmaptiles/tiles.json?key=get_your_own_OpIi9ZULNHzrESv6T2vL"
}
},
"sourceMapping": {
"openmaptiles": [
0,
1,
2,
3
]
},
"sourceLayerMapping": {
"landuse": [
0
],
"landcover": [
1,
2
],
"waterway": [
3
]
}
}
}
}Expected behavior
I'd expect that all datas in source are converted in target.
Input data contains either 'Fill' or 'Line' symbolizer kind. But in both cases, datas are swallowed and are missing in ouput.
Desktop (please complete the following information):
- OS: Windows 10 or 11
Additional context
Warning message :
- Starting Geostyler CLIYour style contains unsupportedProperties!Target parser SLD Style Parser does not support the following properties:
{"Symbolizer":{"FillSymbolizer":{"visibility":"none","opacity":{"support":"none","info":"General opacity is not supporte√ File "sample.geostyler" translated successfully. Output written to sample.sld
(note about warning message : the message is incomplete in ouput window, in my case this is either a DOS or a Powershell window)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working