moved geotools stuff out of RasterQuery