Trying to figure out how to rasterize in GDAL.
I have two problems (see example code below):
1) Even creating the raster layer with the gdal.GDT_Float32 type option, the resulting layer ('s bands) all end up being integer
2) In spite all efforts regarding noData setting, cells outside the polyons end up being set to zero.
# Create the destination data source
tempSource = rasterDriver.Create(tempRasterPath + tileName + "_Building.tif", tileHdl.RasterXSize, tileHdl.RasterYSize, gdal.GDT_Float32)
tempSource.SetGeoTransform(tileGeoTransformationParams)
tempTile = tempSource.GetRasterBand(1)
tempTile.SetNoDataValue(-999)
tempTile.Fill(-999)
# Rasterize
gdal.RasterizeLayer(tempSource, [1], buildingPolys.layer, options=["ATTRIBUTE=%s" % meanZAttributeName])
tempSource = None