Thanks!<div><br></div><div>After updating to latest revision i only ran:<div>psql -d database -f postgis.sql</div><div>psql -d database -f rtpostgis.sql</div><div><br></div><div>I was not aware that i had to do the _upgrade_20_minor.sql as well.</div>
<div><br></div><div>Now it works.</div><div><br></div><div>Andreas<br><br><div class="gmail_quote">2011/11/30 Bborie Park <span dir="ltr"><<a href="mailto:bkpark@ucdavis.edu">bkpark@ucdavis.edu</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Andreas,<br>
<br>
Though you upgraded the underlying library, did you run<br>
rtpostgis_upgrade_20_minor.sql? Something is definitely out of sync.<br>
<br>
-bborie<br>
<div><div></div><div class="h5"><br>
On Tue, Nov 29, 2011 at 12:58 AM, Andreas Forø Tollefsen<br>
<<a href="mailto:andreasft@gmail.com">andreasft@gmail.com</a>> wrote:<br>
> No one else had the same issue with 8242? This is exactly the same query as<br>
> i ran in r.8001, but now it give me the error below in return.<br>
> Any suggestions?<br>
> Best,<br>
> Andreas<br>
><br>
> 2011/11/25 Andreas Forø Tollefsen <<a href="mailto:andreasft@gmail.com">andreasft@gmail.com</a>><br>
>><br>
>> Hi,<br>
>> Sorry for posting a lot these days but I am very busy finalizing a<br>
>> project.<br>
>> Previously, I have been running the following query without problems (in<br>
>> rev.8001). After updating to rev.8242 i am getting a strange error.<br>
>> Could someone please see what is wrong? Is it one of the functions that<br>
>> has changed?<br>
>> Query:<br>
>> SELECT gid, AVG(((foo.geomval).val)) FROM (SELECT p.gid,<br>
>> ST_Intersection(p.cell, r.rast) AS geomval FROM mountain r, priogrid_land p<br>
>> WHERE ST_Intersects(p.cell, r.rast) AND p.gid =219260) AS foo<br>
>> GROUP BY gid ORDER BY gid;<br>
>> Error:<br>
>> ERROR: column bmd.hasnodata does not exist<br>
>> LINE 1: SELECT bmd.hasnodata FROM ST_BandMetaData(ras...<br>
>> ^<br>
>> QUERY: SELECT bmd.hasnodata FROM ST_BandMetaData(rast,<br>
>> nband) AS bmd<br>
>> CONTEXT: PL/pgSQL function "_st_intersects" line 32 at SQL statement<br>
>> PL/pgSQL function "st_intersection" line 5 at assignment<br>
>> ********** Error **********<br>
>> ERROR: column bmd.hasnodata does not exist<br>
>> SQL state: 42703<br>
>> Context: PL/pgSQL function "_st_intersects" line 32 at SQL statement<br>
>> PL/pgSQL function "st_intersection" line 5 at assignment<br>
>><br>
>> Thanks for any help.<br>
>> Best regards,<br>
>> Andreas<br>
><br>
</div></div><div class="im">> _______________________________________________<br>
> postgis-users mailing list<br>
> <a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
> <a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
><br>
><br>
<br>
<br>
<br>
</div><font color="#888888">--<br>
Bborie Park<br>
Programmer<br>
Center for Vectorborne Diseases<br>
UC Davis<br>
<a href="tel:530-752-8380" value="+15307528380">530-752-8380</a><br>
<a href="mailto:bkpark@ucdavis.edu">bkpark@ucdavis.edu</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</div></div></blockquote></div><br></div></div>