I was hoping someone may be able to post the correct syntax to correctly define some of the parameters of the Create Tin / Topo o Raster Geoprocessors?
For example:
With Create Tin:
I can set the input vector, but do not know how to define the input fields, Softline / Hardline or Tags.
Dim GP As New Geoprocessor Dim RasConv As ESRI.ArcGIS.Analyst3DTools.TinRaster = New ESRI.ArcGIS.Analyst3DTools.TinRaster RasConv.in_tin = Label1.Text & "\" & TextBox1.Text RasConv.out_raster = Label1.Text & "\" & TextBox1.Text & "R1" Inras1 = GP.Execute(RasConv, Nothing)
According to the help:
[[in_feature_class, height_field, SF_type, tag_value],...] - can all be used to define the input feature, the height field, SF_Type and Tag_Value.
.in_features = ("C:\Temp\Tin\A" & "," & "Height Field" & "," & "Tag Field") <==Modify this as below but make sure u have these fields
in_feature_class = The feature class/shapefile you want as input
height_field = Shape.Z if you have a Z value SF_type = any of the values below masspoints ???Elevation points that will be imported as nodes hardline or softline ???Breaklines that enforce a height value hardclip or softclip ???Polygon dataset that defines the boundary of the TIN harderase or softerase ??? Polygon dataset that defines holes in the interior portions of the TIN hardreplace or softreplace ???Polygon dataset that defines areas of constant height hardvaluefill or softvaluefill ???Polygon dataset that defines tag values for the triangles based on the integer field specified in the tag_value column
tag_value = The integer field from the attribute table of the feature class that will be used when the surface feature type is set to a value fill option
Suppose I have a field in shapefile called TAGNAME
Thank you for that, I will definitely look at using the ITinWorkspace. I am however looking at using the "Geoprocessor" route as I have a number of other small Functions running that will require the same syntax as the example I provided.
I cannot find any documentation online how to define these parameters, so was hoping to find a small example of how best to do this.
Can you provide me the link to the help you are looking at for Tin to Raster Geoprocessor? Whatever parameters are available can be set using the setter methods. Look at the reference below.
.in_features = ("C:\Temp\Tin\A" & "," & "Height Field" & "," & "Tag Field") <==Modify this as below but make sure u have these fields
in_feature_class = The feature class/shapefile you want as input
height_field = Shape.Z if you have a Z value SF_type = any of the values below masspoints ???Elevation points that will be imported as nodes hardline or softline ???Breaklines that enforce a height value hardclip or softclip ???Polygon dataset that defines the boundary of the TIN harderase or softerase ??? Polygon dataset that defines holes in the interior portions of the TIN hardreplace or softreplace ???Polygon dataset that defines areas of constant height hardvaluefill or softvaluefill ???Polygon dataset that defines tag values for the triangles based on the integer field specified in the tag_value column
tag_value = The integer field from the attribute table of the feature class that will be used when the surface feature type is set to a value fill option
Suppose I have a field in shapefile called TAGNAME