<?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 Re: How to ensure consistent ST_Geometry SRIDs when importing feature classes? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752906#M42346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi nwingfield,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't mention the database you are using and its hard to guess now that everything is lumped together into this single "geodatabase" mish-mash of a forum.&amp;nbsp; My experience is on Oracle so I hope it applies to your situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SDE.ST_GEOMETRY is just a sequence number that starts with 1 and increments each and every time a new coordinate system with new attributes is encountered by a given installation of SDE.&amp;nbsp; This goes far beyond just the projection basics such as NAD83 or WGS84 but also covers the offsets, the grid size and the extents (check out the SDE.ST_SPATIAL_REFERENCES table for an idea of the possible things SDE tracks). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So taking a brand new empty installation of ArcSDE, let's say you run sdeimport and load some NAD83 data as the SDE.ST_GEOMETRY datatype.&amp;nbsp; ArcSDE will store the import's cs details and assign the ST_GEOMETRY SRID to be 1.&amp;nbsp; Then you next come along with some WGS84 data - okay that becomes SRID 2.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might then come along with more NAD83 data and you'd imagine this layer would be loaded and assigned to be the previously mentioned SRID 1.&amp;nbsp; But that's only if EVERY gritty detail matches.&amp;nbsp; As mentioned, any difference in offsets, scale or the extent will cause ArcSDE to say that the cs is new and assign it as SRID 3.&amp;nbsp; I just looked at one of my ST_SPATIAL_REFERENCES table and I have 56 versions of GCS_North_American_1983.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now how do you keep SRID 1 on server A equal to SRID 1 on server B?&amp;nbsp; Other than cloning the entire SDE schema there is no way I know of to do this.&amp;nbsp; As far as I know you need to use ESRI tools (ArcCatalog, sdeimport, sdeexport, shp2sde, etc) to properly move things back and forth amongst servers.&amp;nbsp; They do the work of figuring out what SRID 1 on server A is equal to on server B and possibly as a result creating a new SRID on server B if there is no match.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've often thought that possibly you could define a universal coordinate system: cs, offset, scale, extents - whatever you chose would need to work for ALL your data universally.&amp;nbsp; Then you could reassign that SRID from 1 to say, 4269.&amp;nbsp; Then you would need to carefully police all your SDE data to fit in those parameters (easier said than done).&amp;nbsp; You would then do this on all your servers.&amp;nbsp; Again you'd need to be vigilant to always make sure data came into your system with the exact parameters preset to match up with your stable 4269.&amp;nbsp; One degree of difference in the extent or using an offset of -180 instead of -200 and you will instead get 4 or 37 or whatever is next in the sequence.&amp;nbsp; Honestly this seems like more trouble than its worth.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone else have any thoughts?&amp;nbsp; As mentioned I've always followed the party line on this one.&amp;nbsp; I have five servers that I commonly move the same data back and forth on.&amp;nbsp; There is nothing in common between any of them in terms of ST_GEOMETRY SRID values.&amp;nbsp; In fact recently we rebuilt the layers to use the ArcCatalog-ish -200 offsets and a smaller XYscale.&amp;nbsp; So that createda whole new sets of SRIDs.&amp;nbsp; I don't think you can do much about it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 May 2010 21:37:31 GMT</pubDate>
    <dc:creator>PaulDziemiela</dc:creator>
    <dc:date>2010-05-06T21:37:31Z</dc:date>
    <item>
      <title>How to ensure consistent ST_Geometry SRIDs when importing feature classes?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752904#M42344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When importing feature classes from other sources, how can I make sure the ST_Geometry SRIDs are consistent? I'm having trouble with certain database-level operations because the SRIDs between feature classes do not match, even though the projection and coordinate system are identical.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Apr 2010 13:09:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752904#M42344</guid>
      <dc:creator>NathanielWingfield</dc:creator>
      <dc:date>2010-04-28T13:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure consistent ST_Geometry SRIDs when importing feature classes?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752905#M42345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would try importing the spatial reference from the same source feature class or feature dataset when you are creating the feature classes or feature datasets.&amp;nbsp; Then load the data to these empty feature classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure if this is always going to work though, especially if you are using different keywords or datatypes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 May 2010 22:22:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752905#M42345</guid>
      <dc:creator>TravisVal</dc:creator>
      <dc:date>2010-05-05T22:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure consistent ST_Geometry SRIDs when importing feature classes?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752906#M42346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi nwingfield,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You don't mention the database you are using and its hard to guess now that everything is lumped together into this single "geodatabase" mish-mash of a forum.&amp;nbsp; My experience is on Oracle so I hope it applies to your situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SDE.ST_GEOMETRY is just a sequence number that starts with 1 and increments each and every time a new coordinate system with new attributes is encountered by a given installation of SDE.&amp;nbsp; This goes far beyond just the projection basics such as NAD83 or WGS84 but also covers the offsets, the grid size and the extents (check out the SDE.ST_SPATIAL_REFERENCES table for an idea of the possible things SDE tracks). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So taking a brand new empty installation of ArcSDE, let's say you run sdeimport and load some NAD83 data as the SDE.ST_GEOMETRY datatype.&amp;nbsp; ArcSDE will store the import's cs details and assign the ST_GEOMETRY SRID to be 1.&amp;nbsp; Then you next come along with some WGS84 data - okay that becomes SRID 2.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might then come along with more NAD83 data and you'd imagine this layer would be loaded and assigned to be the previously mentioned SRID 1.&amp;nbsp; But that's only if EVERY gritty detail matches.&amp;nbsp; As mentioned, any difference in offsets, scale or the extent will cause ArcSDE to say that the cs is new and assign it as SRID 3.&amp;nbsp; I just looked at one of my ST_SPATIAL_REFERENCES table and I have 56 versions of GCS_North_American_1983.&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now how do you keep SRID 1 on server A equal to SRID 1 on server B?&amp;nbsp; Other than cloning the entire SDE schema there is no way I know of to do this.&amp;nbsp; As far as I know you need to use ESRI tools (ArcCatalog, sdeimport, sdeexport, shp2sde, etc) to properly move things back and forth amongst servers.&amp;nbsp; They do the work of figuring out what SRID 1 on server A is equal to on server B and possibly as a result creating a new SRID on server B if there is no match.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've often thought that possibly you could define a universal coordinate system: cs, offset, scale, extents - whatever you chose would need to work for ALL your data universally.&amp;nbsp; Then you could reassign that SRID from 1 to say, 4269.&amp;nbsp; Then you would need to carefully police all your SDE data to fit in those parameters (easier said than done).&amp;nbsp; You would then do this on all your servers.&amp;nbsp; Again you'd need to be vigilant to always make sure data came into your system with the exact parameters preset to match up with your stable 4269.&amp;nbsp; One degree of difference in the extent or using an offset of -180 instead of -200 and you will instead get 4 or 37 or whatever is next in the sequence.&amp;nbsp; Honestly this seems like more trouble than its worth.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone else have any thoughts?&amp;nbsp; As mentioned I've always followed the party line on this one.&amp;nbsp; I have five servers that I commonly move the same data back and forth on.&amp;nbsp; There is nothing in common between any of them in terms of ST_GEOMETRY SRID values.&amp;nbsp; In fact recently we rebuilt the layers to use the ArcCatalog-ish -200 offsets and a smaller XYscale.&amp;nbsp; So that createda whole new sets of SRIDs.&amp;nbsp; I don't think you can do much about it.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Paul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 May 2010 21:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752906#M42346</guid>
      <dc:creator>PaulDziemiela</dc:creator>
      <dc:date>2010-05-06T21:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure consistent ST_Geometry SRIDs when importing feature classes?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752907#M42347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just Googled "st_geometry srid" and discovered these great answers to my own thread! Thanks for the thorough explanation. At least I better understand the problem now...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jul 2010 12:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752907#M42347</guid>
      <dc:creator>NathanielWingfield</dc:creator>
      <dc:date>2010-07-22T12:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure consistent ST_Geometry SRIDs when importing feature classes?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752908#M42348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Funny, I was just about to add an entry with the same question. I've got the same &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;problem, 37 entries in the spatial_references table for basically 3 different coord systems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Same problems too with copying and developers asking me which SRID to use.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can image writing some procedure to get all the fc's down to the 3 coord systems, but what&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;then? Can I just delete the rows from the spatial_references table if no fc references it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't see any command line tools to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 03:55:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752908#M42348</guid>
      <dc:creator>runegullstrom</dc:creator>
      <dc:date>2010-07-23T03:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure consistent ST_Geometry SRIDs when importing feature classes?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752909#M42349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The SRID model does not support a delete operation. I can't imagine how deleting&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;unused entries could hurt (if they are truly unused, of course), but I can't imagine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how leaving them in place would hurt either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jul 2010 10:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752909#M42349</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2010-07-23T10:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to ensure consistent ST_Geometry SRIDs when importing feature classes?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752910#M42350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Of course you're right Vince, but the developers are a bunch of hackers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So they've found out about this table (they need to SRID for st_geometry functions) and&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;get confused about which one to use (they hard code it!). So having 3 rows there for&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;our 3 projections which would be consistent over all boxes would be nice,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Jul 2010 03:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-ensure-consistent-st-geometry-srids-when/m-p/752910#M42350</guid>
      <dc:creator>runegullstrom</dc:creator>
      <dc:date>2010-07-24T03:13:08Z</dc:date>
    </item>
  </channel>
</rss>

