FortranGIS Version 3.0

◆ shpcreatesimpleobject()

type(shpobject) function, target, public shpcreatesimpleobject ( integer nshptype,
integer nvertices,
real(kind=c_double), dimension(nvertices) padfx,
real(kind=c_double), dimension(nvertices) padfy,
real(kind=c_double), dimension(nvertices), optional padfz )

It creates a new shape object, simple version.

It creates a new shape object and returns it as a variable of type shpobject; the object has x,y,z coordinates with no measure and a single part. The successful creation can be checked with the function shpisnull.

Parameters
nshptypetype of shape, one of the shpt_* constants
nverticesnumber of vertices
padfxx coordinates
padfyy coordinates
padfzz coordinates, it can be skipped

Definition at line 588 of file shapelib.F90.