<p dir="ltr">+1</p>
<div class="gmail_quote">On Mar 8, 2015 3:06 PM, "Erick Omwandho Opiyo" <<a href="mailto:e.omwandho@gmail.com">e.omwandho@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Everyone,<br><br></div>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? <br><br>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.<br><br></div><div>We experience this situation before. Where a user uploaded a layer and wanted to change style it based on pixel values. <br></div><div><br></div>Erick <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 11:25 AM, Ramesh De Silva <span dir="ltr"><<a href="mailto:desilvarami@gmail.com" target="_blank">desilvarami@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks a lot John. Following your instructions, I managed to remove the red area in the picture. </div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 10:32 AM, John Jediny <span dir="ltr"><<a href="mailto:john.jediny@gmail.com" target="_blank">john.jediny@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<span></span> Reference geoservers sld for raster tutorial for formatting help<div><div><div><br>On Monday, March 2, 2015, Ramesh De Silva <<a href="mailto:desilvarami@gmail.com" target="_blank">desilvarami@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear Vivien,<div><br></div><div>Many thanks for your directions. The first solution itself worked smoothly. Really appreciate your help.</div><div><br></div><div>Kind Regards</div><div>Ramesh</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 3, 2015 at 2:52 AM, Vivien Deparday <span dir="ltr"><<a>vivien.deparday@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ramesh, <div>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. </div><div>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.</div><div><br></div><div>Best,</div><div><br></div><div>Vivien</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 2, 2015 at 1:57 PM, Ramesh De Silva <span dir="ltr"><<a>desilvarami@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Paolo,<div><br></div><div>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.</div><div><br></div><div><a href="http://203.159.29.10/layers/geonode:lc_10m_elvtif" target="_blank">http://203.159.29.10/layers/geonode:lc_10m_elvtif</a> <br></div><div><br></div><div>Same thing happens in vector layers as well. Please have a look at <a href="http://203.159.29.10/layers/geonode:tha_adm1" target="_blank">http://203.159.29.10/layers/geonode:tha_adm1</a> . 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.</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Many thanks.</div><div><br></div><div>Kind Regards</div><span><font color="#888888"><div>Ramesh</div><div><br></div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 2, 2015 at 9:15 PM, Paolo Corti <span dir="ltr"><<a>pcorti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You will need to edit the GeoServer style directly from the GeoServer admin.<br>
A nice tool to use to generate the sld for rasters is the SLD4raster<br>
QGIS plugin.<br>
It can even upload the style to GeoServer from QGIS.<br>
regards<br>
p<br>
<div><div><br>
On Mon, Mar 2, 2015 at 1:56 PM, Ramesh De Silva <<a>desilvarami@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I need to label different colors appearing in a raster layer. It seems I can<br>
> not do this using the style editor as there is no attribute table associated<br>
> with the raster layer.<br>
><br>
> Is there a way to label these classes represented by different colors?<br>
><br>
> Kind Regards<br>
> Ramesh<br>
><br>
</div></div>> _______________________________________________<br>
> geonode-users mailing list<br>
> <a>geonode-users@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Paolo Corti<br>
Geospatial software developer<br>
web: <a href="http://www.paolocorti.net" target="_blank">http://www.paolocorti.net</a><br>
twitter: @capooti<br>
skype: capooti<br>
</font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
geonode-users mailing list<br>
<a>geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</blockquote></div><br><br></div></div><span><font color="#888888">-- <br>Cell: <a href="tel:973-931-0580" value="+19739310580" target="_blank">973-931-0580</a><br><br><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><br>
</font></span></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div><font color="#888888"><div>
<b><font color="#666666">Kind Regards,</font></b></div><b><font color="#666666"><div><b><br></b></div>Erick Omwandho Opiy<font color="#888888">o</font></font></b><div><font color="#666666"><br><i>Cell: 0724590982</i></font><br><u><span style="color:rgb(51,51,255)"></span></u></div>
<div><i><font color="#666666">Blog: </font><a href="http://eomwandho.wordpress.com" style="color:rgb(51,51,255)" target="_blank">http://eomwandho.wordpress.com</a></i></div></font></div>
</div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div>