[GeoNode-users] set default_style_id by reading geoserver layer

simone balbo simone.blb at gmail.com
Mon Jan 9 09:02:05 PST 2017


Grazie Simo!

That was exactly what I was looking for!

Simone

On 9 January 2017 at 10:23, Simone Dalmasso <simone.dalmasso at gmail.com>
wrote:

> Bella Simo,
>
> we should have something that should help you, take a look at this function
> https://github.com/GeoNode/geonode/blob/master/geonode/
> geoserver/helpers.py#L740.
>
> Let me know.
>
> Ciao
>
> 2017-01-05 17:07 GMT+01:00 simone balbo <simone.blb at gmail.com>:
>
>> Hi list,
>>
>> I found out that I have the 'default_style_id' field set to null for all
>> my layers in GeoNode 2.4 (not sure how I end up with this, probably
>> update_layers?).
>>
>> Therefore I would like to write a script that for each layer reads the
>> default style for the corresponding layer in geoserver and sets the correct
>> id in GeoNode.
>> Does anyone have suggestion on which existing function can I take
>> advantage of?
>>
>> Thanks!
>>
>> Simone
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/geonode-users
>>
>>
>
>
> --
> Simone
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170109/f7ef3299/attachment-0001.html>


More information about the geonode-users mailing list