/** @see org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object, Hints) */ @Override public ArcGridReader getReader(Object source, Hints hints) { try { return new ArcGridReader(source, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e); throw new RuntimeException(e); } }
/** * @see org.geotools.data.coverage.grid.AbstractGridFormat#createWriter(java.lang.Object * destination) */ @Override public GridCoverageWriter getWriter(Object destination) { try { return new ArcGridWriter(destination); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e); throw new RuntimeException(e); } }
/** * @see org.geotools.data.coverage.grid.AbstractGridFormat#createWriter(java.lang.Object * destination,Hints hints) */ @Override public GridCoverageWriter getWriter(Object destination, Hints hints) { try { return new ArcGridWriter(destination, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e); throw new RuntimeException(e); } }
/** * Retrieves a {@link WorldImageReader} in case the providede <code>source</code> can be * accepted as a valid source for a world image. The method returns null otherwise. * * @param source The source object to read a WorldImage from * @param hints {@link Hints} to control the provided {@link WorldImageReader}. * @return a new WorldImageReader for the source */ @Override public WorldImageReader getReader(Object source, Hints hints) { try { return new WorldImageReader(source, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } }
/** @see org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object, Hints) */ @Override public AbstractGridCoverage2DReader getReader(Object source, Hints hints) { try { return new JP2KReader(source, hints); } catch (MismatchedDimensionException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } catch (IOException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } }
} catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null;
/** * @see org.geotools.data.coverage.grid.AbstractGridFormat#createWriter(java.lang.Object * destination) */ public GridCoverageWriter getWriter(Object destination) { try { return new ArcGridWriter(destination); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e); throw new RuntimeException(e); } }
/** * @see org.geotools.data.coverage.grid.AbstractGridFormat#createWriter(java.lang.Object * destination,Hints hints) */ public GridCoverageWriter getWriter(Object destination, Hints hints) { try { return new ArcGridWriter(destination, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e); throw new RuntimeException(e); } }
/** * @see org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object, * Hints) */ public GridCoverageReader getReader(Object source, Hints hints) { try { return new ArcGridReader(source, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e); throw new RuntimeException(e); } }
/** * @see org.geotools.data.coverage.grid.AbstractGridFormat#createWriter(java.lang.Object * destination) */ @Override public GridCoverageWriter getWriter(Object destination) { try { return new ArcGridWriter(destination); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e); throw new RuntimeException(e); } }
/** * @see org.geotools.data.coverage.grid.AbstractGridFormat#createWriter(java.lang.Object * destination,Hints hints) */ @Override public GridCoverageWriter getWriter(Object destination, Hints hints) { try { return new ArcGridWriter(destination, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e); throw new RuntimeException(e); } }
/** * @see org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object, * Hints) */ @Override public ArcGridReader getReader(Object source, Hints hints) { try { return new ArcGridReader(source, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, e.getLocalizedMessage(), e); throw new RuntimeException(e); } }
/** * Retrieves a {@link WorldImageReader} in case the providede * <code>source</code> can be accepted as a valid source for a world * image. The method returns null otherwise. * * @param source * The source object to read a WorldImage from * @param hints * {@link Hints} to control the provided {@link WorldImageReader}. * @return a new WorldImageReader for the source */ public GridCoverageReader getReader(Object source, Hints hints) { try { return new WorldImageReader(source, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } }
/** * Returns a writer object which you can use to write GridCoverages to a * given destination. * * @param destination * The destination object * * @return a GridCoverageWriter object */ public GridCoverageWriter getWriter(final Object destination) { try { return new GTopo30Writer(destination); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } }
/** * Returns a writer object which you can use to write GridCoverages to a * given destination. * * @param destination * The destination object * * @return a GridCoverageWriter object * @throws DataSourceException */ public GridCoverageWriter getWriter(final Object destination, Hints hints) { try { return new GTopo30Writer(destination, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } } /**
/** * Retrieves a {@link WorldImageReader} in case the providede * <code>source</code> can be accepted as a valid source for a world * image. The method returns null otherwise. * * @param source * The source object to read a WorldImage from * @param hints * {@link Hints} to control the provided {@link WorldImageReader}. * @return a new WorldImageReader for the source */ @Override public WorldImageReader getReader(Object source, Hints hints) { try { return new WorldImageReader(source, hints); } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } }
/** * @see org.geotools.data.coverage.grid.AbstractGridFormat#getReader(Object, Hints) */ @Override public AbstractGridCoverage2DReader getReader(Object source, Hints hints) { try { return new JP2KReader(source, hints); } catch (MismatchedDimensionException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } catch (IOException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } }
} catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null; } catch (DataSourceException e) { if (LOGGER.isLoggable(Level.WARNING)) LOGGER.log(Level.WARNING, e.getLocalizedMessage(), e); return null;
"No source set to read this coverage."); if (LOGGER.isLoggable(Level.SEVERE)) LOGGER.log(Level.SEVERE, ex.getLocalizedMessage(), ex); throw ex;