Opened 11 years ago

Closed 10 years ago

Last modified 3 years ago

#232 closed task (fixed)

[raster] Implementation of ST_AsBinary for RASTER type

Reported by: mloskot Owned by: mloskot
Priority: low Milestone: PostGIS Fund Me
Component: raster Version: master
Keywords: st_asbinary, bytea Cc:

Description (last modified by mloskot)

This is just a record of the plan I've made to start implementing ST_AsBinary function for WKT Raster. The function is listed in the big plan.

The first version of [ST_AsBinary I'm going to implement will do nearly the same what ST_byte function does. It's prototype is:

bytea ST_AsBinary(raster r1);

At the moment, I don't aim to implement compression support, but later it can be extended to provide it:

bytea ST_AsBinary(raster r1, text compression);

I haven't planned to handle endianness as PostGIS' ST_AsBinary does. So, it is expected that WKB is returned with endianness native to the machine running the PostgreSQL database - it can vary (i.e. Intel returns NDR, PowerPC returns XDR). Feel free to share your suggestions of solutions fot this.

Change History (10)

comment:1 Changed 11 years ago by mloskot

Owner: changed from pracine to mloskot
Status: newassigned

comment:2 Changed 11 years ago by mloskot

Keywords: bytea added

First version available from the spike (r4346)

comment:3 Changed 11 years ago by mloskot

Description: modified (diff)

comment:4 Changed 11 years ago by mloskot

Description: modified (diff)

comment:5 Changed 11 years ago by mloskot

Summary: Implementation of ST_AsBinary for RASTER type[wktraster] Implementation of ST_AsBinary for RASTER type

comment:6 Changed 11 years ago by pracine

Milestone: WKTRaster Future
Priority: highlow
Type: enhancementtask

This function should return the WKB format of the raster like does the PostGIS ST_AsBinary function.

http://postgis.refractions.net/documentation/manual-1.4/ST_AsBinary.html

comment:7 Changed 10 years ago by pracine

Summary: [wktraster] Implementation of ST_AsBinary for RASTER type[raster] Implementation of ST_AsBinary for RASTER type

comment:8 Changed 10 years ago by jorgearevalo

Resolution: fixed
Status: assignedclosed

Functions implemented:

  • st_asbinary (rtpostgis.sql) --> RASTER_to_binary (rt_pg.c) --> rt_raster_to_wkb (rt_api.c)

comment:9 Changed 9 years ago by pracine

Milestone: PostGIS Raster FuturePostGIS Future

comment:10 Changed 3 years ago by robe

Milestone: PostGIS FuturePostGIS Fund Me

Milestone renamed

Note: See TracTickets for help on using tickets.