Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
/** Sample code usage */
public void testMultipleCoverageReader() {
    ...
    AbstractGridCoverageReader reader = ...; // Creating a reader
      String[] coverageNamecoverageNames = reader.listSubnames()getGridCoverageNames();
    // At this point, coverageNames may contain, as an instance, "pressure,temperature,humidity"

    String requestedCoverageName = coverageNames[1]; // e..g, "temperature"

    // Getting selected coverage properties    
    final GeneralEnvelope envelope = reader.getOriginalEnvelope(coverageNamerequestedCoverageName );
    final GridEnvelope gridRange = reader.getOriginalGridRange(coverageNamerequestedCoverageName );  
    ...
    ...
 
    // Reading that coverage
    GridCoverage2D coverage = (GridCoverage2D) reader.read(coverageNamerequestedCoverageName , null);
    ...
}

Documentation Changes

...