<?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 DefineFromControlPoints: how do I enter all those points? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/definefromcontrolpoints-how-do-i-enter-all-those/m-p/12051#M282</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to recreate the functionality of the link table in the georeferencing toolbar. I have sets of ground control points (usually between 5 to 30 gcps for an image) and need the resulting RMS errors for a given transformation - there is no need to actually rectify the images.&lt;/P&gt;&lt;P&gt;I have trouble understanding the DefineFromControlPoints Method. &lt;/P&gt;&lt;P&gt;The documentation says. 'Defines the best affine transformation between two &lt;STRONG&gt;sets&lt;/STRONG&gt; of points'&lt;/P&gt;&lt;P&gt;but the arguments are defined as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ByRef fromPoints As IPoint&lt;/P&gt;&lt;P&gt;which I understand is &lt;STRONG&gt;one&lt;/STRONG&gt; point, not a set of points.&lt;/P&gt;&lt;P&gt;This sample (rather old, but one of the few available I found) &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fedndoc.esri.com%2Farcobjects%2F9.1%2FComponentHelp%2FesriGeometry%2FDefineFromControlPoints_Example.htm" rel="nofollow" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeometry/DefineFromControlPoints_Example.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt; states&lt;/P&gt;&lt;PRE&gt; pAffineTrans2D.DefineFromControlPoints 4, pPtFrom(0), pPtTo(0) &lt;/PRE&gt;&lt;P&gt;which appear to be single points from a point array, so again actually only one ground control point. &lt;/P&gt;&lt;P&gt;I am confused...&lt;/P&gt;&lt;P&gt;So again my question: can anybody show me how to use a &lt;STRONG&gt;set of points&lt;/STRONG&gt; with DefineFromControlPoints ?&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Axel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="syntax"&gt;&lt;STRONG&gt;ByRef&lt;/STRONG&gt; &lt;EM&gt;fromPoints&lt;/EM&gt;&lt;STRONG&gt; As &lt;/STRONG&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/002m/002m0000026v000000.htm" rel="/en/help/arcobjects-net/componenthelp/002m/002m0000026v000000.htm"&gt;IPoint&lt;/A&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2016 14:38:00 GMT</pubDate>
    <dc:creator>AxelThomas</dc:creator>
    <dc:date>2016-05-12T14:38:00Z</dc:date>
    <item>
      <title>DefineFromControlPoints: how do I enter all those points?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/definefromcontrolpoints-how-do-i-enter-all-those/m-p/12051#M282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to recreate the functionality of the link table in the georeferencing toolbar. I have sets of ground control points (usually between 5 to 30 gcps for an image) and need the resulting RMS errors for a given transformation - there is no need to actually rectify the images.&lt;/P&gt;&lt;P&gt;I have trouble understanding the DefineFromControlPoints Method. &lt;/P&gt;&lt;P&gt;The documentation says. 'Defines the best affine transformation between two &lt;STRONG&gt;sets&lt;/STRONG&gt; of points'&lt;/P&gt;&lt;P&gt;but the arguments are defined as&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ByRef fromPoints As IPoint&lt;/P&gt;&lt;P&gt;which I understand is &lt;STRONG&gt;one&lt;/STRONG&gt; point, not a set of points.&lt;/P&gt;&lt;P&gt;This sample (rather old, but one of the few available I found) &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fedndoc.esri.com%2Farcobjects%2F9.1%2FComponentHelp%2FesriGeometry%2FDefineFromControlPoints_Example.htm" rel="nofollow" target="_blank"&gt;http://edndoc.esri.com/arcobjects/9.1/ComponentHelp/esriGeometry/DefineFromControlPoints_Example.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt; states&lt;/P&gt;&lt;PRE&gt; pAffineTrans2D.DefineFromControlPoints 4, pPtFrom(0), pPtTo(0) &lt;/PRE&gt;&lt;P&gt;which appear to be single points from a point array, so again actually only one ground control point. &lt;/P&gt;&lt;P&gt;I am confused...&lt;/P&gt;&lt;P&gt;So again my question: can anybody show me how to use a &lt;STRONG&gt;set of points&lt;/STRONG&gt; with DefineFromControlPoints ?&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Axel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="syntax"&gt;&lt;STRONG&gt;ByRef&lt;/STRONG&gt; &lt;EM&gt;fromPoints&lt;/EM&gt;&lt;STRONG&gt; As &lt;/STRONG&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/002m/002m0000026v000000.htm" rel="/en/help/arcobjects-net/componenthelp/002m/002m0000026v000000.htm"&gt;IPoint&lt;/A&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 14:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/definefromcontrolpoints-how-do-i-enter-all-those/m-p/12051#M282</guid>
      <dc:creator>AxelThomas</dc:creator>
      <dc:date>2016-05-12T14:38:00Z</dc:date>
    </item>
  </channel>
</rss>

