conflate.py 文件源码

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

项目:osm_conflate 作者: mapsme 项目源码 文件源码
def backup_osm(self):
        """Writes OSM data as-is."""
        osm = etree.Element('osm', version='0.6', generator=TITLE)
        for osmel in self.osmdata.values():
            el = osmel.to_xml()
            if osmel.osm_type != 'node':
                etree.SubElement(el, 'center', lat=str(osmel.lat), lon=str(osmel.lon))
            osm.append(el)
        return ("<?xml version='1.0' encoding='utf-8'?>\n" +
                etree.tostring(osm, encoding='utf-8').decode('utf-8'))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号