[GRASS-SVN] r51112 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Mar 19 15:13:07 EDT 2012
Author: mmetz
Date: 2012-03-19 12:13:07 -0700 (Mon, 19 Mar 2012)
New Revision: 51112
Modified:
grass/trunk/lib/vector/Vlib/write_pg.c
Log:
Vlib write_pg: LITTLE_ENDIAN -> ENDIAN_LITTLE
Modified: grass/trunk/lib/vector/Vlib/write_pg.c
===================================================================
--- grass/trunk/lib/vector/Vlib/write_pg.c 2012-03-19 15:29:08 UTC (rev 51111)
+++ grass/trunk/lib/vector/Vlib/write_pg.c 2012-03-19 19:13:07 UTC (rev 51112)
@@ -312,7 +312,7 @@
See OGRPoint::exportToWkb from GDAL/OGR library
- \param byte_order byte order (LITTLE_ENDIAN or BIG_ENDIAN)
+ \param byte_order byte order (ENDIAN_LITTLE or BIG_ENDIAN)
\param points feature geometry
\param with_z WITH_Z for 3D data
\param[out] nsize buffer size
@@ -338,7 +338,7 @@
G_debug(5, "\t->point size=%d (with_z = %d)", *nsize, with_z);
/* set the byte order */
- if (byte_order == LITTLE_ENDIAN)
+ if (byte_order == ENDIAN_LITTLE)
wkb_data[0] = '\001';
else
wkb_data[0] = '\000';
@@ -346,7 +346,7 @@
/* set the geometry feature type */
sf_type = with_z ? SF_POINT25D : SF_POINT;
- if (byte_order == LITTLE_ENDIAN)
+ if (byte_order == ENDIAN_LITTLE)
sf_type = LSBWORD32(sf_type);
else
sf_type = MSBWORD32(sf_type);
@@ -377,7 +377,7 @@
See OGRLineString::exportToWkb from GDAL/OGR library
- \param byte_order byte order (LITTLE_ENDIAN or BIG_ENDIAN)
+ \param byte_order byte order (ENDIAN_LITTLE or ENDIAN_BIG)
\param points feature geometry
\param with_z WITH_Z for 3D data
\param[out] nsize buffer size
@@ -405,7 +405,7 @@
G_debug(5, "\t->linestring size=%d (with_z = %d)", *nsize, with_z);
/* set the byte order */
- if (byte_order == LITTLE_ENDIAN)
+ if (byte_order == ENDIAN_LITTLE)
wkb_data[0] = '\001';
else
wkb_data[0] = '\000';
@@ -413,7 +413,7 @@
/* set the geometry feature type */
sf_type = with_z ? SF_LINESTRING25D : SF_LINESTRING;
- if (byte_order == LITTLE_ENDIAN)
+ if (byte_order == ENDIAN_LITTLE)
sf_type = LSBWORD32(sf_type);
else
sf_type = MSBWORD32(sf_type);
@@ -454,7 +454,7 @@
See OGRPolygon::exportToWkb from GDAL/OGR library
- \param byte_order byte order (LITTLE_ENDIAN or BIG_ENDIAN)
+ \param byte_order byte order (ENDIAN_LITTLE or ENDIAN_BIG)
\param points feature geometry
\param with_z WITH_Z for 3D data
\param[out] nsize buffer size
@@ -484,7 +484,7 @@
G_debug(5, "\t->polygon size=%d (with_z = %d)", *nsize, with_z);
/* set the byte order */
- if (byte_order == LITTLE_ENDIAN)
+ if (byte_order == ENDIAN_LITTLE)
wkb_data[0] = '\001';
else
wkb_data[0] = '\000';
@@ -492,7 +492,7 @@
/* set the geometry feature type */
sf_type = with_z ? SF_POLYGON25D : SF_POLYGON;
- if (byte_order == LITTLE_ENDIAN)
+ if (byte_order == ENDIAN_LITTLE)
sf_type = LSBWORD32(sf_type);
else
sf_type = MSBWORD32(sf_type);
@@ -567,7 +567,7 @@
return -1;
}
- byte_order = LITTLE_ENDIAN; /* ? */
+ byte_order = ENDIAN_LITTLE; /* TODO: get endianness for system from dig__byte_order_out()? */
/* get wkb data */
nbytes = -1;
More information about the grass-commit
mailing list