function RegisterRasterStyledLayer from rasterlite2 'no such function'

23 views
Skip to first unread message

José Sánchez

unread,
May 14, 2018, 11:04:46 AM5/14/18
to SpatiaLite Users
Hi,

I'm trying to follow this rasterlite2 exercise from here:


but when I try to execute

SELECT RegisterRasterStyledLayer('etopo1_dem',
   ...> XB_Create(XB_LoadXML('./etopo1_styles/etopo.xml'), 1, 1));

It says 'no such function'

Thanks,


a.fu...@lqt.it

unread,
May 14, 2018, 12:28:33 PM5/14/18
to spatiali...@googlegroups.com
On Mon, 14 May 2018 08:04:45 -0700 (PDT), José Sánchez wrote:
> SELECT RegisterRasterStyledLayer('etopo1_dem',
>    ...> XB_Create(XB_LoadXML('./etopo1_styles/etopo.xml'), 1, 1));
>
> It says 'no such function'
>

Hi José,

RasterLite2 is not yet a "stable" package and continued
to evolve during recent times; the sad consequence is
that unhappily the tutorials are not always correctly
updated.

in recent versions that specific function changed its
name, that now is SE_RegisterRasterStyledLayer()

sorry for any inconvenience,
Sandro

José Sánchez

unread,
May 15, 2018, 4:21:47 AM5/15/18
to SpatiaLite Users
Great and thanks,

But according to the function definition:
SE_RegisterRasterStyledLayer   ( coverage_name String , style_id Integer ) : Integer

it should be alright, but it is still giving me an error:

SELECT SE_RegisterRasterStyledLayer('etopo1_dem', XB_Create(XB_LoadXML('./etopo1_styles/etopo.xml'), 1, 1));
-1

Thanks,

mj10777

unread,
May 15, 2018, 4:25:34 AM5/15/18
to SpatiaLite Users


On Tuesday, 15 May 2018 10:21:47 UTC+2, José Sánchez wrote:
Great and thanks,

But according to the function definition:
SE_RegisterRasterStyledLayer   ( coverage_name String , style_id Integer ) : Integer

it should be alright, but it is still giving me an error:

SELECT SE_RegisterRasterStyledLayer('etopo1_dem', XB_Create(XB_LoadXML('./etopo1_styles/etopo.xml'), 1, 1));
-1
There can be many reasons for this:
1) file-path is invalid (I assume this is not the case)
2) etopo.xml style-validation failed (the most likely)

Mark
Reply all
Reply to author
Forward
0 new messages