<div>I have a database containing a Postgres native point data type <b>event</b> that has the latitude and longitude for certain events. An example value of <b>event</b> is <b>(32.7748777996749,-96.7680574022233)</b>. Note: this is <i>not</i> a PostGIS data type. It's a native Postgres type.</div>
<div><br></div><div>I tried to convert this into a PostGIS gemoetry field <b>the_geom</b> and project into 3081 at the same time using this:</div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
<div><b><font class="Apple-style-span" face="'courier new', monospace">UPDATE event_table</font></b></div><div><b><font class="Apple-style-span" face="'courier new', monospace">SET the_geom = ST_SetSRID(ST_Point(event_location[1], event_location[0]), 3081)</font></b></div>
</blockquote><div>(This derived from the example at <a href="http://postgis.refractions.net/docs/ST_Point.html">http://postgis.refractions.net/docs/ST_Point.html</a> and reinforced by some Google searching.)</div><div><br>
</div><div>The problem is when I import this layer into a QGIS project with several 3081-projected layers, all of my event points are ending up in the Pacific Ocean just off Mexico's west coast. 3081 is a projection for Texas, and that's where all my other data is.</div>
<div><br></div><div>Am I doing something wrong with the conversion? I assumed that there really is not a projection <i>per se</i> because the input is pure lat/long?</div><div><br></div><div>Aren</div>