def set_srid(self, srid): "Sets the SRID for the geometry." capi.geos_set_srid(self.ptr, srid)
def srid(self, srid): "Sets the SRID for the geometry." capi.geos_set_srid(self.ptr, 0 if srid is None else srid)
def srid(self, srid): "Set the SRID for the geometry." capi.geos_set_srid(self.ptr, 0 if srid is None else srid)
<<<<<<< HEAD "Gets the SRID for the geometry, returns None if no SRID is set." ======= "Get the SRID for the geometry. Return None if no SRID is set." >>>>>>> 37c99181c9a6b95433d60f8c8ef9af5731096435 s = capi.geos_get_srid(self.ptr) if s == 0: return None else: return s @srid.setter def srid(self, srid): <<<<<<< HEAD "Sets the SRID for the geometry." capi.geos_set_srid(self.ptr, 0 if srid is None else srid) def get_srid(self): warnings.warn( "`get_srid()` is deprecated, use the `srid` property instead.", RemovedInDjango20Warning, 2 ) return self.srid def set_srid(self, srid): warnings.warn( "`set_srid()` is deprecated, use the `srid` property instead.", RemovedInDjango20Warning, 2 ) self.srid = srid