FortranGIS  Version2.5
subroutine, public shapelib::shpcomputeextents ( type(shpobject), target  psobject)

It recomputes the extents of a shape.

This subroutine replaces the existing values of the dfXMin, dfYMin, dfZMin, dfMMin, dfXMax, dfYMax, dfZMax, and dfMMax with updated values based on the current set of vertices for the shape. It is automatically called by shpcreateobject, but if the vertices of an existing object are altered it should be called again to fix up the extents.

Parameters
psobjectshape object to update

Definition at line 643 of file shapelib.F90.