<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Spatial References are not compatible in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/spatial-references-are-not-compatible/m-p/118395#M6741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting the above error for some layers when querying the db using st_geometry functions. Without going into the specifics of why and how:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to clean up the database so that I'm left with only unambiguous entries in the spatial_references table for the projections I use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having 59 rows! in the spatial_references table at the moment for the dev environment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course the majority define the same projection but are created as seperate entries when one of the attributes is slightly different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Getting to my question: how do I &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. 'reproject' the feature classes to have the same srid in the spatial references table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I tried batch reproject using a feature class with the desired projection but still ended up with a different projection in the spatial references table after projection than the projection of the template feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I can achieve my goal with ArcCatalogue by creating a new feature class and defining the projection by pointing it to a feature class with the desired srid, but I'm looking for a scripted solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I can't do this using CreateFeatureclass_management because the help states "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;When you use a Template Feature Class its spatial reference is ignored&lt;/SPAN&gt;&lt;SPAN&gt;". But I need to use a template feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to define the attribute schema. So that looks like a catch 22 to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. force new data to be loaded in the database to use only the (maybe) 3 projections that I like to be left with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. delete all the obsolete entries from the spatial_refences table after I succeeded at step 1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know there are entries on this topic on the forum (e.g. &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2291&amp;amp;t=298774"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2291&amp;amp;t=298774&lt;/A&gt;&lt;SPAN&gt;) but they don't seem to cut the cake.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for a scripted solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rune&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 May 2012 05:43:45 GMT</pubDate>
    <dc:creator>runegullstrom</dc:creator>
    <dc:date>2012-05-01T05:43:45Z</dc:date>
    <item>
      <title>Spatial References are not compatible</title>
      <link>https://community.esri.com/t5/data-management-questions/spatial-references-are-not-compatible/m-p/118395#M6741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting the above error for some layers when querying the db using st_geometry functions. Without going into the specifics of why and how:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd like to clean up the database so that I'm left with only unambiguous entries in the spatial_references table for the projections I use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having 59 rows! in the spatial_references table at the moment for the dev environment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course the majority define the same projection but are created as seperate entries when one of the attributes is slightly different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Getting to my question: how do I &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. 'reproject' the feature classes to have the same srid in the spatial references table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I tried batch reproject using a feature class with the desired projection but still ended up with a different projection in the spatial references table after projection than the projection of the template feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - I can achieve my goal with ArcCatalogue by creating a new feature class and defining the projection by pointing it to a feature class with the desired srid, but I'm looking for a scripted solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I can't do this using CreateFeatureclass_management because the help states "&lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;When you use a Template Feature Class its spatial reference is ignored&lt;/SPAN&gt;&lt;SPAN&gt;". But I need to use a template feature class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to define the attribute schema. So that looks like a catch 22 to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. force new data to be loaded in the database to use only the (maybe) 3 projections that I like to be left with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. delete all the obsolete entries from the spatial_refences table after I succeeded at step 1?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know there are entries on this topic on the forum (e.g. &lt;/SPAN&gt;&lt;A href="http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2291&amp;amp;t=298774"&gt;http://forums.esri.com/Thread.asp?c=158&amp;amp;f=2291&amp;amp;t=298774&lt;/A&gt;&lt;SPAN&gt;) but they don't seem to cut the cake.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking for a scripted solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rune&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 05:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/spatial-references-are-not-compatible/m-p/118395#M6741</guid>
      <dc:creator>runegullstrom</dc:creator>
      <dc:date>2012-05-01T05:43:45Z</dc:date>
    </item>
  </channel>
</rss>

