Skip to content

Commit

Permalink
Merge pull request #211 from wearepal/select-project-extent
Browse files Browse the repository at this point in the history
Interpolation bug with UKCEH component
  • Loading branch information
paulthatjazz authored Nov 23, 2023
2 parents 13d8476 + 23fe973 commit 7734fed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NodeData, WorkerInputs, WorkerOutputs } from "rete/types/core/data"
import { booleanDataSocket, categoricalDataSocket } from "../socket_types"
import { BooleanTileGrid, CategoricalTileGrid } from "../tile_grid"
import { BaseComponent } from "./base_component"
import { retrieveModelData } from "../model_retrieval"
import { retrieveModelDataWCS } from "../model_retrieval"
import { TypedArray } from "d3"
import { Extent } from "ol/extent"

Expand Down Expand Up @@ -47,9 +47,9 @@ async function renderCategoricalData(extent: Extent, zoom: number) {
const tileGrid = createXYZ()
const outputTileRange = tileGrid.getTileRangeForExtentAndZ(extent, zoom)

const geotiff = await retrieveModelData(extent, 'ukceh:gblcm10m2021', outputTileRange)
const geotiff = await retrieveModelDataWCS(extent, 'ukceh:gblcm10m2021', outputTileRange)

const rasters = await geotiff.readRasters()
const rasters = await geotiff.readRasters({ bbox: extent, width: outputTileRange.getWidth(), height: outputTileRange.getHeight() })
const image = await geotiff.getImage()


Expand Down

0 comments on commit 7734fed

Please sign in to comment.