<?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 Create TIN out of Raster with berrier polyline in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/create-tin-out-of-raster-with-berrier-polyline/m-p/1054579#M61037</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;At the moment I'm creating a Toolbox for the visualization of subsurface 3D models. For that I would like to work with TINs. When I do the workflow manually it works perfectly fine. But with my code I have a problem and I don't understand it.&lt;/P&gt;&lt;P&gt;Here is the code for going through my shapefiles, create rasters out of them with the use of the geological map outlines. The output for the raster is correct, it's perfectly in the shape of the geological map. But the TIN is created as a square. As mentioned before, when I do the steps one after another in ArcPro the TIN is also created in the shape of the geological map.&lt;/P&gt;&lt;P&gt;shpFileList = arcpy.ListFiles("*.shp")&lt;BR /&gt;for shpFile in shpFileList:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out_location = arcpy.GetParameterAsText(6)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToGeodatabase_conversion(shpFile,out_location)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; zField = "Extrusion"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; shpFileName = os.path.splitext(shpFile)[0]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; outRaster = shpFileName + "out.img"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.Idw_3d(shpFile,zField, outRaster,in_barrier_polyline_features=geo_line_out)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.RasterToGeodatabase_conversion(outRaster,out_location)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out_TIN = shpFileName + "tin"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.RasterTin_3d(outRaster, out_TIN)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe anybody can see the mistake?&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;</description>
    <pubDate>Wed, 05 May 2021 11:17:17 GMT</pubDate>
    <dc:creator>Nicola</dc:creator>
    <dc:date>2021-05-05T11:17:17Z</dc:date>
    <item>
      <title>Create TIN out of Raster with berrier polyline</title>
      <link>https://community.esri.com/t5/python-questions/create-tin-out-of-raster-with-berrier-polyline/m-p/1054579#M61037</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;At the moment I'm creating a Toolbox for the visualization of subsurface 3D models. For that I would like to work with TINs. When I do the workflow manually it works perfectly fine. But with my code I have a problem and I don't understand it.&lt;/P&gt;&lt;P&gt;Here is the code for going through my shapefiles, create rasters out of them with the use of the geological map outlines. The output for the raster is correct, it's perfectly in the shape of the geological map. But the TIN is created as a square. As mentioned before, when I do the steps one after another in ArcPro the TIN is also created in the shape of the geological map.&lt;/P&gt;&lt;P&gt;shpFileList = arcpy.ListFiles("*.shp")&lt;BR /&gt;for shpFile in shpFileList:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out_location = arcpy.GetParameterAsText(6)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.FeatureClassToGeodatabase_conversion(shpFile,out_location)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; zField = "Extrusion"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; shpFileName = os.path.splitext(shpFile)[0]&lt;BR /&gt;&amp;nbsp;&amp;nbsp; outRaster = shpFileName + "out.img"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.Idw_3d(shpFile,zField, outRaster,in_barrier_polyline_features=geo_line_out)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.RasterToGeodatabase_conversion(outRaster,out_location)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; out_TIN = shpFileName + "tin"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; arcpy.RasterTin_3d(outRaster, out_TIN)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe anybody can see the mistake?&lt;/P&gt;&lt;P&gt;Best Regards!&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 11:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/create-tin-out-of-raster-with-berrier-polyline/m-p/1054579#M61037</guid>
      <dc:creator>Nicola</dc:creator>
      <dc:date>2021-05-05T11:17:17Z</dc:date>
    </item>
  </channel>
</rss>

