FIMViz.jsAPI
    Preparing search index...

    Function rasterizeFeatures

    • Rasterize vector features onto a new grid (vector→raster, the kind-changing op). Each pixel centre is point-tested against every feature's polygon; field burns the feature's property value, omit for a constant burnValue. Later features in the collection win where they overlap (burn order = draw order). Polygon/MultiPolygon geometry only — point/line features are ignored.

      Parameters

      • featureCollection: any

        a GeoJSON FeatureCollection (VectorFeatures.features)

      • bounds: { east: number; north: number; south: number; west: number }

        the OUTPUT grid's footprint

      • opts: { burnValue?: number; field?: string; height: number; width: number } = {}

      Returns RasterGrid