<?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: BaseCustomLayer Draw() use of IProjectedCoordinateSystem5 in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/basecustomlayer-draw-use-of/m-p/93225#M2484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Additional Note:&amp;nbsp; In the debugger, the Display.DisplayTransformation.SpatialReference member does not seem have the correct value.&amp;nbsp; The debugger shows the reference as that of "System.__ComObject".&amp;nbsp; On the working system the debugger correctly shows the object is an ESRI.ArcGIS.Geometry.ProjectedCoordinateSystemClass.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2012 20:35:44 GMT</pubDate>
    <dc:creator>ScottMcNeil</dc:creator>
    <dc:date>2012-04-11T20:35:44Z</dc:date>
    <item>
      <title>BaseCustomLayer Draw() use of IProjectedCoordinateSystem5</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/basecustomlayer-draw-use-of/m-p/93224#M2483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Using Arc 9.3.1 &amp;amp; VS2008.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having trouble with converting spatial reference to PCS on a new development system only.&amp;nbsp; This worked fine on my previous development system (XP), and works fine on a production system (Win7).&amp;nbsp; But on the new system the conversion to PCS below always returns a null object reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public override void Draw(ESRI.ArcGIS.esriSystem.esriDrawPhase drawPhase, IDisplay Display, ESRI.ArcGIS.esriSystem.ITrackCancel trackCancel)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!m_bValid || !m_visible)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (drawPhase != ESRI.ArcGIS.esriSystem.esriDrawPhase.esriDPGeography)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IProjectedCoordinateSystem5 pcs5 = Display.DisplayTransformation.SpatialReference as IProjectedCoordinateSystem5;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // then the work is done which just puts markers on the map&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas on why this is broken on my new development system?&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you if you can help!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 18:11:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/basecustomlayer-draw-use-of/m-p/93224#M2483</guid>
      <dc:creator>ScottMcNeil</dc:creator>
      <dc:date>2012-04-11T18:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: BaseCustomLayer Draw() use of IProjectedCoordinateSystem5</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/basecustomlayer-draw-use-of/m-p/93225#M2484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Additional Note:&amp;nbsp; In the debugger, the Display.DisplayTransformation.SpatialReference member does not seem have the correct value.&amp;nbsp; The debugger shows the reference as that of "System.__ComObject".&amp;nbsp; On the working system the debugger correctly shows the object is an ESRI.ArcGIS.Geometry.ProjectedCoordinateSystemClass.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2012 20:35:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/basecustomlayer-draw-use-of/m-p/93225#M2484</guid>
      <dc:creator>ScottMcNeil</dc:creator>
      <dc:date>2012-04-11T20:35:44Z</dc:date>
    </item>
  </channel>
</rss>

