<br>
<br><tt><font size=2>postgis-users-bounces@postgis.refractions.net wrote
on 08/11/2011 07:16:22 PM:<br>
<br>
> I’d like to transform these layers to UTM (EPSG 32643). I was <br>
> thinking of creating a new geometry column for each table and </font></tt>
<br><tt><font size=2>> ALTER TABLE wards ADD column geom_utm geometry;</font></tt>
<br><tt><font size=2>> UPDATE wards SET geom_utm = ST_TRANSFORM(geom,32643);</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> Should I, (and can I) create another gist index
on the transformed geometry?</font></tt>
<br>
<br><tt><font size=2>If you're planning on searching using utm coordinates,
I'd make another index. If the utm version is just there for reference,
I wouldn't bother.</font></tt>
<br>
<br><tt><font size=2>> The same qn applies on a raster table I have
called srtm_table – <br>
> should I and can I add </font></tt>
<br><tt><font size=2>> -          a new ‘rast’
column called rast_utm with transformed SRID<br>
> in similar fashion above, and then add a gist index on the rast_utm
column?</font></tt>
<br><tt><font size=2>>  </font></tt>
<br><tt><font size=2>> CREATE INDEX “srtm_table_rast_gist_idx” ON
“public”.”srtm_table” <br>
> USING GIST (st_convexhull(rast_utm));</font></tt>
<br>
<br><tt><font size=2>This isn't really a different question than the above,
since st_convexhull(raster) produces a geometry. :) I'd say the same thing:
if you're going to search using utm coordinates, make a utm index; otherwise,
no.</font></tt>
<br>
<br>
<br><tt><font size=2>Bryce</font></tt>