[postgis-users] Error when importing raster table

Jorge Arévalo jorge.arevalo at deimos-space.com
Sat Mar 5 02:57:59 PST 2011


2011/3/1 Andreas Forø Tollefsen <andreasft at gmail.com>:
> Hi. As you say the sql file has been generated, and i can load it.
> I was just curious why i got a warning?
> Thanks for the reminder. I will update my PostGIS..
> Andreas
>

Hi Andreas,

Honestly, I'm not sure. It may be related with the "pack" function of
your python version...

> 2011/3/1 Jorge Arévalo <jorge.arevalo at deimos-space.com>
>>
>> On Tue, Mar 1, 2011 at 9:38 AM, Andreas Forø Tollefsen
>> <andreasft at gmail.com> wrote:
>> > Hi.
>> > As seen in a different post, I am working on some raster data. I have
>> > recently experienced a problem with processing of raster to tables using
>> > the
>> > gdal2wktraster.py tool.
>> > Any idea why this gives and error, and is it just a warning about
>> > integer vs
>> > float?
>> > C:\Python25>python gdal2wktraster.py -r
>> > c:\prio_grid\source\globcover\globlow.ti
>> > f -t globlow -s 4326 -k 50x50 -I -M -o globlow.sql
>> > gdal2wktraster.py:645: DeprecationWarning: integer argument expected,
>> > got
>> > float
>> >   hexstr = binascii.hexlify(struct.pack(fmt_little, data)).upper()
>> > ------------------------------------------------------------
>> >  Summary of GDAL to WKT Raster processing:
>> > ------------------------------------------------------------
>> > Number of processed raster files: 1
>> > (c:\prio_grid\source\globcover\globlow.tif)
>> > List of generated tables (number of tiles):
>> > 1       globlow (45360)
>> > C:\Python25>
>> >
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > postgis-users mailing list
>> > postgis-users at postgis.refractions.net
>> > http://postgis.refractions.net/mailman/listinfo/postgis-users
>> >
>> >
>>
>> Hi Andreas,
>>
>> The SQL file has been generated. Could you load it into Postgres?
>>
>> Anyway, I strongly recommend you to use the new version of PostGIS
>> Raster (WKTRaster was the old name). Now PostGIS Raster is part of
>> PostGIS, and is packed with it (not official version yet, you need to
>> check it out from repository). The old version you're using is no
>> longer maintained
>>
>> Best regards,
>>
>> --
>> Jorge Arévalo
>> Internet & Mobilty Division, DEIMOS
>> jorge.arevalo at deimos-space.com
>> http://es.linkedin.com/in/jorgearevalo80
>> http://mobility.grupodeimos.com/
>> http://gis4free.wordpress.com
>> http://geohash.org/ezjqgrgzz0g
>
>



-- 
Jorge Arévalo
Internet & Mobilty Division, DEIMOS
jorge.arevalo at deimos-space.com
http://es.linkedin.com/in/jorgearevalo80
http://mobility.grupodeimos.com/
http://gis4free.wordpress.com
http://geohash.org/ezjqgrgzz0g



More information about the postgis-users mailing list