<?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 Trying to center the map on a feature... need to convert the feature's XY? in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/trying-to-center-the-map-on-a-feature-need-to/m-p/555836#M7640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My base map is the Bing Hybrid map, and I have loaded an XY event layer with a specified a coordinate transformation (in this case esriSRProjCSType.esriSRProjCS_NAD1927SPCS_CAV).&amp;nbsp; How can I get the appropriate IPoint to pass into the CenterAt() call on the map control?&amp;nbsp; If I get the X/Y from the feature, it is the unconverted X/Y I originally gave it and not appropriate for using to create a Point for the CenterAt() call.&amp;nbsp; I looked into the transformations between systems but could not find a predefined transformation that would go between the system Bing is using and the one for which I have my X/Y data.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone give any pointers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&amp;nbsp; John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2012 20:24:50 GMT</pubDate>
    <dc:creator>RameshSivaraman</dc:creator>
    <dc:date>2012-06-11T20:24:50Z</dc:date>
    <item>
      <title>Trying to center the map on a feature... need to convert the feature's XY?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/trying-to-center-the-map-on-a-feature-need-to/m-p/555836#M7640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My base map is the Bing Hybrid map, and I have loaded an XY event layer with a specified a coordinate transformation (in this case esriSRProjCSType.esriSRProjCS_NAD1927SPCS_CAV).&amp;nbsp; How can I get the appropriate IPoint to pass into the CenterAt() call on the map control?&amp;nbsp; If I get the X/Y from the feature, it is the unconverted X/Y I originally gave it and not appropriate for using to create a Point for the CenterAt() call.&amp;nbsp; I looked into the transformations between systems but could not find a predefined transformation that would go between the system Bing is using and the one for which I have my X/Y data.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anyone give any pointers?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&amp;nbsp; John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 20:24:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/trying-to-center-the-map-on-a-feature-need-to/m-p/555836#M7640</guid>
      <dc:creator>RameshSivaraman</dc:creator>
      <dc:date>2012-06-11T20:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to center the map on a feature... need to convert the feature's XY?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/trying-to-center-the-map-on-a-feature-need-to/m-p/555837#M7641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nevermind, got it.... for anyone else struggling similarly, the trick was using the SpacialReference in the MapControl:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IPoint pt = new Point();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ISpatialReferenceFactory srFact = new SpatialReferenceEnvironment();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pt.SpatialReference = (IProjectedCoordinateSystem)srFact.CreateProjectedCoordinateSystem((int)esriSRProjCSType.esriSRProjCS_NAD1927SPCS_CAV);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pt.PutCoords(myX, myY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pt.Project(axMapControl1.SpatialReference);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; axMapControl1.CenterAt(pt);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2012 21:56:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/trying-to-center-the-map-on-a-feature-need-to/m-p/555837#M7641</guid>
      <dc:creator>RameshSivaraman</dc:creator>
      <dc:date>2012-06-11T21:56:46Z</dc:date>
    </item>
  </channel>
</rss>

