<html>
<head>
</head>
<body 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>
<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>
<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>
<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>
<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>
<p style="margin-bottom: 0; margin-top: 0">
<br>
<br>
>>> Mike Toews <mwtoews@gmail.com> wrote:<br> </p>
<table bgcolor="#f3f3f3" style="font-size: 1em; margin-right: 0; margin-top: 0; margin-left: 15px; margin-bottom: 0" border="0">
<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 <Bob.Basques@ci.stpaul.mn.us> 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>postgis-users@postgis.refractions.net<br><a href="http://postgis.refractions.net/mailman/listinfo/postgis-users">http://postgis.refractions.net/mailman/listinfo/postgis-users</a><br>
</p>
</div>
</td>
</tr>
</table>
</body>
</html>