Re: creating a FieldImpl with an incongruous CoordinateSystem

Hi Steve,

> It appears that it's possible to create a FieldImpl whose domain type
> has a null CoordinateSystem and yet whose domain set has a non-null
> CoordinateSystem.
> 
> Is this a bug or a feature?

Have you tried it, to make sure its possible?  It looks like the
FieldImpl constructor will call Set.cloneButType() to force the
domain type of the FieldImpl to match the domain type of the
FieldImpl's domin Set.  cloneButType will invke a Set constructor
that checks the convertability of the type's CoordinateSystem with
the Set's CoordinateSystem.

On the other hand, this logic is a bit complex and may have a bug.
Please test it.  If it is indeed possible to construct a FieldImpl
whose domain type has a null CoordinateSystem and yet whose domain
set has a non-null CoordinateSystem, please fix it (probably will
suffice to test for the condition in the FieldImpl constructor
and throw an Exception if its bad.

Thank you,
Bill
----------------------------------------------------------  
Bill Hibbard, SSEC, 1225 W. Dayton St., Madison, WI  53706
hibbard@xxxxxxxxxxxxxxxxx  608-263-4427  fax: 608-263-6738
http://www.ssec.wisc.edu/~billh/vis.html



  • 1999 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: