MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
get_srid_ways.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
 

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 get_srid_ways get_srid_ways.c -L/usr/local/lib -lmeos
int32_t get_srid_ways(void)
Return the SRID of the routes in the ways table.
Definition: npoint.c:124