<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
  <channel>
    <title>Recent Posts in 'Manipulating Data: us_states to us_50' | Pragmatic Forums</title>
    <link>http://forums.pragprog.com/forums/9/topics/331</link>
    <language>en-us</language>
    <ttl>60</ttl>
    <description></description>
    <item>
      <title>Manipulating Data: us_states to us_50 posted by Charity Sipe @ Thu, 12 Jun 2008 15:09:54 -0000</title>
      <description>&lt;p&gt;Although I didn&amp;#8217;t experience the problem you are describing, it sounds like there are multiple geometries in your table which causes the command to fail.  To discover which SRIDs are in your us_states table,&lt;/p&gt;


&lt;pre&gt; 
&lt;code&gt;
select distinct SRID(the_geom) from us_states;
&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt;

	&lt;p&gt;If there is more than one &lt;span class="caps"&gt;SRID&lt;/span&gt; listed, you need to issue&lt;/p&gt;


&lt;pre&gt;
&lt;code&gt;
update us_states set the_geom = setSRID(the_geom, 4269)
&lt;/code&gt;&lt;br /&gt;&lt;/pre&gt; 

	&lt;p&gt;Recall that 4269 is the Geographic projection (Lat/Lon) and the datum is &lt;span class="caps"&gt;NAD83&lt;/span&gt;.&lt;/p&gt;


	&lt;p&gt;If more than one &lt;span class="caps"&gt;SRID&lt;/span&gt; isn&amp;#8217;t listed in your table and the &lt;span class="caps"&gt;SRID&lt;/span&gt; displayed is -1, you &lt;strong&gt;may&lt;/strong&gt; see the same behavior as when there are mixed SRIDs in the table.  This is just a guess as I have no idea.  But if -1 is displayed as the projection of data (meaning the projection is unknown), you can try setting it to 4269 using the aforementioned command to see if this solves your problem.&lt;/p&gt;


	&lt;p&gt;Hope this helps.&lt;/p&gt;


	&lt;p&gt;Charity&lt;/p&gt;</description>
      <pubDate>Thu, 12 Jun 2008 15:09:54 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:9:331:3151</guid>
      <author>Charity Sipe</author>
      <link>http://forums.pragprog.com/forums/9/topics/331</link>
    </item>
    <item>
      <title>Manipulating Data: us_states to us_50 posted by Marc Hollins @ Tue, 03 Jun 2008 14:42:10 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;m glad to see I&amp;#8217;m not the only one having this problem.&lt;/p&gt;


	&lt;p&gt;Anybody know how to get it to work?&lt;/p&gt;


	&lt;p&gt;PostgreSQL 8.3, PostGIS 1.3&lt;/p&gt;</description>
      <pubDate>Tue, 03 Jun 2008 14:42:10 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:9:331:3031</guid>
      <author>Marc Hollins</author>
      <link>http://forums.pragprog.com/forums/9/topics/331</link>
    </item>
    <item>
      <title>Manipulating Data: us_states to us_50 posted by Bill Parrill @ Sun, 23 Mar 2008 08:41:17 -0000</title>
      <description>&lt;p&gt;I&amp;#8217;m on chapter 5.9 and have reached the point where I&amp;#8217;m supposed to create the multipolygons.  However, when I run the select statement, I get an error:&lt;/p&gt;


	&lt;p&gt;g4wd=# select name, GeomUnion(the_geom) as location into us_50 from us_states group by name;
&lt;strong&gt;&lt;span class="caps"&gt;ERROR&lt;/span&gt;:  Operation on mixed &lt;span class="caps"&gt;SRID&lt;/span&gt; geometries&lt;/strong&gt;&lt;/p&gt;


	&lt;p&gt;Any ideas what&amp;#8217;s going on?  Thanks!  I&amp;#8217;m using PostgreSQL 8.3.1.&lt;/p&gt;</description>
      <pubDate>Sun, 23 Mar 2008 08:41:17 -0000</pubDate>
      <guid isPermaLink="false">forums.pragprog.com:9:331:2478</guid>
      <author>Bill Parrill</author>
      <link>http://forums.pragprog.com/forums/9/topics/331</link>
    </item>
  </channel>
</rss>
