[GeoNode-users] random sld file generated for geojson file during upload

Paolo Corti pcorti at gmail.com
Thu Nov 30 14:32:11 PST 2017


Hi

this can be changed easily in the get_sld_for method in
geonode/geoserver/helpers.py

For example, if using GeoNode 2.6:
https://github.com/GeoNode/geonode/blob/2.6.x/geonode/geoserver/helpers.py#L215

just override fg, bg as desired.

If this could be a useful feature, file a ticket and we can have
default colors and markers for styles defined in the settings file.

cheers
p


On Sun, Nov 26, 2017 at 9:27 PM, aquila <aquilaimaging at gmail.com> wrote:
> When I upload a new geojson file through geonode web interface a random sld
> file is generated and it becomes the default style for that new layer.
>
> I would like to remove this random behavior and have a default/predefined
> sld file assigned to all geojson file uploads.
>
> Thank you in advance for your assistance.
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users



-- 
Paolo Corti
Geospatial software developer
web: http://www.paolocorti.net
twitter: @capooti
skype: capooti


More information about the geonode-users mailing list