Hi Mike,<br><br><div class="gmail_quote">On Sat, May 10, 2008 at 5:03 AM, Mike Toews <<a href="mailto:mwtoews@sfu.ca">mwtoews@sfu.ca</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am working with spatial data that has been collected for the past several decades at a site using a custom local coordinate system. I have a few points at this site where I know both the local grid and the world coordinates. Ideally, I'd like to define a custom srid to transform between projections.<br>

<br>
I would like to know more about adding new coordinate reference systems to the spatial_ref_sys table, however I need to know a few things:<br>
<br>
  1. Do I need to define all of: srid, auth_name, auth_srid, srtext,<br>
     and proj4text fields in the spatial_ref_sys table? Or only a few<br>
     fields (specify which are required or optional)?</blockquote><div><br>Only the srid and proj4text are actually used. proj4text is passed to proj for conversion, so anything that works using proj/cs2cs on the console will work in postgis. WKT/proj4text can be converted via OGR/GDAL so going between them is easy enough.<br>
 <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> 2. How would I define the projection for a local survey grid? (I may<br>
     alternately ask this on the proj mail list)<br>
<br>
At present, I have a spreadsheet to scale, translate and rotate points to NAD83/UTM9N, or I use similar commands in CAD for drawings, but I have much more work, and I'd like to make the translation more streamlined.</blockquote>
<br>If you have a definition for the local coordinate system then you should be able to create the proj4text pretty easily - figure out which parameters you need and fill in the numbers. By specifying +towgs84 you can add your scale+translate+rotate as a 7-parameter transform. <br>
<br><a href="http://proj.maptools.org/faq.html">http://proj.maptools.org/faq.html</a><br><a href="http://proj.maptools.org/gen_parms.html">http://proj.maptools.org/gen_parms.html</a><br><br>HTH,<br><br>Rob :)<br></div>-- <br>
Koordinates Ltd. (formerly One Track Mind)<br>PO Box 1604, Shortland St, Auckland 1140, New Zealand<br>Phone +64-9-966 0433 Fax +64-9-969 0045<br>Web <a href="http://koordinates.com/">http://koordinates.com/</a>