[udig-devel] style theme dialog bug

Jesse Eichar jeichar at refractions.net
Sun Nov 4 22:02:58 PST 2007


Hey Vince,

Thanks for the bug report.  I've managed to fix this bug thanks to the  
report

Jesse
On 2-Nov-07, at 3:42 PM, Vince Darley wrote:

> I've done some more careful testing.  The circumstances I reported  
> earlier aren't quite right.  Here's the basic approach to reproduce:
>
> 1) Open Style Editor->Theme.
>
> 2) Select an attribute (in my case "Driver ID" with a 'String' type,  
> but not sure if that's important), which has, say, 10 distinct values.
>
> 3) After a brief pause the message in the bottom of the window says  
> "10 unique values were found for Driver ID", and the popup Classes  
> menu shows '10'
>
> Notice now, that the list of possible colour Palettes has not been  
> filtered.  It still shows all palettes (about 20 of them).
>
> 4) To reproduce the bug you need to select a palette which is NOT  
> one that would still be shown when the list is filtered.  To  
> discover which those are, use the popup 'Classes' menu and select  
> '10' (which was already showing).  Notice how the list of Palettes  
> is suddenly filtered down to a much smaller number.  These ones work  
> fine.  Remember which they are, cancel the dialog, start again, and  
> now select one of these which was not in the filtered list.  You  
> will now get the error.
>
> --
>
> So it seems the problem is really that step '3' above adjusts the  
> popup Classes menu, but does not filter the list of Palettes.
>
> cheers,
>
> Vince.
>
> At 19:06 02/11/2007, Jesse Eichar wrote:
>> I'm still trying to reproduce this...  The brackets don't seem to be
>> the problem.  I just did that and it worked just fine.  Could there  
>> be
>> some odd data in those columns or could it be mistaking them for
>> Geometry types..  Actually thats a good point what is the type of
>> those attributes.
>>
>> Jesse
>>
>> On 31-Oct-07, at 4:34 AM, Vince Darley wrote:
>>
>>> When using the Style Editor->Theme dialog, and I select an attribute
>>> (which has 11 distinct values in this case), and some of those
>>> attribute values has brackets in, I get this error in the log and
>>> the dialog doesn't work correctly.
>>>
>>> Only 9 of my 11 attributes show up.  The missing ones are called:
>>>
>>> Refuse Team 8 (Thetford)
>>> Refuse Team 9 (Thetford)
>>>
>>> none of the others have '()' in the name (so I'm assuming that's the
>>> problem, although it could be something else).
>>>
>>> Error log below...
>>>
>>> Vince.
>>>
>>>
>>> java.lang.NumberFormatException: For input string:
>>> "ava.awt.Color[r=128,g=128,b=128]"
>>>       at java.lang.NumberFormatException.forInputString(Unknown
>>> Source)
>>>       at java.lang.Integer.parseInt(Unknown Source)
>>>       at org.geotools.styling.SLD.toColor(SLD.java:1778)
>>>       at
>>> net 
>>>  .refractions 
>>>  .udig 
>>>  .style 
>>>  .sld 
>>>  .editor 
>>>  .internal 
>>>  .StyleTreeLabelProvider 
>>> .getColumnImage(StyleTreeLabelProvider.java:58)
>>>       at
>>> org 
>>>  .eclipse 
>>>  .jface 
>>>  .viewers 
>>>  .TableColumnViewerLabelProvider 
>>>  .update(TableColumnViewerLabelProvider.java:71)
>>>       at
>>> org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java: 
>>> 135)
>>>       at
>>> org 
>>>  .eclipse 
>>>  .jface 
>>>  .viewers.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java: 
>>> 911)
>>>       at org.eclipse.jface.viewers.AbstractTreeViewer  
>>> $UpdateItemSafeRunnable.r
>>>
>>> Vince Darley
>>> CEO, Eurobios UK Ltd
>>> Tel: +44 207 921 0445
>>> Mobile: +44 794 154 8527
>>> www.eurobios.com
>>>
>>> _______________________________________________
>>> 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
>>
>>
>>
>> --
>> No virus found in this incoming message.
>> Checked by AVG Free Edition. Version: 7.5.503 / Virus Database:  
>> 269.15.18/1104 - Release Date: 01/11/2007 18:47
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel



More information about the udig-devel mailing list