Skip to content

Commit

Permalink
Check meta inf
Browse files Browse the repository at this point in the history
  • Loading branch information
geoHeil committed Jun 3, 2017
1 parent da3dea7 commit bedf62a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/scala/geo/Parser.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,22 @@ object Parser {
@transient lazy val writer = new WKTWriter()

def parse(rasterData: GridCoverage2D) = {
// check for missing manifest entries
// https://stackoverflow.com/questions/34352003/jai-javax-imageio-imageio-exception-while-running-exported-jar
// https://stackoverflow.com/questions/7051603/jai-vendorname-null
println("########################")
println("checking imageio native meta")
println(com.sun.media.imageioimpl.common.PackageUtil.getVendor())
println(com.sun.media.imageioimpl.common.PackageUtil.getVersion())
println(com.sun.media.imageioimpl.common.PackageUtil.getSpecificationTitle())
println("########################")

// reclassify (bin values of raster

val r1 = org.jaitools.numeric.Range.create(Integer.valueOf(-100), true, Integer.valueOf(-7), true)
val r2 = org.jaitools.numeric.Range.create(Integer.valueOf(-7), true, Integer.valueOf(0), true)

val classificationRanges = Seq(r1, r2)
val classificationRanges = Seq(r2, r1)

// store geometry as reusable WKT types
val vectorizedFeatures = extractor.execute(rasterData, 0, true, null, null, classificationRanges, null).features
Expand Down

0 comments on commit bedf62a

Please sign in to comment.