Create and load a personal geodatabase



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: Windows

Minimum ArcGIS Release: 9.0

How to use:
  1. Run prjCreateDatabase.exe.
  2. Enter the name of the Database to create.
  3. Enter the number of features to create.
  4. Click Create and Populate database.
  5. 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.)

Download the VB6 files
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 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