/usr/lib/thuban/Lib/Projection.py is in thuban 1.2.2-9build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 | # This file was created automatically by SWIG.
import Projectionc
class Projection:
def __init__(self,*args):
self.this = apply(Projectionc.new_Projection,args)
self.thisown = 1
def __del__(self,Projectionc=Projectionc):
if self.thisown == 1 :
Projectionc.delete_Projection(self)
def Forward(*args):
val = apply(Projectionc.Projection_Forward,args)
return val
def Inverse(*args):
val = apply(Projectionc.Projection_Inverse,args)
return val
def cobject(*args):
val = apply(Projectionc.Projection_cobject,args)
return val
__setmethods__ = {
"units" : Projectionc.Projection_units_set,
"proj" : Projectionc.Projection_proj_set,
}
def __setattr__(self,name,value):
if (name == "this") or (name == "thisown"): self.__dict__[name] = value; return
method = Projection.__setmethods__.get(name,None)
if method: return method(self,value)
self.__dict__[name] = value
__getmethods__ = {
"units" : Projectionc.Projection_units_get,
"proj" : Projectionc.Projection_proj_get,
}
def __getattr__(self,name):
method = Projection.__getmethods__.get(name,None)
if method: return method(self)
raise AttributeError,name
def __repr__(self):
return "<C Projection instance at %s>" % (self.this,)
def __del__(self,Projectionc=Projectionc):
if getattr(self, 'thisown', 0):
Projectionc.delete_Projection(self)
class ProjectionPtr(Projection):
def __init__(self,this):
self.this = this
self.thisown = 0
self.__class__ = Projection
#-------------- FUNCTION WRAPPERS ------------------
int_array = Projectionc.int_array
int_destroy = Projectionc.int_destroy
int_get = Projectionc.int_get
int_set = Projectionc.int_set
double_array = Projectionc.double_array
double_destroy = Projectionc.double_destroy
double_get = Projectionc.double_get
double_set = Projectionc.double_set
float_array = Projectionc.float_array
float_destroy = Projectionc.float_destroy
float_get = Projectionc.float_get
float_set = Projectionc.float_set
string_array = Projectionc.string_array
string_destroy = Projectionc.string_destroy
string_get = Projectionc.string_get
string_set = Projectionc.string_set
#-------------- VARIABLE WRAPPERS ------------------
DEGREES = Projectionc.DEGREES
RADIANS = Projectionc.RADIANS
|