+
+- WKB: what to do with that ? do we want to keep it as a type ?
+
+- size computation functions for deserialized objects
+
- Implement lwexploded_serialize_buf for speedup of GEOS<=>POSTGIS conversion
and more!
- box extractor functions writing to a pointer or returning an actual
object should probably find a way to return NULL (for empty geometries).
-- WKB: what to do with that ? do we want to keep it as a type ?
-
- Check spheroid misure functions
o can't understand if 3d computation works since
I get same result w/ 2d and 3d.
#include "fmgr.h"
#include "utils/elog.h"
+#if USE_VERSION > 73
+# include "lib/stringinfo.h" // for binary input
+#endif
#include "lwgeom.h"
extern void deparse_hex(unsigned char str, unsigned char *result);
extern char *parse_lwgeom_wkt(char *wkt_input);
-
-// 3d or 4d. There is NOT a (x,y,m) point type!!!
-#define WKB3DOFFSET 0x80000000
-#define WKB4DOFFSET 0x40000000
-
Datum LWGEOMFromWKB(PG_FUNCTION_ARGS);
Datum WKBFromLWGEOM(PG_FUNCTION_ARGS);
{
//its WKB
//PG_RETURN_POINTER(parse_lwgeom_serialized_form(str));
- PG_RETURN_POINTER( parse_lwgeom_wkt(str) ); // this function handles wkt and wkb (in hex-form)
+ // this function handles wkt and wkb (in hex-form)
+ PG_RETURN_POINTER( parse_lwgeom_wkt(str) );
}
else if ( (start == 'P') || (start == 'L') || (start == 'M') ||
(start == 'G') || (start == 'p') || (start == 'l') ||
internallength = variable,
input = geometry_in,
output = geometry_out,
+#if USE_VERSION >= 80
+ analyze = geometry_analyze,
+#endif // USE_VERSION >= 80
storage = main
);
AS '@MODULE_FILENAME@','LWGEOM_asText'
LANGUAGE 'C' WITH (isstrict,iscachable);
-CREATEFUNCTION GeometryFromText(geometry, int4)
- RETURNS geometry
- AS '@MODULE_FILENAME@','LWGEOM_from_text'
- LANGUAGE 'C' WITH (isstrict,iscachable);
-
CREATEFUNCTION GeometryFromText(geometry)
RETURNS geometry
AS '@MODULE_FILENAME@','LWGEOM_from_text'