<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>It appears that the pgsql2shp tool does not write out .prj files alongside shp output?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>After I dump out shapefiles I like to view them in Qgis or Udig and both like/require .prj files for projection of shapefiles. I know that you can assign them inside inside either of these apps but it would be nice to have them created automatically.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Since I am using php to batch dump a number of shapefiles, and I've been able to nest these two SQL statements within the script to be able to get the "SRTEXT" and write it to a .prj file that corresponds to each shapefile:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><FONT class="Apple-style-span" color="#0000CC" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">SELECT</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT><FONT class="Apple-style-span" color="#990066" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">ST_SRID</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">(</SPAN></FONT><FONT class="Apple-style-span" color="#777700" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">the_geom</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">) </SPAN></FONT><FONT class="Apple-style-span" color="#0000CC" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">from</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> <FONT class="Apple-style-span" color="#AA0000">MyTable</FONT></SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT><FONT class="Apple-style-span" color="#0000CC" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">limit</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> 1;</SPAN></FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" color="#0000CC" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">SELECT</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT><FONT class="Apple-style-span" color="#777700" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">srtext</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT><FONT class="Apple-style-span" color="#0000CC" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">from</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT><FONT class="Apple-style-span" color="#AA0000" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">spatial_ref_sys</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT><FONT class="Apple-style-span" color="#0000CC" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">WHERE</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> </SPAN></FONT><FONT class="Apple-style-span" color="#777700" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;">srid</SPAN></FONT><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"> = 2964 // Alaska Albers...</SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" size="3"><SPAN class="Apple-style-span" style="font-size: 11px;"><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Lucida Grande; min-height: 13px; "><FONT class="Apple-style-span" size="3">It seems like this would be a useful thing to have as part of the pgsql2shp utility. Does it already do this and I a missing something, or is this a feature request?</FONT></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I noted this discussion (<A href="http://postgis.refractions.net/pipermail/postgis-users/2004-October/005958.html">http://postgis.refractions.net/pipermail/postgis-users/2004-October/005958.html</A>) from '04 that notes the ability to use the srtext entry in the spatial_ref_sys. Has this been discussed since?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Cheers,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Dane</DIV><DIV><BR></DIV></BODY></HTML>