MobilityDB 1.3
Loading...
Searching...
No Matches
Functions
geos_clip.c File Reference

A program that shows the connection of MEOS and GEOS. More...

#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <geos_c.h>
#include <meos.h>
#include <meos_geo.h>
#include <meos_internal.h>

Functions

static void geos_message_handler (const char *fmt,...)
 
int main ()
 

Detailed Description

A program that shows the connection of MEOS and GEOS.

It computes the the intersection of a MEOS temporal point and a prepared GEOS polygon

Note
This program is based on the GEOS C API example 2 at the address https://github.com/libgeos/geos/blob/main/examples/capi_prepared.c

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o geos_clip geos_clip.c -L/usr/local/lib -lmeos -lgeos_c