<?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: Is it possible to change spatialreference by arcobjects? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-change-spatialreference-by/m-p/473880#M12841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The answer is it depends on what specifically you are trying to do.&amp;nbsp; If you are trying to change the spatial reference of a feature class, the answer is no.&amp;nbsp; Typically you would create a new featureclass with the other spatial reference and copy all the features over (which will project them.)&amp;nbsp; If you are trying to change the spatialreference of a geometry, you can call the project method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Jul 2010 12:31:48 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2010-07-05T12:31:48Z</dc:date>
    <item>
      <title>Is it possible to change spatialreference by arcobjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-change-spatialreference-by/m-p/473879#M12840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I used IGeometryDefEdit.SpatialReference, but it did not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will change every coordinates by code.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 04:38:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-change-spatialreference-by/m-p/473879#M12840</guid>
      <dc:creator>SongWendong</dc:creator>
      <dc:date>2010-07-05T04:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change spatialreference by arcobjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-change-spatialreference-by/m-p/473880#M12841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The answer is it depends on what specifically you are trying to do.&amp;nbsp; If you are trying to change the spatial reference of a feature class, the answer is no.&amp;nbsp; Typically you would create a new featureclass with the other spatial reference and copy all the features over (which will project them.)&amp;nbsp; If you are trying to change the spatialreference of a geometry, you can call the project method.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jul 2010 12:31:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-change-spatialreference-by/m-p/473880#M12841</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2010-07-05T12:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change spatialreference by arcobjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-change-spatialreference-by/m-p/473881#M12842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can change the spatial reference of a feature class, however it must be inside of a feature dataset.&amp;nbsp; Use IGeoDatasetSchemaEdit2::AlterSpatialReference to change the spatial reference of the feature dataset.&amp;nbsp; This will change the spatial reference of any feature classes inside the feature dataset.&amp;nbsp; As Alex mentioned, this will not project the features inside the feature class.&amp;nbsp; If you need to do that, then you will need to loop through all of the features and project the geometries.&amp;nbsp; I don't know that there's any way to change the spatial reference of a standalone feature class.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Jul 2010 11:21:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-change-spatialreference-by/m-p/473881#M12842</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-07-06T11:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to change spatialreference by arcobjects?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-change-spatialreference-by/m-p/473882#M12843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Resurrecting an old thread here.&amp;nbsp; But I was looking to do the same thing as the OP and there isn't much that comes up from it.&amp;nbsp; The problem with the project tool is that it creates new feature classes/datasets.&amp;nbsp; I would expect new OIDs could come out of that but I know that things like relationships and such get messed up.&amp;nbsp; Not to mention you then have to copy over all the tables and other things that don't have spatial references and don't get copied.&amp;nbsp; What would be nicer would be to have the Project tool update the projection of the feature class or dataset and then update all the features with the new coordinates without creating any new objects.&amp;nbsp; I was able to do just that but it took a bit of work.&amp;nbsp; Not 100% sure it will work right with annotation either.&amp;nbsp; Need to test that still.&amp;nbsp; So it can be done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One note is that the IGeoDatasetSchemaEdit2::AlterSpatialReference is the method needed to change the spatial reference.&amp;nbsp; The SDK seems to suggest it's only for FeatureDataset objects.&amp;nbsp; But it would appear to be implemented on FeatureClass objects as well as it worked for me.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2012 20:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/is-it-possible-to-change-spatialreference-by/m-p/473882#M12843</guid>
      <dc:creator>BillyBuerger</dc:creator>
      <dc:date>2012-12-18T20:53:52Z</dc:date>
    </item>
  </channel>
</rss>

