The infoshp utility
The infoshp utility reports information extracted from headers of the .shp, .shx, and .dbf files that make up ESRI shapefiles. It also detects the presence of optional .prj files that may be associated with ESRI shapefiles and reports the coordinate system information. The infoshp utility can check for spatial_references table entries that are qualified to load one or more shapefiles. If no spatial reference exists that can be used to load the specified shapefiles, the infoshp utility can create a new entry in the spatial_references table for loading the shapefiles.
Syntax
Operation modes
- check
- Checks for spatial_references table entries that are qualified to load the specified shapefiles.
- create
- Creates a new entry in the spatial_references table for loading the specified shapefiles.
- info
- Reports information extracted from the headers of the .shp, .shx, .dbf, and optional .prj files associated with the specified shapefiles.
Command-line switches
- -D
- The database name
- -f
- The path and name of one or more ESRI shapefiles to process
- -p
- (optional) The HCL®
OneDB® password
If you specify the -p option, you must also specify the -u option.
- -s (optional)
- The HCL
OneDB server
Defaults to the value of the INFORMIXSERVER environment variable
- -u (optional)
- The HCL
OneDB user
name
If you specify the -u option, you must also specify the -p option.
- -V
- Prints version information for this utility