Excellent.&nbsp; Being lazy, I really appreciate solutions that require no coding on my part. ;-)<br><br>I'll give these suggestions a try.&nbsp; Thanks.<br><br>JN<br><br><div><span class="gmail_quote">On 8/25/06, <b class="gmail_sendername">
Paul Ramsey</b> &lt;<a href="mailto:pramsey@refractions.net">pramsey@refractions.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
John,<br><br>I think by following Frank's advice and using a PostGIS-hosted tile-<br>index you can do a hell of a lot by manipulating your DATA statement<br>to get the images you want for a given request.&nbsp;&nbsp;Things like temporal
<br>subsetting, etc, are all pretty easy. You don't even need to use<br>mapscript, just override your DATA statement with a parameter in the<br>mapserv CGI. (I think mapscript is largely irrelevant given the<br>capabilities of the CGI system, personally.)
<br><br>Paul<br><br>On 25-Aug-06, at 9:55 PM, Frank Warmerdam wrote:<br><br>&gt; John Novak wrote:<br>&gt;&gt; I have a large number of rows containing metadata about rater<br>&gt;&gt; files sitting in a PostGIS table.&nbsp;&nbsp;Each row is associated with a
<br>&gt;&gt; georeferenced file sitting in a file system, and the row contains<br>&gt;&gt; polygon geometry representing the footprint of the raster.&nbsp;&nbsp;The<br>&gt;&gt; rows also contain many other attributes that I'd like to use to
<br>&gt;&gt; filter the displayed rasters.<br>&gt;&gt; Having the functionality of the RASTER layer, but using a PostGIS<br>&gt;&gt; table as a source for features rather than a SHAPEFILE would be a<br>&gt;&gt; very useful thing, at least in my case.
<br>&gt; &gt;<br>&gt;&gt; What's the opinion regarding<br>&gt;&gt; 1. the overall usefulness of such a beastie<br>&gt;&gt; and<br>&gt;&gt; 2.&nbsp;&nbsp;the complexity of actually implementing said beastie, given<br>&gt;&gt; that it's a combination of the functionality of a PostGIS layer
<br>&gt;&gt; and a RASTER layer ?<br>&gt;&gt; I admit I have not done my homework and really examined the code<br>&gt;&gt; for these two layers.<br>&gt;<br>&gt; John,<br>&gt;<br>&gt; It is currently possible to use a postgis table as a &quot;tile index&quot; for
<br>&gt; a raster layer.&nbsp;&nbsp;To do so, configure the postgis table as a<br>&gt; distinct layer,<br>&gt; and use the name of that layer in the TILEINDEX keyword of your<br>&gt; raster layer<br>&gt; instead of the name of an external shapefile.
<br>&gt;<br>&gt; The raster layer will do a spatial query on the tileindex table to get<br>&gt; a list of rasters to plot.<br>&gt;<br>&gt; I'm a bit fuzzy on how you would do other sorts of query operations.<br>&gt; It is possible a FILTER on the tileindex layer will be preserved as
<br>&gt; part of the tileindex query, but I'm not absolutely sure.&nbsp;&nbsp;Of course,<br>&gt; you could put complex query logic right into your DATA statement on<br>&gt; the postgis layer.<br>&gt;<br>&gt; Best regards,<br>&gt; --
<br>&gt; ---------------------------------------<br>&gt; +--------------------------------------<br>&gt; I set the clouds in motion - turn up&nbsp;&nbsp; | Frank Warmerdam,<br>&gt; <a href="mailto:warmerdam@pobox.com">warmerdam@pobox.com
</a><br>&gt; light and sound - activate the windows | <a href="http://pobox.com/~warmerdam">http://pobox.com/~warmerdam</a><br>&gt; and watch the world go round - Rush&nbsp;&nbsp;&nbsp;&nbsp;| President OSGeo, http://<br>&gt; <a href="http://osgeo.org">
osgeo.org</a><br></blockquote></div><br>