NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

AW: RealType problem

I think, you should give 'longitude' and 'altitude' different RealType
names, cause "time" and "height" are already in use - for different types.

latitude=RealType.getRealType("boucle",SI.meter,null);
longitude=RealType.getRealType("time2",SI.meter,null);
domain_tuple=new RealTupleType(latitude,longitude);
altitude=RealType.getRealType("height2",SI.meter,null);


Best wishes,

Eugen



-----Ursprüngliche Nachricht-----
Von: owner-visad@xxxxxxxxxxxxxxxx
[mailto:owner-visad@xxxxxxxxxxxxxxxx]Im Auftrag von Omar Bennani
Gesendet: Donnerstag, 9. Februar 2006 14:51
An: visad@xxxxxxxxxxxxxxxx
Betreff: RealType problem


Hi
In my application sometimes I display a 2D chart and
sometimes a 3D chart, when for example I display a 2D
chart with :

time = RealType.getRealType("time", SI.second, null);
height = RealType.getRealType("height");

but if after I want to display a 3D chart (in another
procedure and declaring a nex display) with :

latitude=RealType.getRealType("boucle",SI.meter,null);
longitude=RealType.getRealType("time",SI.meter,null);
domain_tuple=new RealTupleType(latitude,longitude);
altitude=RealType.getRealType("height",SI.meter,null);

It doesn't work, I have a for latitude and longitude a
null value
And it's the same when I display first a 3D and after
a 2D chart
thanks


        

        
                
___________________________________________________________________________ 
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs
exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com


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