<?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 Assign Spatial Reference for Vertical Coordinate system? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/assign-spatial-reference-for-vertical-coordinate/m-p/168744#M12997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to assign the Vertical Coordinate System using a coordinate system's factory code (or authority code)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something along the lines of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14320339085422559 jive_macro_code jive_text_macro" data-renderedposition="92_8_912_16" jivemacro_uid="_14320339085422559"&gt;&lt;P&gt;arcpy.SpatialReference(105703)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for NAVD 1988 (US survey feet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SpatialReference only works for Geographic and Projected Coordinate systems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2015 11:14:14 GMT</pubDate>
    <dc:creator>JohnLay</dc:creator>
    <dc:date>2015-05-19T11:14:14Z</dc:date>
    <item>
      <title>Assign Spatial Reference for Vertical Coordinate system?</title>
      <link>https://community.esri.com/t5/python-questions/assign-spatial-reference-for-vertical-coordinate/m-p/168744#M12997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to assign the Vertical Coordinate System using a coordinate system's factory code (or authority code)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something along the lines of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14320339085422559 jive_macro_code jive_text_macro" data-renderedposition="92_8_912_16" jivemacro_uid="_14320339085422559"&gt;&lt;P&gt;arcpy.SpatialReference(105703)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for NAVD 1988 (US survey feet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SpatialReference only works for Geographic and Projected Coordinate systems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 11:14:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/assign-spatial-reference-for-vertical-coordinate/m-p/168744#M12997</guid>
      <dc:creator>JohnLay</dc:creator>
      <dc:date>2015-05-19T11:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Spatial Reference for Vertical Coordinate system?</title>
      <link>https://community.esri.com/t5/python-questions/assign-spatial-reference-for-vertical-coordinate/m-p/168745#M12998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The only thing I have noticed is the ability to use a scale factor to convert Z-values from meters to feet when converting to raster format.&amp;nbsp; I presume that you have experimented.&amp;nbsp; Did you get an error message along these lines...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
&amp;gt;&amp;gt;&amp;gt; arcpy.SpatialReference(105703)
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;interactive input&amp;gt;", line 1, in &amp;lt;module&amp;gt;
&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\arcobjects\mixins.py", line 949, in __init__
&amp;nbsp;&amp;nbsp;&amp;nbsp; self._arc_object.createFromFile(item)
RuntimeError: ERROR 999999: Error executing function.
the input is not a geographic or projected coordinate system
&amp;gt;&amp;gt;&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probably because arcmap only uses X and Y values to assess equality for spatial relationships as outlined in &lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2015/04/17/none-isntnor-is-0-or-1-more-explorations-into-geometry" target="_blank"&gt;my blog post.. &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:46:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/assign-spatial-reference-for-vertical-coordinate/m-p/168745#M12998</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2021-12-11T08:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Assign Spatial Reference for Vertical Coordinate system?</title>
      <link>https://community.esri.com/t5/python-questions/assign-spatial-reference-for-vertical-coordinate/m-p/168746#M12999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm actually trying to simplify this:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.CreateFeatureDataset_management(Test_gdb, "DoesItWork", "PROJCS['NAD_1983_2011_StatePlane_North_Carolina_FIPS_3200_Ft_US',GEOGCS['GCS_NAD_1983_2011',DATUM['NAD_1983_2011',SPHEROID['GRS_1980',6378137.0,298.257222101]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Lambert_Conformal_Conic'],PARAMETER['False_Easting',2000000.0],PARAMETER['False_Northing',0.0],PARAMETER['Central_Meridian',-79.0],PARAMETER['Standard_Parallel_1',34.3333333333333],PARAMETER['Standard_Parallel_2',36.1666666666667],PARAMETER['Scale_Factor',1.0],PARAMETER['Latitude_Of_Origin',33.75],UNIT['Foot_US',0.3048006096012192]],VERTCS['NAVD_1988 Geoid12a',VDATUM['North_American_Vertical_Datum_1988'],PARAMETER['Vertical_Shift',0.0],PARAMETER['Direction',1.0],UNIT['Foot_US',0.3048006096012192]];-121841900 -93659000 3048.00609601219;-100000 10000;-100000 10000;3.28083333333333E-03;0.001;0.001;IsHighPrecision")&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into something that is a little more manageable and less prone to error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I replace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;arcpy.CreateFeatureDataset_management(Test_gdb, "DoesItWork", "PROJCS [ ... ],VERTCS[ ... ]; ... &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;StatePlane = arcpy.SpatialReference(103122)
arcpy.CreateFeatureDataset_management(Test_gdb, "DoesItWork", "PROJCS[StatePlane], ,VERTCS[ ... ]; ...&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm halfway there. I just need to find a way to simplify the vertical spatial reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write a script that will create a feature dataset in order to create terrains. I have to do this 100 times for each of our 100 counties. But, I want the code to be easily manipulated so that it can be absorbed into other projects.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:46:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/assign-spatial-reference-for-vertical-coordinate/m-p/168746#M12999</guid>
      <dc:creator>JohnLay</dc:creator>
      <dc:date>2021-12-11T08:46:14Z</dc:date>
    </item>
  </channel>
</rss>

