Description:
This sample creates a personal geodatabase with three feature classes for each type of geometry, and
then populates these features classes with a user specified number of features.
It is good example on how to programatically setup the basic
components of a database schema and how
to create features and add them to the database.
The executable attempts to check-out an ArcView license. It
may be necessary to change this by editing the code and
rebuilding the executable.
Products: Engine: VB6 ArcView: VB6
Platforms: WindowsMinimum ArcGIS Release: 9.0 |
How to use:
- Run prjCreateDatabase.exe.
- Enter the name of the Database to create.
- Enter the number of features to create.
- Click Create and Populate database.
- Repeat these steps, but this time select an insert cursor and notice the difference in
speed. (n.b. You will need to enter a different database name.)
| Form1.frm
|
Main Form off application |
| prjCreateDatabase.vbp |
Project for the create database executable. |
| prjCreateDatabase.exe |
Executable file for the create database sample. |
Download the VB6 files
Download the files for all languages
Key CoClasses:WorkspaceFactory, Workspace, FeatureClasss, Feature, Fields, Field, Point, Polyline, Polygon, PropertySet
Key Interfaces: IWorkspaceFactory, IWorkspace, IWorkspaceEdit, IFeatureClasss, IFeature, IFields, IField, IPoint, IPolyline, IPolygon, IPropertySet