示例#1
0
 def srs(self):
     "Returns the Spatial Reference used in this Layer."
     try:
         ptr = capi.get_layer_srs(self.ptr)
         return SpatialReference(srs_api.clone_srs(ptr))
     except SRSException:
         return None
示例#2
0
 def clone(self):
     "Returns a clone of this SpatialReference object."
     return SpatialReference(capi.clone_srs(self.ptr))