π Overview
The LOCK.INI file is a global configuration file used by GGP to store system-wide settings that apply to all users.
It defines directory paths, login authentication options, default map layers, and various operational parameters.
π Accessing the LOCK.INI File
Go to User Control.
Select the User menu.
Click LOCK.INI⦠to open it in your text editor.
π οΈ Editing the LOCK.INI File
π [Directories] β Path Locations
Stores folder paths used by GGP:
LockDir β Licence folder location.
BDEDir β Borland Database Engine location (if used).
LocalPCDir β Overrides the Home folder (see Saving of Script Images).
WebDir, WebIni β Web configuration file locations.
π‘ Tip: From GGP v2.7, you can use long folder names (e.g., Highways and Transportation). However, CopyControl will still display them in 8.3 format (HIGHWA~1). For clarity, GGP recommends sticking to 8.3 naming.
βοΈ [General] β Global System Behaviour
Key parameters include:
| Setting | Description |
|---|---|
| FileBufSize | File buffer size. |
| OSLicense | OS licence number. |
| OwnerRights | Rights setting for ownership control. |
| ScriptImageDefault | If enabled, Save Startup Image is checked by default when saving scripts. |
| PersistStandardGraph | Controls whether the Standard Graphics Overlay is cleared or retained at shutdown. |
| ActiveDirectoryAuthentication | Enables Active Directory logins. |
| PreventActiveDirAltLogin | (Default: FALSE) Blocks login for non-corporate users. |
| AutoCreateActiveDirUsers | (Default: TRUE) Creates a new user if their AD login is missing in GGP. |
| CheckAllOverlaysInAdvance | If FALSE, Setup Application wonβt check all overlays when switching tables. |
| LogFilePath | Folder location for generated log files. |
π PersistStandardGraph Behaviour
False β Reverts to the original overlay on shutdown; export data first if you wish to keep it.
True (older versions < 2.9.2) β Retains overlay.
β₯ 2.9.2 β Overlay is created dynamically and cleared unless manually exported.
MAP & VIEW β Always False.
π₯οΈ [GGPControl] β Display Settings
MaximizeOCXOnClose β TRUE/FALSE to maximise OCX on close.
π [URL_ALIASES] β URL Shortcuts
Assign short aliases to long URLs for use in process fields.
Example:
PLANAPP=http://www.asampleurl.comUsage: URL_ALIASES:PLANAPP β resolves to the full URL at runtime.
π¨ [Colour Table] β Corporate Colours
Lists pre-defined colour values shared across all users:
Colour000=
...
Colour015=π· [About] β Splash Screen
StartUpBMP β Leave blank for default splash screen, or set to a custom image path.
πΊοΈ [Gazetteers] β Default Lookup Layers
STREET β Default street gazetteer (e.g.,
OSGAZETTorODLOCATO).POSTCODE β Default postcode gazetteer (e.g.,
AddressporOSCODEPT).
Changing these updates the OS Street Data & Address Point buttons in the Gazetteer selection.
πΎ [Raster] β Basemap & Overlay Settings
Basemap β Name of raster category to be used as the basemap (CTRL+B toggle enabled).
OVERLAY_BlackThreshold, OVERLAY_BlackPixels, OVERLAY_NearlyBlack β Fine-tune raster overlay display.
ποΈ Background Information
The LOCK.INI file is essential for all GGP modules.
On startup, GGP searches for LOCK.INI in the execution folder, then in the parent folder.
If found, GGPDir is set and stored in the local GGP.INI fileβs
[Directories]section.If GGP is run from outside the GGPDir folder, it reads GGP.INI β GGPDir for location.
3rd party apps should also use this method to find the GGPDir path.
π Typical LOCK.INI Template
[Directories]
LockDir=
BDEDir=
LocalPCDir=
WebDir=
WebIni=
[General]
FileBufSize=
OSLicense=
OwnerRights=
ScriptImageDefault=
PersistStandardGraph=
ActiveDirectoryAuthentication=
CheckAllOverlaysInAdvance=
LogFilePath=
[GGPControl]
MaximizeOCXOnClose=True
[URL_ALIASES]
AliasName=
[Colour Table]
Colour000=
...
Colour016=
[About]
StartUpBMP=
[Gazetteers]
Street=
Postcode=
[Raster]
Basemap=
OVERLAY_BlackThreshold= {where OVERLAY is the overlay name}
OVERLAY_BlackPixels=
OVERLAY_NearlyBlack=
Comments
0 comments
Article is closed for comments.