OptimizeDatabase()

Summary

Optimizes a standard geographic file for faster display.

Syntax

OptimizeDatabase(string geofile_name, string temp_path)

Argument Contents
geofile_name The name of the geographic file
temp_path An optional path along which a temporary copy of the database can be stored

Notes

  • OptimizeDatabase() should be used after extensive editing is performed on a standard geographic file.

  • OptimizeDatabase() requires enough scratch space to store a complete copy of the geographic file in the location of the geographic file or in the temporary directory specified by the temp_path argument.

Example

OptimizeDatabase("c:\\data\\myfiles\\districts.dbd", "d:\\temp")

Error Codes

Error Type Meaning
Error The geofile_name is invalid, or there is not enough disk space to create a copy of the database

See Also

Function Summary
SqueezeDatabase() Increases the efficiency of a standard geographic area file