ST_AsBinary/ST_AsWKB — Return the Well-Known Binary (WKB) representation of the raster.
bytea ST_AsBinary(
raster rast, boolean outasin=FALSE)
;
bytea ST_AsWKB(
raster rast, boolean outasin=FALSE)
;
Returns the Binary representation of the raster. If outasin
is TRUE, out-db bands are treated as in-db. Refer to raster/doc/RFC2-WellKnownBinaryFormat located in the PostGIS source folder for details of the representation.
이 함수는 데이터베이스로부터 데이터를 문자열 표현식으로 변환하지 않고 추출하는 바이너리 커서에 유용합니다.
![]() | |
기본적으로, WKB 출력물은 DB 외부 밴드를 가리키는 외부 파일 경로를 담고 있습니다. 클라이언트가 DB 외부 밴드의 기저 래스터 파일에 접근하지 못 하는 경우, |
개선 사항: 2.1.0버전에서 outasin
이 추가됐습니다.
Enhanced: 2.5.0 Addition of ST_AsWKB
SELECT ST_AsBinary(rast) As rastbin FROM dummy_rast WHERE rid=1; rastbin --------------------------------------------------------------------------------- \001\000\000\000\000\000\000\000\000\000\000\000@\000\000\000\000\000\000\010@\000\000\000\000\000\000\340?\000\000\000\000\000\000\340?\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\012\000\000\000\012\000\024\000