<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16625"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=790020021-21082010><FONT color=#0000ff 
size=2 face=Arial>Andreas,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=790020021-21082010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=790020021-21082010><FONT color=#0000ff 
size=2 face=Arial>WKT Raster was designed for this sort of thing.  Which OS 
are you on?  There are precompiled binaries for Windows and Mac OSX 
compiled that should work for</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=790020021-21082010><FONT color=#0000ff 
size=2 face=Arial> PostGIS 1.4-1.5</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=790020021-21082010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=790020021-21082010><FONT color=#0000ff 
size=2 face=Arial>For upcoming PostGIS 2.0 (which is now in alphaish state) -- 
we have WKT Raster (in windows experimental) packaged as part of the 
download.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=790020021-21082010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=790020021-21082010><FONT color=#0000ff 
size=2 face=Arial>Below are relevant links</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=790020021-21082010><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><A 
href="http://trac.osgeo.org/postgis/wiki/WKTRaster">http://trac.osgeo.org/postgis/wiki/WKTRaster</A></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><A 
href="http://trac.osgeo.org/postgis/wiki/WKTRasterTutorial01">http://trac.osgeo.org/postgis/wiki/WKTRasterTutorial01</A></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff><A 
href="http://www.postgis.org/download/windows/experimental.php"><FONT size=2 
face=Arial>http://www.postgis.org/download/windows/experimental.php</FONT></A><FONT 
face=Arial><FONT size=2> <SPAN class=790020021-21082010> (windows 
binaries)</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><SPAN 
class=790020021-21082010></SPAN></FONT></FONT></FONT> </DIV>
<DIV><FONT color=#0000ff><FONT face=Arial><FONT size=2><SPAN 
class=790020021-21082010><A 
href="http://www.kyngchaos.com/software/postgres">http://www.kyngchaos.com/software/postgres</A> (Mac 
binaries)</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT> </DIV>
<DIV><A href="http://www.postgis.org/documentation/manual-svn/RT_FAQ.html"><FONT 
size=2 face=Arial>http://<SPAN 
class=790020021-21082010>www.postgis.org</SPAN>/documentation/manual-svn/RT_FAQ.html</FONT></A><FONT 
face=Arial><FONT color=#0000ff><FONT size=2> <SPAN 
class=790020021-21082010> (raster FAQ)</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT><FONT color=#0000ff size=2 
face=Arial></FONT> </DIV>
<DIV><FONT color=#0000ff></FONT><A 
href="http://www.postgis.org/documentation/manual-svn/RT_reference.html"><FONT 
size=2 face=Arial>http://<SPAN 
class=790020021-21082010>www.postgis.org</SPAN>/documentation/manual-svn/RT_reference.html</FONT></A><FONT 
face=Arial><FONT color=#0000ff><FONT size=2> <SPAN 
class=790020021-21082010> (raster functions)</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT color=#0000ff><SPAN class=790020021-21082010><FONT size=2 
face=Arial></FONT></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=790020021-21082010>We 
also have a chapter on it in our upcoming book (currently available in beta book 
form -- from Manning) -  <A 
href="http://www.manning.com/obe/">http://www.manning.com/obe/</A>  
</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN 
class=790020021-21082010></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff size=2 face=Arial><SPAN class=790020021-21082010><A 
href="http://www.postgis.us/chapter_13">http://www.postgis.us/chapter_13</A></SPAN></FONT></DIV>
<DIV><FONT color=#0000ff size=2 face=Arial></FONT><FONT color=#0000ff size=2 
face=Arial></FONT><FONT color=#0000ff size=2 face=Arial></FONT><FONT 
color=#0000ff size=2 face=Arial></FONT><FONT color=#0000ff size=2 
face=Arial></FONT> </DIV>
<DIV><SPAN class=790020021-21082010><FONT color=#0000ff size=2 face=Arial>Leo 
and Regina</FONT></SPAN></DIV>
<DIV><SPAN class=790020021-21082010><FONT color=#0000ff size=2 face=Arial><A 
href="http://www.postgis.us">http://www.postgis.us</A></FONT></SPAN></DIV>
<DIV><SPAN class=790020021-21082010><FONT color=#0000ff size=2 
face=Arial></FONT></SPAN> </DIV>
<DIV><BR></DIV>
<DIV dir=ltr lang=en-us class=OutlookMessageHeader align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> 
postgis-users-bounces@postgis.refractions.net 
[mailto:postgis-users-bounces@postgis.refractions.net] <B>On Behalf Of 
</B>Andreas Forø Tollefsen<BR><B>Sent:</B> Saturday, August 21, 2010 2:49 
PM<BR><B>To:</B> postgis-users@postgis.refractions.net<BR><B>Subject:</B> 
[postgis-users] Raster to Polygon vector cell<BR></FONT><BR></DIV>
<DIV></DIV>Hi.
<DIV><BR></DIV>
<DIV>I have been searching for a way to join raster values to polygons.</DIV>
<DIV>In my case there is only one raster value within each polygon, and I would 
like this value to be joined into a column in the polygon table.</DIV>
<DIV>The process would in other GIS programs probably look like this:</DIV>
<DIV><BR></DIV>
<DIV>Raster Data -> Point Features -> Spatial Join to Polygons (with 
raster value as new column for each polygon).</DIV>
<DIV><BR></DIV>
<DIV>Any ideas how one would formulate this?</DIV>
<DIV><BR></DIV>
<DIV>Thanks.</DIV>
<DIV>Andreas</DIV></BODY></HTML>