]> granicus.if.org Git - postgis/commitdiff
Add SRID_USER_MXIMUM define
authorSandro Santilli <strk@keybit.net>
Fri, 10 Feb 2012 16:53:07 +0000 (16:53 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 10 Feb 2012 16:53:07 +0000 (16:53 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9144 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/liblwgeom.h.in

index 05162a3a6299bac00d0154c5cc8ecbe2913c9cfd..92e9d38bc9e3a133b30774eaf29de0a30a8238b6 100644 (file)
 #define TYPMOD_GET_NDIMS(typmod) (2+TYPMOD_GET_Z(typmod)+TYPMOD_GET_M(typmod))
 
 /**
-* Maximum allowed SRID value
-* Currently we are using 20 bits (1048575) of storage for SRID.
+* Maximum allowed SRID value in serialized geometry.
+* Currently we are using 21 bits (2097152) of storage for SRID.
 */
 #define SRID_MAXIMUM 999999
+
+/**
+ * Maximum valid SRID value for the user
+ * We reserve 1000 values for internal use
+ */
+#define SRID_USER_MAXIMUM 998999
+
+/** Unknown SRID value */
 #define SRID_UNKNOWN 0
 #define SRID_IS_UNKNOWN(x) ((int)x<=0)