Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

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



 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Community Programs   Unidata is a member of the UCAR Community Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690