<?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: creating an Envelope in Kilometer unit ? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/creating-an-envelope-in-kilometer-unit/m-p/359962#M9496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Because the earth isn't flat, conversion from a linear unit to decimal degrees (and vice versa) isn't constant.&amp;nbsp; One decimal degree converted to kilometers will vary depending on where you are on the earth's surface.&amp;nbsp; One way to do a realistic conversion is to use a projected coordinate system.&amp;nbsp; Which PCS you use depends on where you are.&amp;nbsp; The process would be to project your center point to a PCS that makes sense for where you are.&amp;nbsp; Since you are wanting to convert to kilometers, a PCS that uses meters for its linear unit would make things easier (UTM for example).&amp;nbsp; After your point is projected, you can create your envelope by adding/subtracting from the center point's x,y coordinates.&amp;nbsp; Once the envelope is created, you can project it back to the original geographic coordinate system if you need to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Aug 2010 18:35:05 GMT</pubDate>
    <dc:creator>NeilClemmons</dc:creator>
    <dc:date>2010-08-31T18:35:05Z</dc:date>
    <item>
      <title>creating an Envelope in Kilometer unit ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/creating-an-envelope-in-kilometer-unit/m-p/359959#M9493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;guys , i need to create an envelope 10 x 10 kilometers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pEnvelope.PutCoords(pCenter.X - tenKM_X, pCenter.Y - tenKM_Y, pCenter.X + tenKM_X, pCenter.Y + tenKM_Y);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem is that pCenter.X and pCenter.Y is in decimal degrees. is there away to do this ??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 15:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/creating-an-envelope-in-kilometer-unit/m-p/359959#M9493</guid>
      <dc:creator>AbdulrahmanAlqasim</dc:creator>
      <dc:date>2010-08-30T15:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: creating an Envelope in Kilometer unit ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/creating-an-envelope-in-kilometer-unit/m-p/359960#M9494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can convert KM to DecimalDegrees and pass the values to the PutCoords method as shown below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IUnitConverter unitConvertorObj = new UnitConverter();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;double kmInDecimalDegrees = unitConvertorObj.ConvertUnits(10, esriUnits.esriKilometers, esriUnits.esriDecimalDegrees);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//This gives u the 10KM equivalent in DecimalDegrees.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pEnvelope.PutCoords(pCenter.X - kmInDecimalDegrees , pCenter.Y - kmInDecimalDegrees , pCenter.X + kmInDecimalDegrees , pCenter.Y + kmInDecimalDegrees );&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Beware that above statement seems to create and envelope of 20km x 20km. If u want to create 10km x 10km envelope then pass 5 in ConvertUnits method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://edndoc.esri.com/arcobjects/9.0/ComponentHelp/esriSystem/IUnitConverter.htm"&gt;http://edndoc.esri.com/arcobjects/9.0/ComponentHelp/esriSystem/IUnitConverter.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 07:46:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/creating-an-envelope-in-kilometer-unit/m-p/359960#M9494</guid>
      <dc:creator>ThavitinaiduGulivindala</dc:creator>
      <dc:date>2010-08-31T07:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: creating an Envelope in Kilometer unit ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/creating-an-envelope-in-kilometer-unit/m-p/359961#M9495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi thaviti&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you very much, i thought that will solve my problem. however now im facing strange problem which is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(using ArcMap editor) i created a horizontal&amp;nbsp; polyline of 10 km at the northern hemisphere , when i copy or move this line to the area of the equator then it gets longer , around 11.5 km. im using WGS1984 as coordinate system. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in other words, when i move this line to south it get bigger. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i need to have same length . how i can solve this problem &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is not the case when i use vertical line. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thank you&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 18:11:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/creating-an-envelope-in-kilometer-unit/m-p/359961#M9495</guid>
      <dc:creator>AbdulrahmanAlqasim</dc:creator>
      <dc:date>2010-08-31T18:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: creating an Envelope in Kilometer unit ?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/creating-an-envelope-in-kilometer-unit/m-p/359962#M9496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Because the earth isn't flat, conversion from a linear unit to decimal degrees (and vice versa) isn't constant.&amp;nbsp; One decimal degree converted to kilometers will vary depending on where you are on the earth's surface.&amp;nbsp; One way to do a realistic conversion is to use a projected coordinate system.&amp;nbsp; Which PCS you use depends on where you are.&amp;nbsp; The process would be to project your center point to a PCS that makes sense for where you are.&amp;nbsp; Since you are wanting to convert to kilometers, a PCS that uses meters for its linear unit would make things easier (UTM for example).&amp;nbsp; After your point is projected, you can create your envelope by adding/subtracting from the center point's x,y coordinates.&amp;nbsp; Once the envelope is created, you can project it back to the original geographic coordinate system if you need to.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 18:35:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/creating-an-envelope-in-kilometer-unit/m-p/359962#M9496</guid>
      <dc:creator>NeilClemmons</dc:creator>
      <dc:date>2010-08-31T18:35:05Z</dc:date>
    </item>
  </channel>
</rss>

