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

A simple program that reads the spatial_ref_sys.csv file obtained by exporting the PostGIS spatial_ref_sys table in CSV format. More...

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

Data Structures

struct  PjStrs
 Utility structure to get many potential string representations from spatial_ref_sys query. More...
 

Macros

#define MAX_LENGTH_HEADER   1024
 
#define maxprojlen   512
 
#define SPATIAL_REF_SYS   "/usr/local/lib/spatial_ref_sys.csv"
 
#define spibufferlen   512
 

Functions

static PjStrs GetProjStringsSPI (int32_t srid)
 
int main ()
 

Detailed Description

A simple program that reads the spatial_ref_sys.csv file obtained by exporting the PostGIS spatial_ref_sys table in CSV format.

The program can be build as follows

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