Hi Andrea,
Well, that means that the style editor needs some love and that novalues
need to be taken care of. Then things look very nice.
I have some re-design ideas for the style editor I am working on and
hope to share in the next day or two.
Do you know if there some uDig wiki page where I should post my
thoughts/ideas?
Aside, the GRASS raster layers do not seem to be recognized by the legen,
they just look like a grid icon. Any idea what I need to do to enable them
also for colormap?
First, I had some errors when I used the "Grass Color Rules" style page,
but if I use the "Single Band Rasters" style page I was able to get the
SLD xml generated. With the "Grass Color Rules" page the SLD xml was
did not contain any styleentry rules so nothing could be displayed.
However, The SLD xml generated for the "Single Band Rasters" generates
the following xml fragment:
<sld:FeatureTypeStyle>
<sld:Name>name</sld:Name>
If you manually change this to:
<sld:FeatureTypeStyle>
<sld:Name>Feature</sld:Name>
It works just fine.
This source of this problem is the locateStyle(ILayer) function in the
LegendGraphic class. This function locates the styles to draw in the
legend. It looks for a style with a name that matches the layer schema
name (null for raster layers) or the default "Feature" name. We have
neither thus no styles are found.
I do not understand the reason behind this logic, but perhaps if no
styles are found that meet the above requirements we can return the
first featuretypestyle found.
Emily
Cheers,
Andrea
_______________________________________________
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