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

A simple program that get the SRID of the geometries stored in the file ways.csv that has the content of the PostgreSQL table ways defined as follows. More...

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

Data Structures

struct  ways_record
 

Macros

#define MAX_LENGTH_GEOM   100001
 
#define MAX_LENGTH_HEADER   1024
 
#define NO_WAYS_BATCH   10
 
#define ROUTE   20
 

Functions

int main (void)
 

Detailed Description

A simple program that get the SRID of the geometries stored in the file ways.csv that has the content of the PostgreSQL table ways defined as follows.

CREATE TABLE public.ways (
gid bigint NOT NULL,
the_geom public.geometry NOT NULL,
length double precision NOT NULL
);

The program can be build as follows

gcc -Wall -g -I/usr/local/include -o route_exists route_exists.c -L/usr/local/lib -lmeos
bool route_exists(int64 rid)
Return true if the edge table contains a route with the route identifier.
Definition: npoint.c:234