FortranGIS  Version2.5
type(shpfileobject) function, public shapelib::shpopen ( character(len=*), intent(in)  pszshapefile,
character(len=*), intent(in)  pszaccess 
)

It tries to open the files composing a shapefile dataset.

The filename should be provided without the extension (.shp/.shx/.dbf). It tries to open all files associated, but it does not fail if part of the files are missing, so that it is possible to work on datasets not including .shp/.shx or .dbf parts. The access mode should be "rb" for reading or "rb+" for updating a file. It returns an object of type shpfileobject to be used in the subsequent calls for obtaining both shp and dbf information from the dataset. The function should not be used for creating a shapefile dataset from scratch, in that case shpcreate should be used.

Parameters
[in]pszshapefilefilename without extension
[in]pszaccessfile access mode

Definition at line 443 of file shapelib.F90.