Package mil.nga.proj

Class Projections


  • public class Projections
    extends Object
    Collection of projections by authority
    Author:
    osbornb
    • Constructor Detail

      • Projections

        public Projections()
        Constructor
    • Method Detail

      • getProjections

        public AuthorityProjections getProjections​(String authority)
        Get the authority projections
        Parameters:
        authority - coordinate authority
        Returns:
        authority projections
      • getProjection

        public Projection getProjection​(String authority,
                                        String code)
        Get the projection for the authority and code
        Parameters:
        authority - coordinate authority
        code - coordinate code
        Returns:
        projection
      • hasProjection

        public boolean hasProjection​(Projection projection)
        Check if the collection contains the projection
        Parameters:
        projection - projection
        Returns:
        true if has the projection
      • hasProjection

        public boolean hasProjection​(String authority,
                                     String code)
        Check if the collection contains a projection for the authority and code
        Parameters:
        authority - coordinate authority
        code - coordinate code
        Returns:
        true if has a projection
      • addProjection

        public void addProjection​(Projection projection)
        Add the projection
        Parameters:
        projection - projection
      • clear

        public void clear()
        Clear all projections
      • clear

        public void clear​(String authority)
        Clear all projections for the authority
        Parameters:
        authority - coordinate authority
      • remove

        public void remove​(String authority,
                           long code)
        Remove the projection for the authority and code
        Parameters:
        authority - coordinate authority
        code - coordinate code
      • remove

        public void remove​(String authority,
                           String code)
        Remove the projection for the authority and code
        Parameters:
        authority - coordinate authority
        code - coordinate code
      • remove

        public void remove​(Projection projection)
        Remove the projection
        Parameters:
        projection - projection
      • authorityCount

        public int authorityCount()
        Get the count of authorities
        Returns:
        count
      • projectionCount

        public int projectionCount()
        Get the count of projections
        Returns:
        count
      • isEmpty

        public boolean isEmpty()
        Is the collection empty?
        Returns:
        true if empty