MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
02_ais_read.c File Reference

A simple program that reads AIS data from a CSV file and outputs a few of these records converted into temporal values. More...

#include <stdio.h>
#include <stdlib.h>
#include <meos.h>
#include <meos_geo.h>

Data Structures

struct  AIS_record
 

Macros

#define MAX_LENGTH_HEADER   1024
 
#define MAX_LENGTH_POINT   64
 
#define MAX_LENGTH_TIMESTAMP   32
 

Functions

int main (void)
 

Detailed Description

A simple program that reads AIS data from a CSV file and outputs a few of these records converted into temporal values.

In the input file located in the data/ subdirectory it is assumed that

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o 02_ais_read 02_ais_read.c -L/usr/local/lib -lmeos