Inserting raster data?
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 8.7k
- Forks
- 374
- Avg merge
- 11d 16h
- Merged PRs (30d)
- 1
Description
I am trying to store tile data to table using postgis-raster type for tile data.
const tile_data = Buffer.from(await res.arrayBuffer())
await db`INSERT INTO ${db(sourceSpec.table)} (z, x, y, tile_data) VALUES (${z}, ${x}, ${y}, ${tile_data})`
result in error
column "tile_data" is of type raster but expression is of type bytea
How to insert raster properly with postgres.js?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file, test, or entry point is named. Start by tracing how postgres.js sends Buffer values and compare that with PostgreSQL/PostGIS raster input requirements. Done means identifying whether postgres.js needs a supported insertion path or whether the issue requires a documented usage change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, postgresql
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100