Package mil.nga.proj

Class AuthorityProjections


  • public class AuthorityProjections
    extends Object
    Collection of projections for a single coordinate authority
    Author:
    osbornb
    • Constructor Detail

      • AuthorityProjections

        public AuthorityProjections​(String authority)
        Constructor
        Parameters:
        authority - coordinate authority
    • Method Detail

      • getAuthority

        public String getAuthority()
        Get the authority
        Returns:
        authority
      • getProjection

        public Projection getProjection​(long code)
        Get the projection for the code
        Parameters:
        code - coordinate code
        Returns:
        projection
      • getProjection

        public Projection getProjection​(String code)
        Get the projection for the code
        Parameters:
        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​(long code)
        Check if the collection contains a projection for the code
        Parameters:
        code - coordinate code
        Returns:
        true if has a projection
      • hasProjection

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

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

        public void clear()
        Clear all projections for the authority
      • remove

        public void remove​(long code)
        Remove the projection with the code
        Parameters:
        code - coordinate code
      • remove

        public void remove​(String code)
        Remove the projection with the code
        Parameters:
        code - coordinate code
      • remove

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

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

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

        public Set<String> getCodes()
        Get the projection codes
        Returns:
        projection codes
      • getProjections

        public Collection<Projection> getProjections()
        Get the projections
        Returns:
        projections