CoordinateReferenceSystem dstCRS = argOutputEnv.getCoordinateReferenceSystem();
MathTransform trans = null;
try {
trans = CRS.findMathTransform(srcCRS, dstCRS);
} catch (FactoryException e) {
throw new ProcessException(e);
}
//------------ Kernel Radius
/*
* // not used for now - only pixel radius values are supported double
* distanceConversionFactor = distanceConversionFactor(srcCRS, dstCRS); double dstRadius =
* argRadius * distanceConversionFactor;
*/
int radiusCells = 100;
if (argRadiusPixels != null)
radiusCells = argRadiusPixels;
if (pixelsPerCell > 1) {
radiusCells /= pixelsPerCell;
}
/**
* -------------- Extract the input observation points -----------
*/
HeatmapSurface heatMap = new HeatmapSurface(radiusCells, argOutputEnv, gridWidth,
gridHeight);
try {
extractPoints(obsFeatures, valueAttr, trans, heatMap);
} catch (CQLException e) {
throw new ProcessException(e);
}
/**
* --------------- Do the processing ------------------------------
*/