fields.py 文件源码

python
阅读 20 收藏 0 点赞 0 评论 0

项目:tabmaster 作者: NicolasMinghetti 项目源码 文件源码
def get_srid(self, geom):
        """
        Returns the default SRID for the given geometry, taking into account
        the SRID set for the field.  For example, if the input geometry
        has no SRID, then that of the field will be returned.
        """
        gsrid = geom.srid  # SRID of given geometry.
        if gsrid is None or self.srid == -1 or (gsrid == -1 and self.srid != -1):
            return self.srid
        else:
            return gsrid

    # ### Routines overloaded from Field ###
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号