Examples of GTopo30Writer


Examples of org.geotools.gce.gtopo30.GTopo30Writer

        // creating a zip outputstream
        final ZipOutputStream outZ = new ZipOutputStream(output);
        output = outZ;

        // creating a writer
        final GridCoverageWriter writer = new GTopo30Writer(outZ);

        // writing
        if (writer != null) {
            writer.write(sourceCoverage, null);
        } else {
            throw new ServiceException("Could not create a writer for the format Gtopo30!");
        }

        // freeing everything
        writer.dispose();
        this.sourceCoverage.dispose(false);
        this.sourceCoverage = null;
    }
View Full Code Here

Examples of org.geotools.gce.gtopo30.GTopo30Writer

        // creating a zip outputstream
        final ZipOutputStream outZ = new ZipOutputStream(output);
        output = outZ;

        // creating a writer
        final GridCoverageWriter writer = new GTopo30Writer(outZ);

        try{
          // writing
          writer.write(sourceCoverage, null);
        }finally{
          try{
              // freeing everything
              writer.dispose();
          }catch (Throwable e) {
        // TODO: handle exception
      }
            this.sourceCoverage.dispose(false);
            this.sourceCoverage = null;
View Full Code Here

Examples of org.geotools.gce.gtopo30.GTopo30Writer

        // creating a zip outputstream
        final ZipOutputStream outZ = new ZipOutputStream(output);
        output = outZ;

        // creating a writer
        final GridCoverageWriter writer = new GTopo30Writer(outZ);

        try {
            // writing
            writer.write(sourceCoverage, null);
        } finally {
            try {
                // freeing everything
                writer.dispose();
            } catch (Throwable e) {
                // TODO: handle exception
            }
            sourceCoverage.dispose(false);
        }
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.