ImportPolygons
ImportPolygons (filePath) à Array.<TBPolygon70> |
Import one or more polygons to the project in shapefile (*.shp) or polygon (*.pol)) (proprietary) format.
Note: In contrast to TerraBuilder GUI functionality, the imported polygon is not automatically attached to all layers currently in Edit mode.
Parameters
Name |
Type |
Description |
filePath |
string |
Full path to the polygon file to import. Note: In JavaScript, double slashes (\\) must be used for path strings, e.g. "C:\\Users\\Administrator\\Documents”. |
Return Value
A VBArray of TBPolygon70 representing the polygons imported.
Example
var polyArr = VBArray(project.Polygons.ImportPolygons("C:\\MyShapefile.shp")).toArray();