It writes a shape object to a file.
It returns the number of shape written, starting from 0, or -1 in case of failure.
Definition at line 654 of file shapelib.F90.