<?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: GeometryEngine does not re-project envelop as expected in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585933#M7183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the same reboxing theory hold for projecting geometries from a projected cs to a geographic cs (e.g. ITRF_2005_Rwanda to GCS ITRF 2005). In other words, densification takes place?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 13:51:01 GMT</pubDate>
    <dc:creator>SalieghAziz</dc:creator>
    <dc:date>2016-06-23T13:51:01Z</dc:date>
    <item>
      <title>GeometryEngine does not re-project envelop as expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585929#M7179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a piece of code that converts a map extent from one projection to another using GeometryEngine.Project() function, then later convert it back to the original projection.&amp;nbsp; What I noticed is that as I do this, my extent keeps growing in size through each conversion.&amp;nbsp; Here's my sample code to demonstrate this issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SpatialReference spRef1 = _map1.SpatialReference;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SpatialReference spRef2 = _map2.SpatialReference;

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geometry extent1 = MyMapView.Extent;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Console.WriteLine("extent1:" + extent1);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geometry extent2 = GeometryEngine.Project(extent1, spRef2);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Console.WriteLine("extent2:" + extent2);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geometry extent3 = GeometryEngine.Project(extent2, spRef1);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Console.WriteLine("extent3:" + extent3);

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Geometry extent4 = GeometryEngine.Project(extent3, spRef2);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Console.WriteLine("extent4:" + extent4);&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I took the map extent and project it back and forth between the projection.&amp;nbsp; Here's e output result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;extent1:Envelope[XMin=-13657052.8897704, YMin=5704031.99454925, XMax=-13654690.3535498, YMax=5705394.14433894, Wkid=102100]&lt;/P&gt;&lt;P&gt;extent2:Envelope[XMin=7642556.79710776, YMin=683718.917830887, XMax=7648078.00265341, YMax=686989.703265818, Wkid=2913]&lt;/P&gt;&lt;P&gt;extent3:Envelope[XMin=-13657089.5657256, YMin=5703968.27772793, XMax=-13654654.0392246, YMax=5705457.8619931, Wkid=102100]&lt;/P&gt;&lt;P&gt;extent4:Envelope[XMin=7642468.43306019, YMin=683570.513830889, XMax=7648165.48222178, YMax=687138.129620944, Wkid=2913]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If projection works as expected, I would expect extent1 = extent3, and extent2 = extent4, but as you can see that is not the case.&amp;nbsp; Is there something I am missing in my understanding on how the GeometryEngine.Project() function works?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585929#M7179</guid>
      <dc:creator>HuyHo</dc:creator>
      <dc:date>2021-12-12T01:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine does not re-project envelop as expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585930#M7180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The extent is probably being "reboxed". EPSG:102100 is Web Mercator which is a cylindrical projection. Latitude and longitude lines are perpendicular and square (parallel to grid north/south and grid east/west). EPSG:2913 is a US state plane zone for Oregon that uses Lambert conformal &lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;conic projection.&lt;/SPAN&gt; Latitude and longitude lines are perpendicular, but not parallel to grid north/south and east/west lines. A rectangular extent in 102100 will be tilted slightly. If it's reboxed (find the min and max values), there will be new coordinate values. I took the original two values, found the other corners and then projected them:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-13657052.8897704 5704031.99454925&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-13654690.3533550 5705394.14433894&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-13657052.8897704 5705394.14433894&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-13654690.3533550 5704031.99454925&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unproject to lat/lon:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-122.6833934690943 43.52171365960083&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-121.6621704433817 45.53028630417766&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-122.6833934690943 45.53028630417766&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;-121.6621704433817 43.52171365960083&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Project to 2913:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;7642556.797098541 683865.1900488964&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;7648078.003092581 686843.4524277482&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;7642641.258368226 686989.7029220903&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;7647994.362606527 683718.9174751663&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;You can see that the results in 2913 are no longer rectangular. While the first x (easting) value is the smallest, the smallest y (northing) value is the last one, not the first. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma,arial,helvetica,sans-serif;"&gt;Melita&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 22:23:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585930#M7180</guid>
      <dc:creator>MelitaKennedy</dc:creator>
      <dc:date>2015-08-14T22:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine does not re-project envelop as expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585931#M7181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Melita for taking the time to explain this concept to me.&amp;nbsp; I am a SW developer, so some of this GIS stuff is sometimes over my head.&amp;nbsp; But after reading through your explanation, it does help me to understand why this happens.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 03:00:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585931#M7181</guid>
      <dc:creator>HuyHo</dc:creator>
      <dc:date>2015-08-15T03:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine does not re-project envelop as expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585932#M7182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;... And I guess I should follow up with a thought that in order to get around this 'boxing' issue with the envelope, I can instead project the 4 points that make up the corners of the envelop, then rebuild the envelop after each projection -- that should keep the extent to its original size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Aug 2015 03:06:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585932#M7182</guid>
      <dc:creator>HuyHo</dc:creator>
      <dc:date>2015-08-15T03:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine does not re-project envelop as expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585933#M7183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does the same reboxing theory hold for projecting geometries from a projected cs to a geographic cs (e.g. ITRF_2005_Rwanda to GCS ITRF 2005). In other words, densification takes place?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 13:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585933#M7183</guid>
      <dc:creator>SalieghAziz</dc:creator>
      <dc:date>2016-06-23T13:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine does not re-project envelop as expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585934#M7184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, because a PCS extent may be tipped relative to the "graticule" in lat-lon space. We treat the graticule (system of latitude-longitude lines) as if it's a flat, 2D grid, so the extent of a PCS may end up at an angle, a trapezoid, etc. after it's unprojected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Melita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 23:39:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585934#M7184</guid>
      <dc:creator>MelitaKennedy</dc:creator>
      <dc:date>2016-06-23T23:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine does not re-project envelop as expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585935#M7185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Melita, could it be just because&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;GeometryEngine.Project() works wrong - since 10.2.6 (or maybe 10.2.5) it doesn't apply the right transformations. See this post:&amp;nbsp;&lt;A href="https://community.esri.com/thread/172924"&gt;Incorrect results of GeometryEngine.Project for EPSG:31468 in 10.2.6&lt;/A&gt;&amp;nbsp; I&amp;nbsp;experience the same problem in the application I'm working on.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 11:03:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585935#M7185</guid>
      <dc:creator>DenisGlukhov2</dc:creator>
      <dc:date>2017-01-19T11:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: GeometryEngine does not re-project envelop as expected</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585936#M7186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's possible. I don't know about the geometry engine bugs (different team). If you post or send me (mkennedy at esri) &amp;nbsp;the input / output values, I can check them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Melita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 18:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/geometryengine-does-not-re-project-envelop-as/m-p/585936#M7186</guid>
      <dc:creator>MelitaKennedy</dc:creator>
      <dc:date>2017-01-19T18:28:47Z</dc:date>
    </item>
  </channel>
</rss>

