52North / IlwisCore

Integrated Land and Water Information System (ILWIS) is a remote sensing and GIS software. ILWIS Core is the functional center of ilwis4..
http://52north.org/communities/ilwis/
34 stars 13 forks source link

NumercRange->value(rUNDEF) #38

Closed pokulo closed 10 years ago

pokulo commented 10 years ago

a table cell of type value (Domain), which was not yet defined, contains rUNDEF. retreaving its value we go here, here and here but there is no check on UNDEF before converting it into QString. So in the end (in this case Python) I get (qint64)rUNDEF which is neither Const.rUNDEF nor Const.i64UNDEF. So no way of handling this externaly!

pokulo commented 10 years ago

The implementation of value has been more a "toString" implementation, so we skip all the conversion here and might introduce a toString method separately.

pokulo commented 10 years ago

On this occasion we should change the return type of Domain::value to QVariant and move the numericrange.h/.cpp from utils into ilwisobjects/domain/

MartinSchouwenburg commented 10 years ago

will move the numericrange; the value method has been renamed to impliedValue and returns a QVariant. toString is possible but it maps impliedValue (though return type is different) fairly closely so I dont think at this moment it is needed