|
◆ shpgetinfo()
subroutine, public shpgetinfo |
( |
type(shpfileobject), intent(in) | hshp, |
|
|
integer, intent(out) | nentities, |
|
|
integer, intent(out) | shapetype, |
|
|
real(kind=c_double), dimension(4), intent(out) | minbound, |
|
|
real(kind=c_double), dimension(4), intent(out) | maxbound, |
|
|
integer, intent(out) | dbffieldcount, |
|
|
integer, intent(out) | dbfrecordcount ) |
It gets information about the shapefile database, including dbf.
If a part of the dataset has not been correctly opened (e.g. .shp/.shx or .dbf files), the corresponding information, in particular nentities or dbfrecordcount will be zero. - Parameters
-
[in] | hshp | shapefile object to query |
[out] | nentities | number of shapes |
[out] | shapetype | type of shapes in the file, one of the shpt_* constants |
[out] | minbound | lower bounds of shape values |
[out] | maxbound | upper bounds of shape values |
[out] | dbffieldcount | number of dbf fields |
[out] | dbfrecordcount | number of dbf records, it should be equal to nentities, but it is not guaranteed |
Definition at line 500 of file shapelib.F90.
|