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


1  infoshp
1   -o %Info Info   -f +  filename
1  -V
Info Info:

1  info
1 
2.1 check
2.1 create
1   -D database
1?   -s server
1?   -u username  -p password

Operation modes

You use the -o flag to set the operation mode for the infoshp command. Set the -o flag to one of the following options:
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

You can use the infoshp command flags to specify the following options.
-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