projects
/
postgis
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea9fd3e
)
Added macros for LWGEOM.type manipulation
author
Sandro Santilli
<strk@keybit.net>
Wed, 25 Aug 2004 15:26:24 +0000
(15:26 +0000)
committer
Sandro Santilli
<strk@keybit.net>
Wed, 25 Aug 2004 15:26:24 +0000
(15:26 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@748
b70326c6
-7e19-0410-871a-
916f4a2858ee
lwgeom/lwgeom.h
patch
|
blob
|
history
diff --git
a/lwgeom/lwgeom.h
b/lwgeom/lwgeom.h
index f9a4d19723b3c1bdf16ee796a29f34ddbc24a147..e505cea7b3e24a7fe7da47d3087af2a5eb3857b7 100644
(file)
--- a/
lwgeom/lwgeom.h
+++ b/
lwgeom/lwgeom.h
@@
-142,6
+142,12
@@
WHERE
*/
+#define TYPE_SETTYPE(c,t) (((c)&0xF0)|t)
+#define TYPE_SETDIMS(c,d) (((c)&0xCF)|d)
+#define TYPE_SETHASBBOX(c,b) (((c)&0x7F)|b)
+#define TYPE_SETHASSRID(c,s) (((c)&0xBF)|s)
+
+
// already defined in postgis.h
#define POINTTYPE 1