kgeom_object *
kgeom_new_location_dim(
kgeom_object *object,
int new_location_dim)
none
Specifically, this routine will adjust the size of the location vectors in each primitive of the given object to the requested location dimensionailty.
This function is intended to simplify processing. For example, a routine which only wants 2D location data can use this function to guarantee that the geometry it will process has only 2D data.
The cast geometry object is a distinct from the original geometry object; it is constructed by first making a copy of the original geometry object and then resizing all the location vectors. The original object will be destroyed after the copy. If there are no changes necessary, then the original object will be returned.
none
none
$DATASERV/objects/library/kgeom/src/cast.c