Really an interesting question.
Apperently there is no way to perform such a conversion simply using
SQL statements and functions.
x'0102cdef' simply is a notation supporting *text literals*
there is no way to use this notation for *text variable values*; e.g.
any
attempt to directly store a text string starting with the 'x' prefix
will
simply produce an ordinary string value (not at all implying
hexadecimal),
as in: 'x''0102cdef'''
accordingly to all this, the next splite 4.1.0 will support a mew
CastToBlob()
SQL function specifically intended to support hexadecimal notations:
e.g.
SELECT
AsText(GeomFromWKB(CastToBlob('010100000000000000000024400000000000003440',
1)));
------
POINT(10 20)
Code already committed into the Fossil repository.
for any further detail please see:
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=4.1.0+Changes
bye Sandro
--
Il messaggio e' stato analizzato alla ricerca di virus o
contenuti pericolosi da MailScanner, ed e'
risultato non infetto.