Documentation of 'visad.data.gis.DemFamily' Java class
DemFamily
visad.data.gis

Class DemFamily

    • Constructor Summary

      Constructors 
      Constructor and Description
      DemFamily(java.lang.String name)
      Construct a family of the supported map datatype Forms
      DemFamily(java.lang.String name, MathType dataFormat)
      Construct a family of the supported map datatype Forms
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      static void addFormToList(FormNode form)
      Add to the family of the supported map datatype Forms
      java.lang.String[] getDefaultSuffixes()
      Get a list of default suffixes for McIDAS map files
      boolean isThisType(byte[] block)
      Determines if this is a USGS DEM file from the starting block
      boolean isThisType(java.lang.String name)
      Determines if this is a DEM file from the name
      static void main(java.lang.String[] args)
      Test the DemFamily class run java visad.data.gis.DemFamily dem1 dem2 ...
      DataImpl open(java.lang.String id)
      Open a local data object using the first appropriate map form.
      DataImpl open(java.net.URL url)
      Open a remote data object using the first appropriate map form.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DemFamily

        public DemFamily(java.lang.String name)
        Construct a family of the supported map datatype Forms
        Parameters:
        name - name of the family
      • DemFamily

        public DemFamily(java.lang.String name,
                         MathType dataFormat)
        Construct a family of the supported map datatype Forms
        Parameters:
        name - name of the family
    • Method Detail

      • addFormToList

        public static void addFormToList(FormNode form)
                                  throws java.lang.ArrayIndexOutOfBoundsException
        Add to the family of the supported map datatype Forms
        Parameters:
        form - FormNode to add to the list
        Throws:
        java.lang.ArrayIndexOutOfBoundsException - If there is no more room in the list.
      • isThisType

        public boolean isThisType(java.lang.String name)
        Determines if this is a DEM file from the name
        Specified by:
        isThisType in interface FormFileInformer
        Parameters:
        name - name of the file
        Returns:
        true if it matches the pattern for USGS DEM files
      • isThisType

        public boolean isThisType(byte[] block)
        Determines if this is a USGS DEM file from the starting block
        Specified by:
        isThisType in interface FormFileInformer
        Parameters:
        block - block of data to check
        Returns:
        false - there is no identifying block in a USGS DEM file
      • getDefaultSuffixes

        public java.lang.String[] getDefaultSuffixes()
        Get a list of default suffixes for McIDAS map files
        Specified by:
        getDefaultSuffixes in interface FormFileInformer
        Returns:
        valid list of suffixes
      • main

        public static void main(java.lang.String[] args)
                         throws BadFormException,
                                java.io.IOException,
                                java.rmi.RemoteException,
                                VisADException
        Test the DemFamily class run java visad.data.gis.DemFamily dem1 dem2 ... demn
        Throws:
        BadFormException
        java.io.IOException
        java.rmi.RemoteException
        VisADException

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.