<?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 arcpy.SpatialReference for Terrain Image Service and Mosaic Dataset in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-spatialreference-for-terrain-image-service/m-p/1501359#M70984</link>
    <description>&lt;P&gt;Hello dev.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a Terrain Image Service SD file using ArcPy. I do this by creating a Geodatabase.gdb file and then add a Mosaic Dataset inside it and then add DEM (.tif) file(s) into the dataset.&lt;/P&gt;&lt;P&gt;My problem is when I define the "coordinate_system" in arcpy.CreateMosaicDataset_management, it will cause "Warning 001003: Datum conflict between input and output." down the line when I call&amp;nbsp;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;management&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AnalyzeMosaicDataset. How do I fix the wkt string?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the spatial reference section of one of my DEM files' properties in ArcGIS Pro:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (103).png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108778i0D84033A6139CA7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot (103).png" alt="Screenshot (103).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my current code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;wkt = """
    GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],
    PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],
    VERTCS['EGM2008',VDATUM['EGM2008'],
    PARAMETER['Vertical_Shift',0.0],PARAMETER['Direction',1.0],UNIT['Meter',1.0]];
"""

sr = arcpy.SpatialReference(text=wkt)

mosaicDataset = arcpy.CreateMosaicDataset_management(GDBPath, "MosaicDataset",coordinate_system=sr,num_bands=1, pixel_type="32_BIT_FLOAT")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jul 2024 21:44:24 GMT</pubDate>
    <dc:creator>oookokkookookk</dc:creator>
    <dc:date>2024-07-03T21:44:24Z</dc:date>
    <item>
      <title>arcpy.SpatialReference for Terrain Image Service and Mosaic Dataset</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-spatialreference-for-terrain-image-service/m-p/1501359#M70984</link>
      <description>&lt;P&gt;Hello dev.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create a Terrain Image Service SD file using ArcPy. I do this by creating a Geodatabase.gdb file and then add a Mosaic Dataset inside it and then add DEM (.tif) file(s) into the dataset.&lt;/P&gt;&lt;P&gt;My problem is when I define the "coordinate_system" in arcpy.CreateMosaicDataset_management, it will cause "Warning 001003: Datum conflict between input and output." down the line when I call&amp;nbsp;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;management&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;AnalyzeMosaicDataset. How do I fix the wkt string?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the spatial reference section of one of my DEM files' properties in ArcGIS Pro:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot (103).png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/108778i0D84033A6139CA7D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot (103).png" alt="Screenshot (103).png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is my current code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;wkt = """
    GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],
    PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],
    VERTCS['EGM2008',VDATUM['EGM2008'],
    PARAMETER['Vertical_Shift',0.0],PARAMETER['Direction',1.0],UNIT['Meter',1.0]];
"""

sr = arcpy.SpatialReference(text=wkt)

mosaicDataset = arcpy.CreateMosaicDataset_management(GDBPath, "MosaicDataset",coordinate_system=sr,num_bands=1, pixel_type="32_BIT_FLOAT")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 21:44:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-spatialreference-for-terrain-image-service/m-p/1501359#M70984</guid>
      <dc:creator>oookokkookookk</dc:creator>
      <dc:date>2024-07-03T21:44:24Z</dc:date>
    </item>
  </channel>
</rss>

