1 package org
.argeo
.slc
.geotools
;
5 import org
.geotools
.coverage
.grid
.GridCoverage2D
;
6 import org
.geotools
.gce
.image
.WorldImageFormat
;
7 import org
.geotools
.gce
.image
.WorldImageReader
;
9 public class WorldFileTest
{
11 @SuppressWarnings("restriction")
12 public static void main(String
[] args
) throws Exception
{
13 File dir
= new File("/home/mbaudier/gis/data/100501-Poehali");
14 WorldImageFormat worldImageFormat
= new WorldImageFormat();
15 WorldImageReader worldImageReader
= worldImageFormat
16 .getReader(new File(dir
, "500k--l36-1--(1984).gif"));
17 GridCoverage2D gridCoverage2D
= worldImageReader
.read(null);
18 gridCoverage2D
.show();