[postgis-users] Error in raster import with WKTRaster

Mathieu Basille basille at ase-research.org
Fri Feb 11 14:24:25 PST 2011


Dear Jorge,

The NoData value seems indeed at the origin of the problem:

$ gdalinfo RoadDensity_2002_2006_CV_UTM19_25m.tif | grep NoData
NoData Value=nan

In my other density maps, there was no 'NoData value' (the same command
returns nothing). It thus seems that I have some NAs in my map, which
are not handled correctly.

After his request, I sent the map to Pierre Racine who is going to have
a look at it to find the problem.

Thanks a lot,
Mathieu.


Le 2011-02-11 09:02, Jorge Arévalo a écrit :
> Hi Mathieu
> 
> 2011/2/11 Mathieu Basille <basille at ase-research.org>:
>> Hi Jorge,
>>
>> Thx for the answer! Seems I did a nice mess with the install, because I did
>> install it with the --with-raster configure option! I'll try to fix it as
>> soon as possible (I'm not on the same computer right now, so that it'll have
>> to wait a bit). Do you think it would be safer to reinstall everything, in
>> order to have a fresh install?
>>
> 
> I think you should recompile PostGIS with PostGIS Raster again (first
> svn update) and then create a new and clean database and follow the
> instructions to postgis-raster-enable it
> 
> ./configure --with-raster
> make
> make install
> createdb <your_database>
> createlang plpgsql <your_database>
> psql -f postgis/postgis.sql -d <your_database>
> psql -f spatial_ref_sys.sql -d <your_database>
> psql -f raster/rt_pg/rtpostgis.sql -d <your_database>
> 
>> I will also check the NAs of the map (that's weird, too: there are no NAs on
>> this map, but I guess they are internally set anyway). What puzzled me is
>> that it worked for other maps with the same procedure...
>>
>> I'll let you know, thx again!
>> Mathieu.
>>
> 
> Check the NODATA with gdalinfo, just in case.
> 
> Best regards,
> 

-- 

~$ whoami
Mathieu Basille, Post-Doc

~$ locate
Laboratoire d'Écologie Comportementale et de Conservation de la Faune
+ Centre d'Étude de la Forêt
Département de Biologie
Université Laval, Québec

~$ info
http://ase-research.org/basille

~$ fortune
``If you can't win by reason, go for volume.''
Calvin, by Bill Watterson.



More information about the postgis-users mailing list