RAVE
pyprojectionregistry.c File Reference

Python version of the Projection registry. More...

#include "pyravecompat.h"
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include "pyrave_debug.h"
#include "pyprojection.h"
#include "pyprojectionregistry.h"
#include "rave_alloc.h"

Macros

#define PYPROJECTIONREGISTRY_MODULE
 to get correct part in pyprojectionregistry.h
 
#define raiseException_gotoTag(tag, type, msg)
 Sets a python exception and goto tag.
 
#define raiseException_returnNULL(type, msg)
 Sets a python exception and return NULL.
 

Functions

 PYRAVE_DEBUG_MODULE ("_projectionregistry")
 Debug this module.
 
 PyDoc_STRVAR (_pyprojectionregistry_type_doc, "This class provides functionality for managing a projection registry. It can also read and write the registry.\n" "\n" "See the load function for information about format of the xml file.\n" "\n" "Usage:\n" " import _projectionregistry\n" " reg = _projectionregistry.load(\"/tmp/projection_registry.xml\")\n" " pj = reg.getByName(\"ps14e60n\")\n")
 
 MOD_INIT (_projectionregistry)
 

Variables

PyTypeObject PyProjectionRegistry_Type
 

Detailed Description

Python version of the Projection registry.

Author
Anders Henja (Swedish Meteorological and Hydrological Institute, SMHI)
Date
2010-12-15

Macro Definition Documentation

◆ PYPROJECTIONREGISTRY_MODULE

#define PYPROJECTIONREGISTRY_MODULE

to get correct part in pyprojectionregistry.h

◆ raiseException_gotoTag

#define raiseException_gotoTag ( tag,
type,
msg )
Value:
{PyErr_SetString(type, msg); goto tag;}

Sets a python exception and goto tag.

◆ raiseException_returnNULL

#define raiseException_returnNULL ( type,
msg )
Value:
{PyErr_SetString(type, msg); return NULL;}

Sets a python exception and return NULL.

Function Documentation

◆ PYRAVE_DEBUG_MODULE()

PYRAVE_DEBUG_MODULE ( "_projectionregistry" )

Debug this module.