<?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: UTM Projected Coordinate System - set units to feet in ArcObjects in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/utm-projected-coordinate-system-set-units-to-feet/m-p/125225#M3297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This was answered for me in the geoprocessing forum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/90186-Use-ArcObjects-to-change-units-from-meters-to-feet-in-UTM_Zone_13N"&gt;http://forums.arcgis.com/threads/90186-Use-ArcObjects-to-change-units-from-meters-to-feet-in-UTM_Zone_13N&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2013 22:30:51 GMT</pubDate>
    <dc:creator>PaulDavidson1</dc:creator>
    <dc:date>2013-08-08T22:30:51Z</dc:date>
    <item>
      <title>UTM Projected Coordinate System - set units to feet in ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/utm-projected-coordinate-system-set-units-to-feet/m-p/125224#M3296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I inhereted an ArcObject system in 9.3 that reads in a csv file of XY locations and converts it into our state plane coord system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Recently the csv source went from NAD_27 to NAD_1983 w/ UTM_ZONE13N.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am close to getting this to work but my problem (I think) is that the csv file has XY coordinates in feet (US I believe) and the standard UTM_ZONE_13N coord system is expressed in meters. Yes, this is odd but it is what it is. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have verified that most of code is correct by using ArcGIS to convert my raw data back to meters, hacking the code to read that file, etc... &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcGIS I can modify the coord system to be in feet and project the points correctly but in the ArcObject code I cannot figure out anyway to do this. Is this via ScaleFactor ? Resolution ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what I think is the pertinent code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim spatialReferenceFactory As ISpatialReferenceFactory = New SpatialReferenceEnvironmentClass()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim projectedCS As IProjectedCoordinateSystem = spatialReferenceFactory.CreateProjectedCoordinateSystem(CInt(Fix(esriSRProjCSType.esriSRProjCS_NAD1983UTM_13N)))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim tempSR As ISpatialReference = TryCast(projectedCS, ISpatialReference)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; tempSR.SetDomain(-16800800, 2955095154692.94, -32802000, 2955095154692.94)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; tempSR.SetMDomain(-100000, 2955095154692.94)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; tempSR.SetZDomain(-100000, 2955095154692.94)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ' somewhere in here I want to set the SR to be using units of feet &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dim spatialRefResolution As ISpatialReferenceResolution = TryCast(tempSR, ISpatialReferenceResolution)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; spatialRefResolution.XYResolution(False) = 0.000328083333333&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Dim spatialRefTolerance As ISpatialReferenceTolerance = TryCast(spatialRefResolution, ISpatialReferenceTolerance)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; spatialRefTolerance.XYTolerance = 0.000328083333333&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;toFeatureWorkspace.CreateFeatureDataset(datasetFullName, tempSR) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way to set the projectedCS to be in Foot_US ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also don't see why tempSR is being used as opposed to projectedCS.SetDomain, etc...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Looks like all tempSR does is take up extra memory. Maybe I'm missing something.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my first venture in ArcObjects so it's a lot to take in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The code is probably overly complicated but it is what it is for now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this the appropriate forum for this post ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 15:33:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/utm-projected-coordinate-system-set-units-to-feet/m-p/125224#M3296</guid>
      <dc:creator>PaulDavidson1</dc:creator>
      <dc:date>2013-08-08T15:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: UTM Projected Coordinate System - set units to feet in ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/utm-projected-coordinate-system-set-units-to-feet/m-p/125225#M3297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This was answered for me in the geoprocessing forum:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums.arcgis.com/threads/90186-Use-ArcObjects-to-change-units-from-meters-to-feet-in-UTM_Zone_13N"&gt;http://forums.arcgis.com/threads/90186-Use-ArcObjects-to-change-units-from-meters-to-feet-in-UTM_Zone_13N&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2013 22:30:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/utm-projected-coordinate-system-set-units-to-feet/m-p/125225#M3297</guid>
      <dc:creator>PaulDavidson1</dc:creator>
      <dc:date>2013-08-08T22:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: UTM Projected Coordinate System - set units to feet in ArcObjects</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/utm-projected-coordinate-system-set-units-to-feet/m-p/1185121#M20485</link>
      <description>&lt;P&gt;This link doesn't work.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 16:14:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/utm-projected-coordinate-system-set-units-to-feet/m-p/1185121#M20485</guid>
      <dc:creator>hparis</dc:creator>
      <dc:date>2022-06-22T16:14:44Z</dc:date>
    </item>
  </channel>
</rss>

