You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a finer control of the default styles generated for layers uploaded with GeoNode, and in particular to be able to generate CSS default styles for new layers, we are forced to do the following:
create the new layer with an importer session
the importer generates a default style for the new layer starting from Geoservers's (SLD) default styles
we create a new CSS style on Geoserver and we set this style as the default for the new layer
we delete the SLD default style generated by the importer
Alternative solutions investigated:
make Geoserver use CSS default styles. We haven't tested how Geoserver behaves if its datadir is preconfigured with CSS default styles, in any case it will be problematic for existing datadirs. We would need to replace the SLD default styles "offline", otherwsie Geoserver will regenrate the SLD styles when they get removed.
upload the CSS style before the importer session, and then set the style name for the new layer inside the import task. This requires, in case of problems during the import session, to take care of removing the style to avoid piling up orphan styles
The best would be to extend the importer to support uploading the style body along with the layer data.
Ideally a new optional style object inside the JSON defintion of a File Upload task should let the caller pass the style body and the style name for the new layer.
@simboss, as from a quick chat with @aaime, I propose to estimate this development, since it would make the management of the default style much more robust and clean.
The text was updated successfully, but these errors were encountered:
giohappy
changed the title
Implement support to pass style body inside an importer
Implement support to set the style body inside an importer session task
Dec 3, 2021
giohappy
changed the title
Implement support to set the style body inside an importer session task
Support setting the style body inside an importer session task
Dec 3, 2021
giohappy
changed the title
Support setting the style body inside an importer session task
Implement setting the style body inside an importer session task
Dec 3, 2021
For a finer control of the default styles generated for layers uploaded with GeoNode, and in particular to be able to generate CSS default styles for new layers, we are forced to do the following:
Alternative solutions investigated:
The best would be to extend the importer to support uploading the style body along with the layer data.
Ideally a new optional
style
object inside the JSON defintion of a File Upload task should let the caller pass the style body and the style name for the new layer.@simboss, as from a quick chat with @aaime, I propose to estimate this development, since it would make the management of the default style much more robust and clean.
The text was updated successfully, but these errors were encountered: