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.

Re: MetApps ShapefileAdapter

Luke-

"Luke A. Catania (TEC)" wrote:
> 
> Is there a way to use a map projection with VisAD?   If so  there example
> code?? After using the DisplayImplJ3D, I was able to get the map of the
> world shape file displayed, but it does not look correct because of the lack
> of a map projection.

As Bill mentioned, we use a Display side CS in MetApps.
See ucar.unidata.view.geoloc.MapProjectionDisplay.  This
will take either a visad.georef.MapProjection or a 
ucar.unidata.geoloc.Projection as input to set the background
projection.  For a version of MapProjectionDisplay that
uses vanilla VisAD (i.e. no Unidata classes), see:

ftp://ftp.unidata.ucar.edu/pub/dmurray/MapProjectionDisplay.java

This does not allow you to change projections, though whereas
ucar.unidata.view.geoloc.MapProjectionDisplay does allow changes
by creating a new DisplayRealTupleType with each change.

Don 
*************************************************************
Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
http://www.unidata.ucar.edu/staff/donm
*************************************************************


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