+ Exposed the proj forward and inverse as methods on the actual geometry (springmeyer)

This commit is contained in:
Artem Pavlenko 2008-11-16 22:36:21 +00:00
parent d4032c217e
commit bf1ea518c0

View file

@ -44,13 +44,21 @@ class _injector(object):
return type.__init__(self, name, bases, dict)
class _Coord(Coord,_injector):
def __repr__(self):
return 'Coord(%s,%s)' % (self.x, self.y)
def __repr__(self):
return 'Coord(%s,%s)' % (self.x, self.y)
def forward(self,obj):
return forward_(self,obj)
def inverse(self,obj):
return inverse_(self,obj)
class _Envelope(Envelope,_injector):
def __repr__(self):
return 'Envelope(%s,%s,%s,%s)' % \
(self.minx,self.miny,self.maxx,self.maxy)
def __repr__(self):
return 'Envelope(%s,%s,%s,%s)' % \
(self.minx,self.miny,self.maxx,self.maxy)
def forward(self,obj):
return forward_(self,obj)
def inverse(self,obj):
return inverse_(self,obj)
class _Projection(Projection,_injector):
def forward(self,obj):