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

It creates a new, empty set of files composing a shapefile dataset.

The filename should be provided without the extension (.shp/.shx/.dbf). If the files already exist, they will be overwritten. The type of shapes should be specified using one of the constants shpt_*. It returns an object of type shpfileobject to be used in the subsequent calls for populating the dataset both with shp and dbf information.

Parameters
[in]pszshapefilefilename without extension
[in]nshapetypetype of shapes in the dataset

Definition at line 486 of file shapelib.F90.