MobilityDB  1.0
Functions | Variables
projection_gk.c File Reference

Implementation of the Gauss-Krueger projection that is used in Secondo. More...

#include "point/projection_gk.h"
#include <liblwgeom.h>
#include "general/temporaltypes.h"
#include "general/tempcache.h"
#include "general/lifting.h"
#include "point/postgis.h"
#include "point/tpoint.h"
#include "point/tpoint_spatialfuncs.h"
Include dependency graph for projection_gk.c:

Functions

static POINT2D BesselBLToGaussKrueger (double b, double ll)
 
static POINT3D HelmertTransformation (double x, double y, double z)
 
static double newF (double f, double x, double y, double p)
 
static POINT3D BLRauenberg (double x, double y, double z)
 
static Datum point2d_get_datum (const POINT2D *p2d)
 Get Datum from 2D point. More...
 
static Datum gk (Datum point)
 Transform a point into the Gauss-Kruger projection used in Secondo. More...
 
static GSERIALIZED * geometry_transform_gk_internal (GSERIALIZED *gs)
 Transform a geometry into the Gauss-Kruger projection used in Secondo. More...
 
PGDLLEXPORT Datum geometry_transform_gk (PG_FUNCTION_ARGS)
 Transform a geometry into the Gauss-Krueger projection used in Secondo. More...
 
PGDLLEXPORT Datum tgeompoint_transform_gk (PG_FUNCTION_ARGS)
 Transform a temporal point into the Gauss-Krueger projection used in Secondo. More...
 

Variables

double Pi = 3.1415926535897932384626433832795028841971693993751058209749445923078164
 
double awgs = 6378137.0
 
double bwgs = 6356752.314
 
double abes = 6377397.155
 
double bbes = 6356078.962
 
double cbes = 111120.6196
 
double dx = -585.7
 
double dy = -87.0
 
double dz = -409.2
 
double rotx = 2.540423689E-6
 
double roty = 7.514612057E-7
 
double rotz = -1.368144208E-5
 
double sc = 0.99999122
 
double h1 = 0
 
double eqwgs = 0
 
double eqbes = 0
 
double MDC = 2.0
 

Detailed Description

Implementation of the Gauss-Krueger projection that is used in Secondo.

This projection does not correspond to any standard projection in http://www.epsg.org/. This projection is provided to enable the comparison of MobilityDB and Secondo.