コード例 #1
0
ファイル: geo.py プロジェクト: parksandwildlife/pbs
 def perim_m(self):
     '''
     Returns the perimeter of the polygon field in metres, transformed to a
     projection of GDA94/MGA zone 49 through 56.
     '''
     if self.the_geom:
         return transform_geom(self.the_geom).boundary.length
     else:
         return None
コード例 #2
0
 def perim_m(self):
     '''
     Returns the perimeter of the polygon field in metres, transformed to a
     projection of GDA94/MGA zone 49 through 56.
     '''
     if self.the_geom:
         return transform_geom(self.the_geom).boundary.length
     else:
         return None
コード例 #3
0
ファイル: geo.py プロジェクト: parksandwildlife/pbs
 def area_ha(self):
     """
     Returns the area of the polygon field in hectares, transformed to a
     projection of GDA94/MGA zone 49 through 56.
     """
     if self.the_geom:
         return transform_geom(self.the_geom).area / 10000
     else:
         return None
コード例 #4
0
 def area_ha(self):
     """
     Returns the area of the polygon field in hectares, transformed to a
     projection of GDA94/MGA zone 49 through 56.
     """
     if self.the_geom:
         return transform_geom(self.the_geom).area / 10000
     else:
         return None