*
**********************************************************************
* $Log$
+ * Revision 1.48 2004/05/13 11:59:08 strk
+ * Fixed bug in 3d features handling.
+ *
* Revision 1.47 2004/04/21 09:13:15 strk
* Attribute names escaping mechanism added. You should now
* be able to dump a shapefile equal to the one loaded.
{
byte *ptr = str;
uint32 type;
- int is3d;
+ //int is3d;
// skip byte order
skipbyte(&ptr);
// get type
type = getint(ptr);
- is3d = type&WKB3DOFFSET;
+ //is3d = type&WKB3DOFFSET;
+ type &= ~WKB3DOFFSET;
switch(type)
{
return create_multipoint2D_WKB(str, idx);
default:
- fprintf(stderr, "Unknown WKB type (%lu) - (%s:%d)\n",
+ fprintf(stderr, "Unknown WKB type (%8.8lx) - (%s:%d)\n",
type, __FILE__, __LINE__);
return NULL;
}