lwgeom_to_wkt(LWGEOM *lwgeom)
{
char *serialized = lwgeom_serialize(lwgeom);
+ char *ret;
if ( ! serialized ) {
lwerror("Error serializing geom %p", lwgeom);
}
- char *ret = unparse_WKT(serialized, lwalloc, lwfree);
+ ret = unparse_WKT(serialized, lwalloc, lwfree);
lwfree(serialized);
return ret;
}
{
unsigned type=*geom++;
- dims = TYPE_NDIMS(type); //((type & 0x30) >> 4)+2;
char writeM=0;
+ dims = TYPE_NDIMS(type); //((type & 0x30) >> 4)+2;
if ( ! supress && !TYPE_HASZ(type) && TYPE_HASM(type) ) writeM=1;
/******************************************************************
* $Log$
+ * Revision 1.12 2004/10/21 19:48:34 strk
+ * Stricter syntax fixes. Reported by Sébastien NICAISE <snicaise@iciatechnologies.com>
+ *
* Revision 1.11 2004/10/15 07:35:41 strk
* Fixed a bug introduced by me (byteorder skipped for inner geoms in WKB)
*