kiwi-postgis  Version 0.1.0.0
GeoTIFFDatatype Class Reference
Inheritance diagram for GeoTIFFDatatype:
Collaboration diagram for GeoTIFFDatatype:

Public Member Functions

GridCoverage read (String geometryLiteral)
 
String unparse (GridCoverage geom)
 

Static Public Attributes

static final String URI = POSTGIS.GEOTIFF
 
static final GeoTIFFDatatype INSTANCE =new GeoTIFFDatatype()
 

Member Function Documentation

◆ read()

GridCoverage read ( String  geometryLiteral)
16  {
17  GridCoverage coverage;
18  /*try {
19  coverage = CoverageIO.read(geometryLiteral);
20  return coverage;
21  } catch (CoverageStoreException e) {
22  // TODO Auto-generated catch block
23  e.printStackTrace();
24  throw new RuntimeException();
25  }*/
26  return null;
27 
28  }

◆ unparse()

String unparse ( GridCoverage  geom)
31  {
32  /*TiffImageWriter writer = new TiffImageWriter(null);
33  SpatialImageWriteParam writerParam = writer.getDefaultWriteParam();
34  String compression = null;
35  /*
36  * if (compression != null) {
37  * writerParam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
38  * writerParam.setCompressionType(compression); }
39 
40  try {
41  writer.write(((GridCoverage)geometry).getRenderedImage());
42  writer.endWriteSequence();
43  return writer.getOutput().toString();
44  } catch (IOException e) {
45  // TODO Auto-generated catch block
46  e.printStackTrace();
47  throw new RuntimeException();
48  }*/
49  return null;
50  }

Member Data Documentation

◆ INSTANCE

final GeoTIFFDatatype INSTANCE =new GeoTIFFDatatype()
static

◆ URI

final String URI = POSTGIS.GEOTIFF
static