Skip to content

Instantly share code, notes, and snippets.

View peterstace's full-sized avatar

Peter Stace peterstace

View GitHub Profile
@peterstace
peterstace / geos_op.c
Created October 28, 2020 19:19
Example of how to use GEOS to do a single binary operation
#include "/usr/include/geos_c.h"
#include <stdio.h>
void messageHandler(const char *fmt, ...) {
printf(fmt);
}
int main() {
GEOSContextHandle_t handle = initGEOS_r(messageHandler, messageHandler);