Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [udig-devel] Single Band Raster Styling

Hi Andrea,

I think I addressed most of your problems/requests. I added the ability to format the labels, and initialize the formatting based on the raster data type, added the one click export, fixed some bugs. Have a look at let me know.

As for the plugin, I created a new plugin as it was easiest for me at the time. I can integrate with an existing plugin.

How about I put it into the net.refractions.udig.style.sld plugin with some of the other raster styling pages?


Emily



On 15/02/2013 10:51 PM, andrea antonello wrote:
Hi Emily,

I'll pass on the massive raster for now :)  I was able to get a similar
error with something else I was testing.  Perhaps when I update you can test
again for me.

Sure thing!

[...]
The "Compute Values" dialog has very little to do with sld.  It basically
computes a set of numbers.
For example, for equal intervals it computes the min and max of the raster
and divides it by the number of intervals you requested.  The "values to
ignore" are values that are not taken into account when computing the min
and max.

So if your raster has the value -9999,0-10 and you don't put anything in the
"values to ignore" dialog you'll get breaks of -9999, -8998, -7997, ... 10.
If you put -9999 in the "values to ignore" box then you will get breaks of
0,1,2....10.

ok, which sounds reasonable. So when it comes to style, they are
indeed ignored and no longer available.

For your issue of the collar when reprojection orthophotos, you will need to
add an extra row to the map theming table (on the main page) with an opacity
of 0, value of the "collar" value, and a label of "-no data-" (if you don't
want it to show up in the legend).

Ok. In the ortophoto case it is a bit more complicated, since it is
not single banded, but that is not the topic here, since the styler is
single banded.

At one point in the past you mentioned NaN numbers in rasters - I get the
impression the geotools styling engine does not support this?  As soon as I
put a NaN value in the sld, all other styling is ignored. Perhaps I am doing
something wrong.

No, you are right, geotools already handles them and ignores them when
rendering.
So they simply do not appear.
The problem I found sometimes, is that in the case of adf esri
binaries, the novalue is not handled properly, being (from memory) a
Float.MAX_VALUE or something similar. In that case it is handy to be
able to set it. That applies to styling, if you are doing processing,
then you will need to remove them anyways with some mapalgebra.

One more question. I see you created a new plugin, which is a bit
against the try we are having to merge plugins instead of adding new.
Is this bound to the need of the plugin's namespace? Your styler
should really replace my single band raster styler, since it is
better. Let's discuss how to best proceed.

Cheers,
Andrea





Emily





_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel
_______________________________________________
User-friendly Desktop Internet GIS (uDig)
http://udig.refractions.net
http://lists.refractions.net/mailman/listinfo/udig-devel



Back to the top