[postgis-devel] Why do we use has_z and has_m all the time instead of n_dims

Nicklas Avén nicklas.aven at jordogskog.no
Wed Oct 8 06:10:14 PDT 2014


Hallo

I am looking at http://trac.osgeo.org/postgis/ticket/2917 to create a
twkb reader

I find myself doing som ugly steps to fit into the api with has_z and
has_m.

Why do we handle third and fourth dimension as z and m internally when
creating a point array?

I am thinking about the functions in ptarray.c

I guess I miss something and just don't see the reason.

/Nicklas





More information about the postgis-devel mailing list