Examples of FactoryException


Examples of org.opengis.referencing.FactoryException

            return NonSI.DAY;
        } else {
            try {
                return (Unit< ? >) UNIT_FORMAT.parseObject(unitName);
            } catch (ParseException e) {
                throw new FactoryException("Unit not known : " + unitName, e);
            }
        }
    }
View Full Code Here

Examples of org.opengis.referencing.FactoryException

            final EarthGravitationalModel mt = new EarthGravitationalModel(nmax, true);
            final String filename = "EGM180.nor";
            try {
                mt.load(filename);
            } catch (IOException e) {
                throw new FactoryException(Errors.format(ErrorKeys.CANT_READ_$1, filename), e);
            }
            return mt;
        }
View Full Code Here

Examples of org.opengis.referencing.FactoryException

    public static javax.sql.DataSource createDataSource(Hints hints ) throws FactoryException {
        try {
            return createDataSource(getDirectory());
        } catch (SQLException e) {
            throw new FactoryException( e );
        }
    }
View Full Code Here

Examples of org.opengis.referencing.FactoryException

        try {
            return renderCoverage(gridCoverage, symbolizer,
                    GridCoverageRendererUtilities.colorToArray(background));
        } catch (Exception e) {
            throw new FactoryException(e);
        } finally {
            this.hints = oldHints;
        }
    }
View Full Code Here

Examples of org.opengis.referencing.FactoryException

        /*
         * TODO: Implement other cases here (3D-GeographicCRS, etc.).
         *       It may requires the creation of new CoordinateSystem objects,
         *       which is why this method live in ReferencingFactoryContainer.
         */
        throw new FactoryException(Errors.format(ErrorKeys.CANT_SEPARATE_CRS_$1,
                                   crs.getName().getCode()));
    }
View Full Code Here

Examples of org.opengis.referencing.FactoryException

                        codes = worker.getAuthorityCodes(type);
                        cache.put(type, codes);
                    } catch (FactoryException e) {
                        throw e;
                    } catch (Exception e) {
                        throw new FactoryException(e);
                    } finally {
                        try {
                            getPool().returnObject(worker);
                        } catch (Exception e) {
                            LOGGER.log(Level.WARNING, "Unable to return worker " + e, e);
View Full Code Here

Examples of org.opengis.referencing.FactoryException

                        obj = worker.createDerivedCRS(code);
                        cache.put(key, obj);
                    } catch (FactoryException e) {
                        throw e;
                    } catch (Exception e) {
                        throw new FactoryException(e);
                    } finally {
                        try {
                            getPool().returnObject(worker);
                        } catch (Exception e) {
                            LOGGER.log(Level.WARNING, "Unable to return worker " + e, e);
View Full Code Here

Examples of org.opengis.referencing.FactoryException

                        crs = worker.createCompoundCRS(code);
                        cache.put(key, crs);
                    } catch (FactoryException e) {
                        throw e;
                    } catch (Exception e) {
                        throw new FactoryException(e);
                    } finally {
                        try {
                            getPool().returnObject(worker);
                        } catch (Exception e) {
                            LOGGER.log(Level.WARNING, "Unable to return worker " + e, e);
View Full Code Here

Examples of org.opengis.referencing.FactoryException

                        worker = (AbstractCachedAuthorityFactory) getPool().borrowObject();
                        value = (T) runner.run( worker );
                    } catch (FactoryException e) {
                        throw e;
                    } catch (Exception e) {
                        throw new FactoryException(e);
                    } finally {
                        try {
                            getPool().returnObject(worker);
                        } catch (Exception e) {
                            LOGGER.log(Level.WARNING, "Unable to return worker " + e, e);
View Full Code Here

Examples of org.opengis.referencing.FactoryException

            worker = (AbstractCachedAuthorityFactory) getPool().borrowObject();
            return worker.getBackingStoreDescription();
        } catch (FactoryException e) {
            throw e;
        } catch (Exception e) {
            throw new FactoryException(e);
        }
        finally {
            try {
                getPool().returnObject(worker);
            } catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.