zoukankan      html  css  js  c++  java
  • ArcGIS 中取出面上最大的Z值的坐标点

    def MaxZ(shape):  
         line = shape.getPart(0)
         pnt = line.next()
         maxValue = float("-inf")
         while pnt:
             if maxValue < pnt.Z:
                 maxValue = pnt.Z
             pnt = line.next()
         return maxValue


    MaxZ(!shape!)


       
        point.X += shiftValue
        return point
       
    MinZ(!shape!)
       
    def MinZ(shape):  
         line = shape.getPart(0)
         pnt = line.next()
         minValue = float("inf")
         while pnt:
             if minValue > pnt.Z:
                 minValue = pnt.Z
             pnt = line.next()
         return minValue
        
        
    def info( ZValue , ZValueMin , ZValueMax ):
         returnValue = "unknown"
         if ZValue and ZValueMin and  ZValueMax:
             if ZValueMax - ZValueMin < 0.00000001:
                 returnValue = "unknown"
             elif ZValue > ZValueMax or ZValue < ZValueMin:
                 returnValue = "error"
             else:
                 returnValue = "ok"
         return returnValue
        
        
        
    def MinZ(shape):  
         line = shape.getPart(0)
         pnt = line.next()
         minValue = float("inf")
         while pnt:
             if minValue > pnt.Z:
                 minValue = pnt.Z
             pnt = line.next()
         return minValue

  • 相关阅读:
    转:深入 AngularUI Router
    angularJS $scope的$apply方法实现model刷新
    CSS 如何让 height:100%; 起作用
    【AngularJs】---$sce 输出Html
    angular 组件之间传值
    kendo Grid 列添加自定义模板
    关于“内控点”
    关于总结
    咏春
    一只老鼠夹
  • 原文地址:https://www.cnblogs.com/gispathfinder/p/9532813.html
Copyright © 2011-2022 走看看