<?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: [ArcEngine] Drawing projected geometry in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756667#M20077</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well our organization is on a maintenance contract so we get unlimited support and upgrades.&amp;nbsp; We have a few dozen ArcInfos and spatial analysts, arcviews,&amp;nbsp; server, some engine and a few other extensions, so lots of support money.&amp;nbsp; Not all distributors have the same support models.&amp;nbsp; As far as I know, Canada does not have a pay as you go model except for entreprise support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 17:43:52 GMT</pubDate>
    <dc:creator>AlexanderGray</dc:creator>
    <dc:date>2012-05-14T17:43:52Z</dc:date>
    <item>
      <title>[ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756653#M20063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The documentation for the IGemetry.Project method : &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/sdk/10.0/arcobjects_cpp/componenthelp/index.html#/Project_Method/000w0000020r000000/" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_cpp/componenthelp/index.html#/Project_Method/000w0000020r000000/&lt;/A&gt;&lt;SPAN&gt; shows how an object can be projected into another coordinate space.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Assuming that I am working with WGS84 referenced maps, I then want to draw a geometry (circle).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the case of WGS84, drawing a 'circle' (with constant radius), will actually be visualized (projected) as an ellipsoid - see attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem is that the following projection does not seem to be working : &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PointClass centroid = new PointClass() { X = 0, Y = 0}; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PointClass permiterPoint = new PointClass() { X = 4, Y = 0 }; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CircularArcClass circularArc = new CircularArcClass(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; circularArc.PutCoords(centroid, permiterPoint, permiterPoint, esriArcOrientation.esriArcClockwise);&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPolygon polygon = new PolygonClass(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; segmentCollection = polygon as ISegmentCollection; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; segmentCollection.AddSegment(circularArc);&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISpatialReferenceFactory srFactory = new SpatialReferenceEnvironmentClass(); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeographicCoordinateSystem cs1 = srFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_Clarke1880); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeographicCoordinateSystem cs2 = srFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon.SpatialReference = cs1;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon.Project(cs2);&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGraphicTrackerSymbol graphicTrackerSymbol = graphicTracker.CreateSymbol(fillSymbol as ISymbol, null); &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int graphicID = graphicTracker.Add(polygon, graphicTrackerSymbol);&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;(I have not added any maps yet, and have not set the any layer spacial relations).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'inner' circle is the result of the code above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The 'outer' (shaded) ellipsoid is the result of another filled polygon (not in the code above) which is constructed by manually calculating the perimeter coordinates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The source coordinate system is obviously not Clarke 1880, I just set it to Clarke to try and get a response out of the Project method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong in terms of the projection - why is the polygon not being projected into the ellipsical coordinates that are used to represent WGS 84?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 14:51:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756653#M20063</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-04-30T14:51:59Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756654#M20064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my experience projecting large curves produces uneven results.&amp;nbsp; Same as projecting large features with few vertices.&amp;nbsp; In the case of large rectangles (several hundred KM sides), the corners are in the correct location but the sides are still straight when they should be curved to follow the projection change.&amp;nbsp; Same thing with curves the start and end and radius is correct but the edge is not skewed to follow the new projection.&amp;nbsp; If you convert your circle to a dense polyline (series of small straight segments) and then project it, the result should more closely resemble what you expect.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 15:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756654#M20064</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-04-30T15:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756655#M20065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That does make sense, I've attached a quick test that includes densification, but I feel I'm missing the projection alltogether... (even the densified version should exhibit the elliptical distortion of the WGS 84 projection)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 15:36:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756655#M20065</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-04-30T15:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756656#M20066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes it should but I don't know how much distortion you will get changing the datum between clark66 and wgs84...&amp;nbsp; You are still using the same coordinate system (geographic) and changing the datum.&amp;nbsp; If you project to a projected coordinate system, you should see more of a difference.&amp;nbsp; Usually building a circle implies using a radius, in geographic coordinate systems, the radius is provided as a distance in decimal degrees.&amp;nbsp; Decimal degrees are an angular unit so they don't make much sense as a distance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2012 15:48:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756656#M20066</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-04-30T15:48:59Z</dc:date>
    </item>
    <item>
      <title>[ArcEngine] Project() parameters</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756657#M20067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In the process of learning how projections actually work the background knowledge really makes a great deal of sense:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When adding a new 2D map layer (without setting any spacial references), arc objects automatically assumes that we're working with a 2D plane (mercator projection?) and displays the maps correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Straight line distances can literally be calculated with xy coordinates (instead of considering elliptical curves within 3 dimensions).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem now, is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Projected maps are displayed correctly, but when I draw a geometry using the map control (or using the graphic tracker) I still first need to project my 'theoretically 3 dimensional geometry' into the 2 dimensional map plane.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Example : a perfect circle (representing an constant range (radius) from a source point on the map at MSL) is defined in code using IPolyLine, but must then be projected onto a 2D mercator plane - this should then result in an ellipse as shown in the second attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assumed that I was trying to do this in my first post code sample, but it didn't work - I need to know why.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I create/define a source coordinate system that represents my geometry in 3D space, and then to which coordinate system do I convert for the WGS84 referenced maps?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(I had assumed that leaving the source coordinate system undefined, and specifying WGS84 as the target would work):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISpatialReferenceFactory srFactory = new SpatialReferenceEnvironmentClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeographicCoordinateSystem cs = srFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_WGS1984);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygon.Project(cs);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphicTracker.CreateSymbol....
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;..but since the documentation stated that the &lt;/SPAN&gt;&lt;STRONG&gt;source coordinate system&lt;/STRONG&gt;&lt;SPAN&gt; must also be defined, in order to perform a projection, I used with Clarke 1880.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, even if we used Clarke 1880 there is no change in coordinates (&lt;/SPAN&gt;&lt;STRONG&gt;not even a slight change we are expecting&lt;/STRONG&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:53:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756657#M20067</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2021-12-12T16:53:05Z</dc:date>
    </item>
    <item>
      <title>Esri example</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756658#M20068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The following example comes straight from the EDN library : &lt;/SPAN&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriGeometry/IGeometry_Project.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.2/ComponentHelp/esriGeometry/IGeometry_Project.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create Spatial Reference Factory
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISpatialReferenceFactory srFactory = new SpatialReferenceEnvironmentClass();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISpatialReference sr1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //GCS to project from 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeographicCoordinateSystem gcs = srFactory.CreateGeographicCoordinateSystem((int)esriSRGeoCSType.esriSRGeoCS_NAD1983);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sr1 = gcs;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sr1.SetFalseOriginAndUnits(-180, -90, 1000000);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Projected Coordinate System to project into
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IProjectedCoordinateSystem pcs = srFactory.CreateProjectedCoordinateSystem((int)esriSRProjCSType.esriSRProjCS_NAD1983N_AmericaLambert);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pcs.SetFalseOriginAndUnits(0, 0, 1000);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISpatialReference sr2;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sr2 = pcs;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Point to project
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPoint point = new PointClass() as IPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.PutCoords(-117.17, 34.06);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Geometry Interface to do actual project
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IGeometry geometry;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometry = point;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometry.SpatialReference = sr1;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geometry.Project(sr2);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point = geometry as IPoint;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double x;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; double y;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; point.QueryCoords(out x, out y);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print("X: " + x.ToString());
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print("Y: " + y.ToString()); 
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but the resulting coordinate returned seems to be grossly incorrect - what is wrong here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;Lat = -1830967.55192668&lt;BR /&gt;Lon = -397618.008585039&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:05:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756658#M20068</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2021-12-12T08:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756659#M20069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which transformation are you using to go from Clarke1866 to WGS84?&amp;nbsp; Keep in mind, this is not really projecting the data, Clarke1866 and WGS84 are ellipsoids (Well not WGS84 but that gets complicated)&amp;nbsp; They are not coordinate systems, you could have Geographic data NAD27 (Clarke1866), NAD83 (GRS80) or WGS84 (composite.)&amp;nbsp;&amp;nbsp; I am not too sure what you mean by going from 3D to 2D coordinate systems.&amp;nbsp; 3D coordinate systems usually store the elevation above mean sea level (which is a whole different problem since the sea isn't actually level.)&amp;nbsp; All map data is defined in 2D coordinate system because maps and computer screens are flat.&amp;nbsp; In order to do distance calculations over large areas, geodetic lines are used to calculate distances (along great circles.) or geodesiccircle to construct a circle that fits the ellipsoid.&amp;nbsp; The military analyst libraries has so methods for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know if the lambert coordinates are correct or not.&amp;nbsp; It depends where you put the origin.&amp;nbsp; Lambert usually uses metres so depending where the central meridian is and where the vertical axis starts it could be correct.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2012 16:39:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756659#M20069</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-05-10T16:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Summary</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756660#M20070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) That is also what I'm trying to figure out - what are the defaults that ArcObjects is working with when I initialize a brand new instance of the mapping control and draw a geometry to the map (or add it to the graphic tracker).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) If you have a look at the ArcObjects geometries you will find that they have properties for all three dimensions (e.g. points have X, Y and Z). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What I mean with defining geometries in 3D is that even if I leave the 'Z' coordinate at zero, I assume this still means zero relative to MSN (mean sea level). In other words, the point is by default 3 dimensional and not a 2 dimensional projection - this is again the question I wish to confirm, what is the default when I create and draw a new geometry?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) I have already explained previously that my initial understanding was incorrect. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This issue does not have anything to do with a conversion between WGS84 and some other system, say NAD27 - it has to do with the projection of geometry, or the 'translation'? of projection - I want to know what is being done by default, and what I have to do to project default geometry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Example : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[-] I add a map to the map control (It is a WGS84 referenced map).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[-] The closer we get to the poles the more 'stretched out' the map image will be (e.g. Greenland is much larger that it should be relative to a country at the equator).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[-] If I wish to draw a perfect circle over the land mass at this point, it should not be a perfect circle visually, it should be 'stretched out' into an ellipsoid in the same proportion to which the maps are stretched, the closer we get to the poles. BUT!, &lt;/SPAN&gt;&lt;STRONG&gt;-at the moment- my 'unconverted' / untranslated / unprojected geometry is still being drawn as a perfect circle over the map&lt;/STRONG&gt;&lt;SPAN&gt; - &lt;/SPAN&gt;&lt;STRONG&gt;which is telling me that we still need to perform the said conversion&lt;/STRONG&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[-] The example of the (desired) 'stretched' ellipsoid at about 40 degrees North (in comparison to a real circle, that is currently being drawn) is attached in my first, and other posts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The theory behind what has to be done seems clear. How do I get ArcObjects to do it (if the example code in previous posts is on the wrong track)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 15:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756660#M20070</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-05-11T15:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756661#M20071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;2) X,Y,Z coordinates are commonly referred to as 2.5D.&amp;nbsp; For points it doesn't make much of a difference but for polygons it does.&amp;nbsp; It means a polygon's topology is defined in 2D space and the Z just adds info, a polygon cannot loop back on itself in the 3rd dimension.&amp;nbsp; For example a cliff with an overhang cannot be modeled as X,Y,Z coordinates.&amp;nbsp; That means that for drawing purposes with a map control, the Z is ignored.&amp;nbsp; I am also pretty sure that transforming from one ellipsoid to another does not change the Z.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) For greenland, you could use a stereographic projection to create the circle and then project it back out to mercator.&amp;nbsp; The problem is it the same stereographic projection cannot be applied everywhere .&amp;nbsp; The IConstructGeoddetic interface allows you to create geodetically correct circles.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also look at &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000021m000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000021m000000&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Military Analyst used to be free at some point I am not sure it is still the case.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 16:25:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756661#M20071</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-05-11T16:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756662#M20072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What appears interesting from the code in the link that you specified (.\GeodesyMapControl\GeodesyMapControl.cs) is that it seems to be doing the same thing we have already tried...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
PointClass centroid = new PointClass() { X = 0, Y = 60};
PointClass permiterPoint = new PointClass() { X = 4, Y = 60 };
CircularArcClass circularArc = new CircularArcClass();
circularArc.PutCoords(centroid, permiterPoint, permiterPoint, esriArcOrientation.esriArcClockwise);

IPolygon polygon = new PolygonClass();
segmentCollection = polygon as ISegmentCollection;
segmentCollection.AddSegment(circularArc);


ESRI.ArcGIS.Geometry.ISpatialReference2 pSpatRef; 
ESRI.ArcGIS.Geometry.ISpatialReferenceFactory2 pSpatRefFact = (ISpatialReferenceFactory2) new ESRI.ArcGIS.Geometry.SpatialReferenceEnvironment();
pSpatRef = (ISpatialReference2) pSpatRefFact.CreateSpatialReference((int) ESRI.ArcGIS.Geometry.esriSRGeoCSType.esriSRGeoCS_WGS1984);

polygon.Project(pSpatRef);

// .. Draw shape

&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and yet, if I run this code (using my own polygon definition), I still end up with a perfect circle at 60 degrees North?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:53:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756662#M20072</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2021-12-12T16:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756663#M20073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you don't get the result you expect with the sample code, I would suggest you go to esri tech support.&amp;nbsp; Either the application is behaving as expected (your expectation doesn't match) or there is a bug , either way only esri can confirm it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:11:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756663#M20073</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-05-14T12:11:56Z</dc:date>
    </item>
    <item>
      <title>No (free) esri support</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756664#M20074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sadly, I also came to that conclusion several weeks ago (the fact that the forums are not sufficient for support).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In the mean time I'll keep posting because I really think the solution to this is simple, and it's just a matter of being pointed in the right direction.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 15:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756664#M20074</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-05-14T15:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756665#M20075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The forums are as good as the people contributing to them.&amp;nbsp; Unfortunately, as a user, I cannot afford much time for testing and experimenting some times the best I can do is offer suggestions of places to look.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The cost of support varies by distributor regions and the types of contracts you have, I would find it very difficult to develop AO without some form of official support from esri.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 16:02:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756665#M20075</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-05-14T16:02:24Z</dc:date>
    </item>
    <item>
      <title>Purchased support the only way out?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756666#M20076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes - thank you for your input, it is certainly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I may ask, how much support did you buy / consider necessary?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to estimate how much support we will need to purchase, in contrast to the number of issues I posted, which other forum members have been able to help me resolve (i.e. Thanks Neil :))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our specific use of Arc Objects only makes use of a smaller subset of functionality, and currently does not use any of the extensions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is my belief that I am quite close to a working solution and don't want to over-purchase support that will be wasted on one or two issues that I should have been able to resolve on the forums.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 17:09:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756666#M20076</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-05-14T17:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: [ArcEngine] Drawing projected geometry</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756667#M20077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well our organization is on a maintenance contract so we get unlimited support and upgrades.&amp;nbsp; We have a few dozen ArcInfos and spatial analysts, arcviews,&amp;nbsp; server, some engine and a few other extensions, so lots of support money.&amp;nbsp; Not all distributors have the same support models.&amp;nbsp; As far as I know, Canada does not have a pay as you go model except for entreprise support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 17:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756667#M20077</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2012-05-14T17:43:52Z</dc:date>
    </item>
    <item>
      <title>Back to square 1 :)</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756668#M20078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the info - our South African product specialist has replied that he'll get back to us...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the mean time, I just want to update this thread again so that in the mean time any other knowledgeable specialist who happens to be browsing will know that we still need to resolve this issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TBD : &lt;/SPAN&gt;&lt;STRONG&gt;How do I project a geometry object into a projected plane using ArcEngine? / (or what is wrong with the code posts above, are we supposed to be using the 'Project()' method?)&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 May 2012 06:59:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756668#M20078</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-05-15T06:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: no solution</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756669#M20079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There seems to be insufficient information to diagnose this problem, forcing me to use a non-ESRI workaround :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have downloaded and used a WMM (world magnetic model) library to calculate the correct coordinates whenever necessary and simply provide the correct coordinates to contruct ESRI geometries.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 12:09:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/arcengine-drawing-projected-geometry/m-p/756669#M20079</guid>
      <dc:creator>ManfredLauterbach</dc:creator>
      <dc:date>2012-07-18T12:09:28Z</dc:date>
    </item>
  </channel>
</rss>

