Port QueryPoints and QueryRaster to Java -- not tested yet