MobilityDB 1.3
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
geom_npoint.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 <float.h>
#include <meos.h>
#include <meos_geo.h>
#include <meos_npoint.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 geom_npoint geom_npoint.c -L/usr/local/lib -lmeos