qhg103
路人甲
路人甲
  • 注册日期2004-07-12
  • 发帖数48
  • QQ
  • 铜币311枚
  • 威望0点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
阅读:975回复:0

帮帮忙,专题图的问题???

楼主#
更多 发布于:2005-02-25 17:36
<P> cr.ChartType = moPie
                    For i = 0 To Map1.Layers.Count - 1
                        Set mapLayer1 = Map1.Layers.Item(i)
                        If mapLayer1.Name = "区界R" Then
                            Exit For
                        End If
                    Next i
                    
                    If mapLayer1.shapeType = moShapeTypePolygon Then
                        str.Add "分类"
                        str.Add "名称"
                        str.Add "区域"

                        cr.MinPieSize = Map1.Height * 0.005
                        cr.MaxPieSize = Map1.Height * 0.015
                        
                        cr.FieldCount = str.Count
                        For j = 0 To str.Count - 1
                            cr.Field(j) = str(j)
                            cr.Color(j) = QBColor(j + 1)
                        Next j
                        Set mapLayer1.Renderer = cr
                        Map1.Refresh</P>

<P>我看了李克群的,教材,我按他的代码写了,当时没有专题图出来,麻烦高手们帮我看一下,</P>
喜欢0 评分0
游客

返回顶部