<?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 How to change Domain property in SpatialReferenceBuilder? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-change-domain-property-in/m-p/840487#M3770</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Domain is a read-only member of&amp;nbsp;SpatialReferenceBuilder.&amp;nbsp; But I need to&amp;nbsp;expand the coordinate system to fix out of bound during editing.&amp;nbsp; But I can not do so through Domain since it is read-only.&amp;nbsp; Is there a way to that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2019 18:18:33 GMT</pubDate>
    <dc:creator>FayuLai</dc:creator>
    <dc:date>2019-06-07T18:18:33Z</dc:date>
    <item>
      <title>How to change Domain property in SpatialReferenceBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-change-domain-property-in/m-p/840487#M3770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Domain is a read-only member of&amp;nbsp;SpatialReferenceBuilder.&amp;nbsp; But I need to&amp;nbsp;expand the coordinate system to fix out of bound during editing.&amp;nbsp; But I can not do so through Domain since it is read-only.&amp;nbsp; Is there a way to that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jun 2019 18:18:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-change-domain-property-in/m-p/840487#M3770</guid>
      <dc:creator>FayuLai</dc:creator>
      <dc:date>2019-06-07T18:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Domain property in SpatialReferenceBuilder?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-change-domain-property-in/m-p/840488#M3771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fayu,&lt;/P&gt;&lt;P&gt;We&amp;nbsp;will add a setter for the Domain property in the next release. In the meantime, you can change the xy-scale which will change the domain.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is an example:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;const&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;long&lt;/SPAN&gt; suLimit &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;9007199254740990&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Default domain for Web Mercator is xmin = -20037700, &lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// ymin = -30241100, xmax = 900699887774.099, ymax = 900689684374.099&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// with xyScale = 10000&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// To change the domain change the xyScale. This will keep the same false origin, &lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// but xmax and ymax will change.&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// Make the xyScale smaller =&amp;gt; xmax, ymax are bigger. &lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// xyScale bigger =&amp;gt; xmax, ymax are smaller.&lt;/SPAN&gt;

SpatialReferenceBuilder builder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;SpatialReferenceBuilder&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SpatialReferences&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WebMercator&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Suppose I know what I want my domain to be, then I have to figure out the scale. &lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// xyScale = suLimit / (xmax - xmin)&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// assuming that xmax - xmin = ymax - ymin i.e. domain is a square.&lt;/SPAN&gt;
&lt;SPAN class="comment token"&gt;// If xmax - xmin != ymax - ymin, take the larger of the two.&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;// Expand the default domain&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; xMin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;20037700&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; xMax &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;9007179217040.99&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; yMin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;30241100&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; yMax &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;9007169013640.99&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;double&lt;/SPAN&gt; xyScale &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; suLimit &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt; Math&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Max&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;xMax &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; xMin&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; yMax &lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt; yMin&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;// xyScale = 1000&lt;/SPAN&gt;
builder&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;XYScale &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; xyScale&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;

Envelope domain &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; builder&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Domain&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
Console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$&lt;SPAN class="string token"&gt;"xMin = {domain.XMin}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
Console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$&lt;SPAN class="string token"&gt;"xMax = {domain.XMax}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
Console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$&lt;SPAN class="string token"&gt;"yMin = {domain.YMin}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
Console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Out&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;WriteLine&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;$&lt;SPAN class="string token"&gt;"yMax = {domain.YMax}"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Annette&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:15:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-change-domain-property-in/m-p/840488#M3771</guid>
      <dc:creator>AnnetteLocke</dc:creator>
      <dc:date>2021-12-12T10:15:31Z</dc:date>
    </item>
  </channel>
</rss>

