[postgis-devel] NEW setPoint4d() in lwgeom api

strk at refractions.net strk at refractions.net
Fri Dec 2 01:33:32 PST 2005


I've exported a setPoint4d() function produced
for LRS functions.

The setPoint4d() function abstract pointarray
dimensions so that callers don't have to bother
about this.

For example, whatever dimensions a POINTARRAY
have you can always do something like:

	POINT4D buf;
	POINTARRAY *pa=<get_from_lwgeom>;
	unsigned int N=<an offset>;

	getPoint4d_p(pa, N, &buf);
	doSomethingToPoint4d(&buf);
	setPoint4d(pa, N, &buf);

setPoint4d will discard dimensions not supported
by the pointarray and appropriately align the supported
ones.

--strk; 

 /"\    ASCII Ribbon Campaign
 \ /    Respect for open standards
  X     No HTML/RTF in email
 / \    No M$ Word docs in email




More information about the postgis-devel mailing list