FortranGIS  Version2.5
type(shpobject) function, target, public shapelib::shpreadobject ( type(shpfileobject), intent(inout)  hshp,
integer  ishape 
)

It reads a single shape from a shapefile.

This function reads a single shape from a shapefile dataset (only .shp/.shx part) and it returns an object of type shpobject containing all the information read. The value of ishape should be in the range 0, nentites (as returned from shpgetinfo). The shape object returned should be destroyed with the shpdestroyobject subroutine before being reused, in order to avoid memory leaks.

Parameters
[in,out]hshpshapefile object to read from
ishapenumber of shape to be read

Definition at line 538 of file shapelib.F90.