*
**********************************************************************
* $Log$
+ * Revision 1.44 2004/03/10 18:46:07 strk
+ * Fixed a bug reducing the output shapes from Multipolygon tables.
+ *
* Revision 1.43 2004/03/06 17:43:06 strk
* Added RCSID string in usage output
*
rowbuflen=100;
is3d = 0;
binary = 0;
+#ifdef DEBUG
+ FILE *debug;
+#endif
if ( getenv("ROWBUFLEN") ) rowbuflen=atoi(getenv("ROWBUFLEN"));
uint32 totpoints=0;
int *part_index=NULL;
uint32 pi;
- double *x=NULL, *y=NULL, *z=NULL;
+ double *x=NULL, *y=NULL;
// skip byteOrder and type
//printf("byteOrder is %d\n", popbyte(&wkb));
//printf("Type is %d", popint(&wkb));
skipbyte(&wkb); skipint(&wkb);
-
+
/*
* Scan all polygons in multipolygon
*/
#endif
// wkb now points at first ring
- totpoints=0;
for (ri=0; ri<nrings; ri++)
{
uint32 pn; // point number
obj = SHPCreateObject(SHPT_POLYGON, shape_id, nparts,
part_index, NULL, totpoints,
- x, y, z, NULL);
+ x, y, NULL, NULL);
#if VERBOSE > 2
printf("Object created\n");
#endif
// wkb now points at first ring
- totpoints=0;
for (ri=0; ri<nrings; ri++)
{
int pn; // point number