private List<CRSCodeType[]> getAllCRSCodeTypes() { List<CRSCodeType[]> crss = new ArrayList<CRSCodeType[]>(); Collection<CRSStore> all = CRSManager.getAll(); for ( CRSStore crsStore : all ) { crss.addAll( crsStore.getAvailableCRSCodes() ); } return crss; }
/** * This methods allows to get all available identifiers and not in the coordinatesystems themselves from all stores. * * @return the identifiers of all configured CRSs. * @throws CRSConfigurationException * if the implementation was confronted by an exception and could not deliver the requested crs. This * exception should not be thrown if no CoordinateSystems were found, in the latter case an empty List ( * a list with size == 0 ) should be returned. */ public List<CRSCodeType[]> getAvailableCRSCodes() throws CRSConfigurationException { List<CRSCodeType[]> result = new ArrayList<CRSCodeType[]>(); for ( CRSStore store : getAll() ) { result.addAll( store.getAvailableCRSCodes() ); } return result; }