コード例 #1
0
 def _set_cs(self):
     "Sets the coordinate sequence for this Geometry."
     if self.has_cs:
         self._cs = GEOSCoordSeq(capi.get_cs(self.ptr), self.hasz)
     else:
         self._cs = None
コード例 #2
0
ファイル: geometry.py プロジェクト: Anoopsmohan/django-1
 def _set_cs(self):
     "Sets the coordinate sequence for this Geometry."
     if self.has_cs:
         self._cs = GEOSCoordSeq(capi.get_cs(self.ptr), self.hasz)
     else:
         self._cs = None
コード例 #3
0
 def _post_init(self):
     "Perform post-initialization setup."
     # Setting the coordinate sequence for the geometry (will be None on
     # geometries that do not have coordinate sequences)
     self._cs = GEOSCoordSeq(capi.get_cs(self.ptr), self.hasz) if self.has_cs else None