+ Exposed the proj forward and inverse as methods on the actual geometry (springmeyer)
This commit is contained in:
parent
d4032c217e
commit
bf1ea518c0
1 changed files with 13 additions and 5 deletions
|
@ -44,13 +44,21 @@ class _injector(object):
|
||||||
return type.__init__(self, name, bases, dict)
|
return type.__init__(self, name, bases, dict)
|
||||||
|
|
||||||
class _Coord(Coord,_injector):
|
class _Coord(Coord,_injector):
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'Coord(%s,%s)' % (self.x, self.y)
|
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):
|
class _Envelope(Envelope,_injector):
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return 'Envelope(%s,%s,%s,%s)' % \
|
return 'Envelope(%s,%s,%s,%s)' % \
|
||||||
(self.minx,self.miny,self.maxx,self.maxy)
|
(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):
|
class _Projection(Projection,_injector):
|
||||||
def forward(self,obj):
|
def forward(self,obj):
|
||||||
|
|
Loading…
Reference in a new issue