<?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 Issues Creating a Custom Projected Coordinate System in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201297#M5220</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, Folks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to create a custom coordinate system using NAD27 as my GCS and Albers Equal-Area Conic as my projection.&amp;nbsp; My program throws an AutomationException with no further info when I try to execute the .define(...) method in the following code block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
ISpatialReferenceFactory spatialReferenceFactory = new SpatialReferenceEnvironment();

ILinearUnit unit = (ILinearUnit) spatialReferenceFactory
&amp;nbsp; .createUnit(esriSRUnitType.esriSRUnit_Meter);
IGeographicCoordinateSystem gcs = spatialReferenceFactory
&amp;nbsp; .createGeographicCoordinateSystem(esriSRGeoCSType.esriSRGeoCS_NAD1927);
IProjectionGEN projection = (IProjectionGEN) spatialReferenceFactory
&amp;nbsp; .createProjection(esriSRProjectionType.esriSRProjection_Albers);
IParameter[] parameters = projection
&amp;nbsp; .getDefaultParameters();

IProjectedCoordinateSystemEdit pcsEdit = new ProjectedCoordinateSystem();

Object name = "MyProjection";
Object alias = "My Alias";
Object abbreviation = "MP";
Object remarks = "Remarky Mark and the Funky Bunch";
Object usage = "Use this projection when creating an example for the good people of the ArcGIS forums.";
Object gcsObject = gcs;
Object unitObject = unit;
Object projectionObject = projection;
Object parametersObject = parameters;

pcsEdit.define(name, alias, abbreviation, remarks, usage, gcsObject, unitObject, projectionObject, parametersObject);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When writing the above code, I followed this example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/Java/54ece52a-3a53-11dc-a403-4faa7246d1c1.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.2/Java/54ece52a-3a53-11dc-a403-4faa7246d1c1.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, the AutomationException is thrown when I call pcsEdit.define().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone please provide guidance?&amp;nbsp; I'm pretty stumped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:00:56 GMT</pubDate>
    <dc:creator>JohnNielson</dc:creator>
    <dc:date>2021-12-11T10:00:56Z</dc:date>
    <item>
      <title>Issues Creating a Custom Projected Coordinate System</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201297#M5220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey, Folks:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to create a custom coordinate system using NAD27 as my GCS and Albers Equal-Area Conic as my projection.&amp;nbsp; My program throws an AutomationException with no further info when I try to execute the .define(...) method in the following code block:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
ISpatialReferenceFactory spatialReferenceFactory = new SpatialReferenceEnvironment();

ILinearUnit unit = (ILinearUnit) spatialReferenceFactory
&amp;nbsp; .createUnit(esriSRUnitType.esriSRUnit_Meter);
IGeographicCoordinateSystem gcs = spatialReferenceFactory
&amp;nbsp; .createGeographicCoordinateSystem(esriSRGeoCSType.esriSRGeoCS_NAD1927);
IProjectionGEN projection = (IProjectionGEN) spatialReferenceFactory
&amp;nbsp; .createProjection(esriSRProjectionType.esriSRProjection_Albers);
IParameter[] parameters = projection
&amp;nbsp; .getDefaultParameters();

IProjectedCoordinateSystemEdit pcsEdit = new ProjectedCoordinateSystem();

Object name = "MyProjection";
Object alias = "My Alias";
Object abbreviation = "MP";
Object remarks = "Remarky Mark and the Funky Bunch";
Object usage = "Use this projection when creating an example for the good people of the ArcGIS forums.";
Object gcsObject = gcs;
Object unitObject = unit;
Object projectionObject = projection;
Object parametersObject = parameters;

pcsEdit.define(name, alias, abbreviation, remarks, usage, gcsObject, unitObject, projectionObject, parametersObject);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When writing the above code, I followed this example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/Java/54ece52a-3a53-11dc-a403-4faa7246d1c1.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.2/Java/54ece52a-3a53-11dc-a403-4faa7246d1c1.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Again, the AutomationException is thrown when I call pcsEdit.define().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could anyone please provide guidance?&amp;nbsp; I'm pretty stumped.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:00:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201297#M5220</guid>
      <dc:creator>JohnNielson</dc:creator>
      <dc:date>2021-12-11T10:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Creating a Custom Projected Coordinate System</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201298#M5221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Update:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I copied and pasted the above example exactly (from the Esri website, linked above) and received the same exception.&amp;nbsp; Again, this is *the exact same code* as is shown in the example linked above, and I still get the AutomationException when .define(...) is called on the IProjectedCoordinateSystemEdit reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug?&amp;nbsp; I'll be contacting our representative shortly to submit a service request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Needless to say, it's pretty irritating to copy an example from a vendor website and watch it fail.&amp;nbsp; Does this stuff even get tested?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2011 15:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201298#M5221</guid>
      <dc:creator>JohnNielson</dc:creator>
      <dc:date>2011-11-02T15:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Creating a Custom Projected Coordinate System</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201299#M5222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am having the same issue so this is obviously a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Windows environment using Ganymeade Eclipse and ArcObjects 10.0.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 15:22:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201299#M5222</guid>
      <dc:creator>PeterHastings</dc:creator>
      <dc:date>2012-12-07T15:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Creating a Custom Projected Coordinate System</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201300#M5223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;A href="http://forums.arcgis.com/threads/73048-IProjectedCoordinateSystemEdit.define-crashes"&gt;http://forums.arcgis.com/threads/73048-IProjectedCoordinateSystemEdit.define-crashes&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 15:23:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201300#M5223</guid>
      <dc:creator>PeterHastings</dc:creator>
      <dc:date>2012-12-07T15:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Issues Creating a Custom Projected Coordinate System</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201301#M5224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this was my workaround,&amp;nbsp; Crude but it worked&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/73048-IProjectedCoordinateSystemEdit.define-crashes?p=256605#post256605"&gt;http://forums.arcgis.com/threads/73048-IProjectedCoordinateSystemEdit.define-crashes?p=256605#post256605&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2012 14:09:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issues-creating-a-custom-projected-coordinate/m-p/201301#M5224</guid>
      <dc:creator>PeterHastings</dc:creator>
      <dc:date>2012-12-13T14:09:07Z</dc:date>
    </item>
  </channel>
</rss>

