[GeoNode-users] Styling a raster layer

Daniel Victoria daniel.victoria at gmail.com
Sun Mar 8 14:41:57 PDT 2015


+1
On Mar 8, 2015 3:06 PM, "Erick Omwandho Opiyo" <e.omwandho at gmail.com> wrote:

> Hi Everyone,
>
> Are there plans to make styling possible for raster layers, the same way a
> user will do it for vector layer, on the client side without access to
> geoserver?
>
> An ordinary user with no administrative privileges will not be able to
> change styles for layers once uploaded, since they don't  have access to
> geoserver.
>
> We experience this situation before. Where a user uploaded a layer and
> wanted to change style it based on pixel values.
>
> Erick
>
> On Tue, Mar 3, 2015 at 11:25 AM, Ramesh De Silva <desilvarami at gmail.com>
> wrote:
>
>> Thanks a lot John. Following your instructions, I managed to remove the
>> red area in the picture.
>>
>> On Tue, Mar 3, 2015 at 10:32 AM, John Jediny <john.jediny at gmail.com>
>> wrote:
>>
>>> That plus sometimes the layer won't transfer the "no data" value to sld
>>> w/ SLD4raster; use the 'identify' tool to find the value for the red in the
>>> pic you sent and set that value to = 0.0 opacity/transparency directly in
>>> geoservers sld editor. Reference geoservers sld for raster tutorial for
>>> formatting help
>>>
>>> On Monday, March 2, 2015, Ramesh De Silva <desilvarami at gmail.com> wrote:
>>>
>>>> Dear Vivien,
>>>>
>>>> Many thanks for your directions. The first solution itself worked
>>>> smoothly. Really appreciate your help.
>>>>
>>>> Kind Regards
>>>> Ramesh
>>>>
>>>> On Tue, Mar 3, 2015 at 2:52 AM, Vivien Deparday <
>>>> vivien.deparday at gmail.com> wrote:
>>>>
>>>>> Hi Ramesh,
>>>>> this is very likely an issue related to GeoWebCache not clearing the
>>>>> cache properly even after the styles have been changed. There are a couple
>>>>> bug reports about it in github.
>>>>> First solution, go to GeoServer admin menu and on the left to the
>>>>> "Tile Layer" Menu and empty the cache from there for the layers you want.
>>>>> If it still doesn't work, you can fin the actual files of the tiles on the
>>>>> harddrive of the server and manually delete them, with this last resort, it
>>>>> should work for sure.
>>>>>
>>>>> Best,
>>>>>
>>>>> Vivien
>>>>>
>>>>> On Mon, Mar 2, 2015 at 1:57 PM, Ramesh De Silva <desilvarami at gmail.com
>>>>> > wrote:
>>>>>
>>>>>> Hi Paolo,
>>>>>>
>>>>>> Thanks for the directions. I created the SLD file using QGIS
>>>>>> SLD4raster plugin and uploaded to GeoServer. Then I assigned the style to
>>>>>> my raster layer. Now I can see the legends. Even the thumbnail got updated.
>>>>>> But map is still the same. Please have a look at following layer.
>>>>>>
>>>>>> http://203.159.29.10/layers/geonode:lc_10m_elvtif
>>>>>>
>>>>>> Same thing happens in vector layers as well. Please have a look at
>>>>>> http://203.159.29.10/layers/geonode:tha_adm1 . Here also I added the
>>>>>> SLD file in GeoServer level and assigned it to the data layer . I can see
>>>>>> the legends as well as thumbnail got updated after adding the SLD. But map
>>>>>> doesn't change.
>>>>>>
>>>>>> I did clear the browser cache assuming this is a caching issue. But
>>>>>> it is still the same. Also I tried from a different PC.
>>>>>>
>>>>>> By the way, if I preview these layers in GeoServer Layer Preview, I
>>>>>> can see the thematic map. Please let me know, if I need to do anything more
>>>>>> in order to make it effective in GeoNode level.
>>>>>>
>>>>>> Many thanks.
>>>>>>
>>>>>> Kind Regards
>>>>>> Ramesh
>>>>>>
>>>>>>
>>>>>> On Mon, Mar 2, 2015 at 9:15 PM, Paolo Corti <pcorti at gmail.com> wrote:
>>>>>>
>>>>>>> You will need to edit the GeoServer style directly from the
>>>>>>> GeoServer admin.
>>>>>>> A nice tool to use to generate the sld for rasters is the SLD4raster
>>>>>>> QGIS plugin.
>>>>>>> It can even upload the style to GeoServer from QGIS.
>>>>>>> regards
>>>>>>> p
>>>>>>>
>>>>>>> On Mon, Mar 2, 2015 at 1:56 PM, Ramesh De Silva <
>>>>>>> desilvarami at gmail.com> wrote:
>>>>>>> > Hi,
>>>>>>> >
>>>>>>> > I need to label different colors appearing in a raster layer. It
>>>>>>> seems I can
>>>>>>> > not do this using the style editor as there is no attribute table
>>>>>>> associated
>>>>>>> > with the raster layer.
>>>>>>> >
>>>>>>> > Is there a way to label these classes represented by different
>>>>>>> colors?
>>>>>>> >
>>>>>>> > Kind Regards
>>>>>>> > Ramesh
>>>>>>> >
>>>>>>> > _______________________________________________
>>>>>>> > geonode-users mailing list
>>>>>>> > geonode-users at lists.osgeo.org
>>>>>>> > http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Paolo Corti
>>>>>>> Geospatial software developer
>>>>>>> web: http://www.paolocorti.net
>>>>>>> twitter: @capooti
>>>>>>> skype: capooti
>>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> geonode-users mailing list
>>>>>> geonode-users at lists.osgeo.org
>>>>>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>> --
>>> Cell: 973-931-0580
>>>
>>>
>>>
>>
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>>
>>
>
>
> --
> *Kind Regards,*
>
> *Erick Omwandho Opiyo*
>
> *Cell:               0724590982*
>  *Blog:              http://eomwandho.wordpress.com
> <http://eomwandho.wordpress.com>*
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150308/ae9773eb/attachment.html>


More information about the geonode-users mailing list