[postgis-tickets] [PostGIS] #2263: [raster] Audit usage of serialize/deserialize vs wkb/hexwkb
PostGIS
trac at osgeo.org
Mon Feb 12 07:05:33 PST 2018
#2263: [raster] Audit usage of serialize/deserialize vs wkb/hexwkb
--------------------------+---------------------------
Reporter: Bborie Park | Owner: Bborie Park
Type: task | Status: new
Priority: high | Milestone: PostGIS 2.5.0
Component: raster | Version: trunk
Resolution: | Keywords:
--------------------------+---------------------------
Changes (by Bborie Park):
* milestone: PostGIS Fund Me => PostGIS 2.5.0
Comment:
The functions and what they're currently doing...
{{{
/*
RASTER INPUTS
*/
-- expects input to be Hex WKB
CREATE OR REPLACE FUNCTION raster_in(cstring)
RETURNS raster
AS 'MODULE_PATHNAME','RASTER_in'
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
-- TODO: does not exist yet
CREATE OR REPLACE FUNCTION st_rastfromwkb(raster)
RETURNS bytea
AS 'MODULE_PATHNAME', 'RASTER_fromWKB'
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
-- expects output to be HEX WKB
CREATE OR REPLACE FUNCTION raster_out(raster)
RETURNS cstring
AS 'MODULE_PATHNAME','RASTER_out'
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
/*
RASTER OUTPUTS
*/
-- expects output to be WKB
CREATE OR REPLACE FUNCTION bytea(raster)
RETURNS bytea
AS 'MODULE_PATHNAME', 'RASTER_to_bytea'
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
-- TODO needs better/descriptive name
-- expects output to be WKB
CREATE OR REPLACE FUNCTION st_asbinary(raster, outasin boolean DEFAULT
FALSE)
RETURNS bytea
AS 'MODULE_PATHNAME', 'RASTER_to_binary'
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
-- TODO: does not exist yet
CREATE OR REPLACE FUNCTION st_ashexwkb(raster, outasin boolean DEFAULT
FALSE)
RETURNS text
AS 'MODULE_PATHNAME', 'RASTER_asHexWKB'
LANGUAGE 'c' IMMUTABLE STRICT _PARALLEL;
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/2263#comment:5>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list