Package org.geotools.data

Examples of org.geotools.data.WorldFileWriter


        final File destFile = (File) this.destination;
        final File parentFile = destFile.getParentFile();
        final String name = destFile.getName();
        final File tfw = new File(parentFile, name.replace("tif", "tfw"));
        final File prj = new File(parentFile, name.replace("tif", "prj"));
        final WorldFileWriter writer =  new WorldFileWriter(tfw, tr);
        final BufferedWriter outW = new BufferedWriter(new FileWriter(prj));
        try {
            outW.write(gc.getCoordinateReferenceSystem().toWKT());
        } finally {
            try {
View Full Code Here

TOP

Related Classes of org.geotools.data.WorldFileWriter

Copyright © 2018 www.massapicom. 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.