CreateVoronoiDB()
Summary
Creates an area geographic file from a TIN with the areas of influence around each point in the TIN.
Syntax
CreateVoronoiDB(tin t, string db_name, array options)
| Argument |
Contents |
| t |
A TIN |
| db_name |
The name of the output geographic file |
| Option |
Type |
Contents |
| Layer Name |
String |
The name for the new layer |
| Label |
String |
The label for the new layer |
Example
// Open Elevdata.cdf in the Tutorial folder
layer_name = GetLayer()
elev_tin = CreateTriangulation("Airports|", {{"Field","Altitude"}})
folder = RunMacro("G30 Tutorial Folder")
CreateVoronoiDB(elev_tin, folder + "myaoi.dbd", {{"Layer Name","Areas of Influence"}})
Error Codes
| Error Type |
Meaning |
| Error |
The TIN compound variable is null, or the options are not of the required type |
See Also