Hi Jukka,
I tried to improve this problem in r4343
1) I think OpenJUMP must handle null values because
- null values are supported in all databases
- null values is different from empty string, false or 0 in the OpenJUMP
API itself
2) text based format will generally not support or have a bad support
for null values
3) In OpenJUMP user interface, there are different places where it is
currently not
possible to handle null values correctly. I just tried to improve the
AttributeTable so
that it is now possible to set back a value to null.
Michaël
Le 19/03/2015 11:00, Rahkonen Jukka (MML) a écrit :
Hi Michael,
Have you been thinking if OpenJUMP should support NULL as a third
option in Boolean attributes? Right now it seems to partly support
NULLs, partly not.
-Create a new feature, do not edit attributes, save -> Boolean
attributes are saved as NULLs but user probably believes that they are
False because attribute table shows the box unchecked.
-Edit Boolean attribute by checking/unchecking the tick box -> Value
is True or False but it can’t be changed back to NULL
Current behavior does not feel correct. I can imagine two alternatives:
-Deny NULL and initialize all Boolean attributes to False.
-Make some clever change to user interface that makes difference
between the three Boolean values: NULL, TRUE, FALSE. Empty check box
with colored borders for null? Or three-item drop-down menu?
Considerations about what it means on the Java side
http://stackoverflow.com/questions/11185321/when-should-null-values-of-boolean-be-used
dBase format and shapefiles do support NULL
http://www.clicketyclick.dk/databases/xbase/format/data_types.html
-Jukka Rahkonen-
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Jump-pilot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel