Bob, can you try something like this?<div><br></div><div><div>select</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>st_astext(st_setsrid(st_geomfromtext('POINT(-48 -19)'),4326)) as "wgs84",</div>
<div><span class="Apple-tab-span" style="white-space:pre"> </span>st_astext(st_transform(st_setsrid(st_geomfromtext('POINT(-48 -19)'),4326),29192)) as "sad69-utm22"</div><div><br></div><div>Here are my results:</div>
<div><br></div><div>"POINT(-48 -19)" ; "POINT(815865.331177955 7896471.32478341)"</div><div><br></div><div>Looking at your coordinates, I see a -93.1268 as latitude. Perhaps the input needs a little validating?</div>
<br><div class="gmail_quote">On Tue, Mar 6, 2012 at 4:25 PM, Bob Basques <span dir="ltr"><<a href="mailto:Bob.Basques@ci.stpaul.mn.us">Bob.Basques@ci.stpaul.mn.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="font-size:12pt;font-style:normal;margin-right:4px;margin-top:4px;font-family:Comic Sans MS;margin-left:4px;margin-bottom:1px;line-height:normal;font-weight:normal;font-variant:normal">
<p style="margin-bottom:0;margin-top:0">
<font face="Comic Sans MS" size="3">All,</font> </p>
<br>
<p style="margin-bottom:0;margin-top:0">
<font face="Comic Sans MS" size="3">I hit this earlier in my testing, so I must have had things in the right order at some earlier point in the process.</font> </p>
<br>
<p style="margin-bottom:0;margin-top:0">
<font face="Comic Sans MS" size="3">This :</font> </p><div class="im">
<br>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3">select</font> </p>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> ST_SetSRID(ST_MakePoint(part3::numeric, part4::numeric),4326) as geom,</font> </p>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> ST_AsText(ST_SetSRID(ST_MakePoint(part3::numeric, part4::numeric),4326)) as geom_text,</font> </p>
</div><p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> ST_AsText(ST_Transform(ST_SetSRID(ST_MakePoint(part3::numeric, part4::numeric),4326), 200068)) as geom_city</font> </p><div class="im">
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> from</font> </p>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> (select rxtime,</font> </p>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> split_part(cmd, ',', 3) as part3,</font> </p>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> split_part(cmd, ',', 4) as part4</font> </p>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> from </font> </p>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> cmdstpinfo</font> </p>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> where cmd </font> </p>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New" size="3"> like '>Plot:%') AS first_pass;</font> </p>
<br>
</div><p style="margin-bottom:0;margin-top:0">
<font face="Comic Sans MS" size="3">is producing this (which I did hit early on but thought I had the syntax wrong at the time) :</font> </p>
<br>
<div>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New">ERROR: transform: couldn't project point (44.9677 -93.1268 0): latitude or longitude exceeded limits (-14)</font> </p>
</div>
<div>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New"> </font> </p>
</div>
<div>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New">********** Error **********</font> </p>
</div>
<div>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New"> </font> </p>
</div>
<div>
<p style="margin-bottom:0;margin-top:0">
<font face="Courier New">ERROR: transform: couldn't project point (44.9677 -93.1268 0): latitude or longitude exceeded limits (-14)<br style="font-family:Courier New">SQL state: XX000</font><font face="Comic Sans MS" size="3"></font> </p>
<br>
<p style="margin-bottom:0;margin-top:0">
<font face="Comic Sans MS" size="3">This indicates to me that the transform stuff is there , but that it failed. I haven't found many references to this error online. The numbers above are the numbers from the first record in the table. When I hit this earlier, I thought I might be trying to transform against the TEXT (those numbers) object vs the GEOM object (which I'm supposed to use, right??). The result of the ST_SetSRID seems to be the correct type of object to pass to ST_Transform based on what I found in my searches. Maybe I'm not supposed to try the transform in this manner.</font> </p>
<br>
<p style="margin-bottom:0;margin-top:0">
<font face="Comic Sans MS" size="3">bobb</font> </p>
<br>
<p style="margin-bottom:0;margin-top:0">
<br>
<br>
</p>
</div><div><div class="h5">
<p style="margin-bottom:0;margin-top:0">
<br>
<br>
>>> Mike Toews <<a href="mailto:mwtoews@gmail.com" target="_blank">mwtoews@gmail.com</a>> wrote:<br> </p>
<table bgcolor="#f3f3f3" style="font-size:1em;margin-right:0;margin-top:0;margin-left:15px;margin-bottom:0" border="0">
<tbody><tr>
<td>
<div style="border-left:solid 1px #050505;padding-left:7px">
<p style="margin-bottom:0;margin-top:0">
On 7 March 2012 06:10, Bob Basques <<a href="mailto:Bob.Basques@ci.stpaul.mn.us" target="_blank">Bob.Basques@ci.stpaul.mn.us</a>> wrote:<br>> ...<br>> ST_AsText(ST_Transform(ST_SetSRID(ST_MakePoint(part3::numeric,<br>
> part4::numeric),4326)), 200068) as geom_city<br>> ...<br>> ERROR: function st_transform(geometry) does not exist<br>> LINE 4: ST_AsText(ST_Transform(ST_SetSRID(ST_MakePoint(pa...<br><br>It looks like "4326)), 200068)" should be "4326), 200068))"<br>
<br>-Mike<br>_______________________________________________<br>postgis-users mailing list<br><a href="mailto:postgis-users@postgis.refractions.net" target="_blank">postgis-users@postgis.refractions.net</a><br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</p>
</div>
</td>
</tr>
</tbody></table>
</div></div></div>
<br>_______________________________________________<br>
postgis-users mailing list<br>
<a href="mailto:postgis-users@postgis.refractions.net">postgis-users@postgis.refractions.net</a><br>
<a href="http://postgis.refractions.net/mailman/listinfo/postgis-users" target="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>George R. C. Silva<br><br>Desenvolvimento em GIS<br><a href="http://geoprocessamento.net" target="_blank">http://geoprocessamento.net</a><br><a href="http://blog.geoprocessamento.net" target="_blank">http://blog.geoprocessamento.net</a><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%"></div><div style="padding:0px;margin-left:0px;margin-top:0px;overflow:hidden;word-wrap:break-word;color:black;font-size:10px;text-align:left;line-height:130%">
</div><br>
</div>