예제 #1
0
 @Override
 public SpatialMetadata getCoverageMetadata(int i) throws CoverageStoreException {
   SpatialMetadata meta =
       new SpatialMetadata(
           SpatialMetadataFormat.getImageInstance(SpatialMetadataFormat.GEOTK_FORMAT_NAME));
   GridDomainAccessor grid = new GridDomainAccessor(meta);
   grid.setGridGeometry(coverage.getGridGeometry(), pixPos, CellGeometry.POINT, -1);
   ReferencingBuilder ref = new ReferencingBuilder(meta);
   ref.setCoordinateReferenceSystem(coverage.getCoordinateReferenceSystem());
   return meta;
 }
예제 #2
0
 @Override
 public GeneralGridGeometry getGridGeometry(final int i)
     throws CoverageStoreException, CancellationException {
   return (GeneralGridGeometry) coverage.getGridGeometry();
 }