rdf4j-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()
 
static final IRI LiteralIRI =SimpleValueFactory.getInstance().createIRI(POSTGIS.NAMESPACE+"geoTIFFLiteral")
 

Member Function Documentation

◆ read()

GridCoverage read ( String  geometryLiteral)

Reimplemented from RasterLiteral.

22  {
23  GridCoverage coverage;
24  /*GeoTiffStore store=new GeoTiffStore(provider, connector)
25  //try {
26  coverage = CoverageIO.read(geometryLiteral);
27  return coverage;
28  } catch (CoverageStoreException e) {
29  // TODO Auto-generated catch block
30  e.printStackTrace();
31  throw new RuntimeException();
32  }*/
33  return null;
34 
35  }

◆ unparse()

String unparse ( GridCoverage  geom)

Reimplemented from RasterLiteral.

38  {
39  /*TiffImageWriter writer = new TiffImageWriter(null);
40  SpatialImageWriteParam writerParam = writer.getDefaultWriteParam();
41  String compression = null;
42  /*
43  * if (compression != null) {
44  * writerParam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
45  * writerParam.setCompressionType(compression); }
46 
47  try {
48  writer.write(((GridCoverage)geometry).getRenderedImage());
49  writer.endWriteSequence();
50  return writer.getOutput().toString();
51  } catch (IOException e) {
52  // TODO Auto-generated catch block
53  e.printStackTrace();
54  throw new RuntimeException();
55  }*/
56  return null;
57  }

Referenced by AsGeoTIFF.operation().

Member Data Documentation

◆ INSTANCE

◆ LiteralIRI

final IRI LiteralIRI =SimpleValueFactory.getInstance().createIRI(POSTGIS.NAMESPACE+"geoTIFFLiteral")
static

◆ URI

final String URI = POSTGIS.GEOTIFF
static