Changeset: eeaa6221ab47 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=eeaa6221ab47
Modified Files:
configure.ag
geom/lib/libgeom.mx
Branch: default
Log Message:
Merged from Mar2011
diffs (50 lines):
diff --git a/configure.ag b/configure.ag
--- a/configure.ag
+++ b/configure.ag
@@ -464,7 +464,7 @@
enable_strict=$enableval,
enable_strict=$dft_strict)
dnl Set compiler switches.
-dnl The idea/goal is to be as strict as possible, i.e., enable preferable
+dnl The idea/goal is to be as strict as possible, i.e., enable preferably
dnl *all* warnings and make them errors. This should help keeping the code
dnl as clean and portable as possible.
dnl It turned out, though, that this, especially turning all warnings into
diff --git a/geom/lib/libgeom.mx b/geom/lib/libgeom.mx
--- a/geom/lib/libgeom.mx
+++ b/geom/lib/libgeom.mx
@@ -58,10 +58,13 @@
@h
/* 'WKB'
+
+ http://edndoc.esri.com/arcsde/9.0/general_topics/wkb_representation.htm
+
==Geometry Type byte==
-All serialiezd geometries start with a single byte
+All serialized geometries start with a single byte
encoding geometry type (lower nibble) and flags
(higher nibble).
@@ -146,6 +149,7 @@
libgeom_init(void)
{
initGEOS((GEOSMessageHandler)GDKerror, (GEOSMessageHandler)GDKerror);
+ GEOS_setWKBByteOrder(1); /* NDR (little endian) */
printf("# MonetDB/GIS module v" VERSION " loaded\n");
fflush(stdout); /* make merovingian see this *now* */
}
@@ -241,9 +245,9 @@
const char *
geom_type2str(int t)
{
- switch(t) {
+ switch (t) {
case wkbPoint: return "Point";
- case wkbLineString: return "Line";
+ case wkbLineString: return "Line";
case wkbPolygon: return "Polygon";
case wkbMultiPoint: return "MultiPoint";
case wkbMultiLineString: return "MultiLine";
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list