Skip to content

Commit

Permalink
fix: Fixed the tile border splicing issue #41
Browse files Browse the repository at this point in the history
  • Loading branch information
hongfaqiu committed Nov 20, 2024
1 parent 4da5508 commit 295d476
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions packages/TIFFImageryProvider/src/TIFFImageryProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ export class TIFFImageryProvider {
throw new DeveloperError(`Invalid band${single.band}`);
}
const domain = single.domain ?? [band.min, band.max]
const canvas = createCanavas(this.tileWidth, this.tileHeight);
this.plot = new plot({
canvas,
...single,
Expand All @@ -410,7 +409,6 @@ export class TIFFImageryProvider {

// 如果是RGB渲染,创建RGB plot对象
if (this.renderOptions.multi || this.renderOptions.convertToRGB) {
const canvas = createCanavas(this.tileWidth, this.tileHeight);
this._rgbPlot = new plot({
canvas,
tileWidth: this.tileWidth,
Expand Down
2 changes: 1 addition & 1 deletion packages/TIFFImageryProvider/src/plotty/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ class plot {
return u_noDataValue;
}
vec2 clampedSamplePoint = clamp(point, vec2(0.0), vec2(1.0) - (1.0 / (u_sourceSize - vec2(2.0 * u_buffer))));
vec2 clampedSamplePoint = clamp(point, vec2(0.0), vec2(1.0) - (1.0 / u_sourceSize));
vec4 sample = texture2D(texture, clampedSamplePoint);
Expand Down

0 comments on commit 295d476

Please sign in to comment.