• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python shapefile.ShapeUnzip类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中trytond.modules.download_shape.shapefile.ShapeUnzip的典型用法代码示例。如果您正苦于以下问题:Python ShapeUnzip类的具体用法?Python ShapeUnzip怎么用?Python ShapeUnzip使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ShapeUnzip类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: transition_import_littoral

 def transition_import_littoral(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Conservatoire du littoral", "CDL", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例2: transition_import_regbiofr

 def transition_import_regbiofr(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try:
         REGBIOFR.createREGBIOFRGeometries(shapefile.filename, self.start.version)
     finally:
         shapefile.destroy()
     return "done"
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:regbiofr.py


示例3: transition_import_cen

 def transition_import_cen(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Conservatoire d'espaces naturels", "CEN", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例4: transition_import_resbio

 def transition_import_resbio(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createBioGeometries(shapefile.filename, "Réserve biologique", "RB", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例5: transition_import_resnatcf

 def transition_import_resnatcf(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Réserve naturelle de chasse et faune sauvage", "RNCFS", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例6: transition_import_sic

 def transition_import_sic(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Site d'importance communautaire", "SIC", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例7: transition_import_rescorse

 def transition_import_rescorse(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Réserve naturelle Corse", "RNC", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例8: transition_import_parcreg

 def transition_import_parcreg(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Parc naturel régional", "PNR", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例9: transition_import_biotope

 def transition_import_biotope(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Arrêté de protection de biotope", "APB", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例10: transition_import_zps

 def transition_import_zps(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Zone de protection spéciale", "ZPS", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例11: transition_import_znieff2

 def transition_import_znieff2(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Zone naturelle d'intérêt écologique faunistique et floristique de type 2 (mer)", "ZNIEFF 2 mer", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'        
开发者ID:silpol,项目名称:tryton-bef,代码行数:8,代码来源:protection.py


示例12: transition_import_courseau

 def transition_import_courseau(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :            
         CoursEau.createCoursEauGeometries(shapefile.filename,
                                        self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:9,代码来源:carthage.py


示例13: transition_import_ssecteur

 def transition_import_ssecteur(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :            
         SousSecteur.createSousSecteurGeometries(shapefile.filename,
                                        self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:9,代码来源:carthage.py


示例14: transition_import_zico

 def transition_import_zico(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createZicoGeometries(shapefile.filename, u"Zone d'intérêt communautaire pour les oiseaux", 
                                     "ZICO", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:9,代码来源:protection.py


示例15: transition_import_foret

 def transition_import_foret(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :            
         Foret.createForetGeometries(shapefile.filename,
                                        self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:9,代码来源:foret.py


示例16: transition_import_ramsar

 def transition_import_ramsar(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         Protection.createGeometries(shapefile.filename, "Site Ramsar",
                                     "RAMSAR", version = self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:9,代码来源:protection.py


示例17: transition_import_clc

 def transition_import_clc(self):
     shapefile = ShapeUnzip.getShapefile(self.start.shapefile)
     debug("unzipped")
     try :
         year = "20" + shapefile.name[3:5]
         Clc.createClcGeometries(shapefile.filename, int(year),
                                        self.start.version)
     finally:
         shapefile.destroy()
     return 'done'
开发者ID:silpol,项目名称:tryton-bef,代码行数:10,代码来源:clc.py


示例18: importerCEN

 def importerCEN(cls, data, version):
     binData = base64.decodestring(data)
     shapefile = ShapeUnzip.getShapefile(binData)
     ret = False
     try :
         Protection.createGeometries(shapefile.filename, "Conservatoire d'espaces naturels",
                                     "CEN", version = version)
         ret = True
     finally:
         shapefile.destroy()
     return ret
开发者ID:silpol,项目名称:tryton-bef,代码行数:11,代码来源:protection.py


示例19: importerRNR

 def importerRNR(cls, data, version):
     binData = base64.decodestring(data)
     shapefile = ShapeUnzip.getShapefile(binData)
     ret = False
     try :
         Protection.createGeometries(shapefile.filename, "Réserve naturelle régionale", "RNR",
                                     version = version)
         ret = True
     finally:
         shapefile.destroy()
     return ret
开发者ID:silpol,项目名称:tryton-bef,代码行数:11,代码来源:protection.py


示例20: importerPNM

 def importerPNM(cls, data, version):
     binData = base64.decodestring(data)
     shapefile = ShapeUnzip.getShapefile(binData)
     ret = False
     try :
         Protection.createGeometries(shapefile.filename, "Parc naturel marin", "PNM",
                                     version = version)
         ret = True
     finally:
         shapefile.destroy()
     return ret
开发者ID:silpol,项目名称:tryton-bef,代码行数:11,代码来源:protection.py



注:本文中的trytond.modules.download_shape.shapefile.ShapeUnzip类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python tools.get_as_epsg4326函数代码示例发布时间:2022-05-27
下一篇:
Python config.set函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap