页面载入中....
Google


[GIS基础类]减少新建Mxd文件大小就很大的方法(zz)
zdq 发表于 2008-4-26 14:09:00

The following steps permanently clear the Results tab in ArcToolbox. Previous geoprocessing results are available in the History toolbox, if needed. See the Related Information for more information on retrieving results from the the History toolbox.

Shut down ArcMap and open ArcCatalog. Go to ArcToolbox > Results Tab. In the Results tab, look for 'Current Session' and 'Previous Sessions'. If 'Previous Sessions' is not there, go to to step 4. If 'Previous Sessions' is there, go to step 3. Right-click 'Previous Sessions' > Remove All. Open the problematic MXD in ArcMap. Click File &
……
阅读全文 | 回复 | 引用通告

[GIS开发类]高效的Insert方法 
zdq 发表于 2007-7-25 21:15:00

Insert Feature是我们在开发过程中最容易遇到的问题,如果Insert的feature个数有限,那么你也许不关注Insert的速度问题。但是数据量比较大》500个的时候,你就会发现如果使用 IFeatureClass. CreateFeature的速度基本是无法忍受的。

其实ArcObjects中提供了一个接口,可以满足快速批量插入的要求。
……
阅读全文 | 回复 | 引用通告

[GIS基础类]ArcGIS中Export图片发生图片缺失的解决方法
zdq 发表于 2007-7-25 21:06:00


ArcMap能Export LayOut视图,但是最近发现,如果是JPG图片,或者是从Excel直接粘贴的EMF图元文件。在分辨率大于100的时候,就会发生图片缺失的现象,特别是Excel的网格线就不见了。

发现这个问题,百思不得其解,最后通过反复查阅ESRI技术网站,终于找到答案:

If the inserted object or image falls outside the default page size of the Windows default printer, Windows GDI drawing calls used by ArcMap may not properly draw the object or image on output.
也就是说,这个是ArcMap本身的限制,如果使用JPG、EMF等文件,这个隐患是难免会发生的。
那什么才是终极解决方案呢??
通过研究分析,结论很简单,那就先用画图把这些图片转换为24-bit Bitmap文件,然后使用ArcMap的Insert->Picture,那么导出分辨率为500的图片也不会有问题了。
……
阅读全文 | 回复 | 引用通告

[GIS开发类]ITableSort与Update的问题。
zdq 发表于 2007-4-28 14:50:00

使用ITableSort可以对表进行排序,但是排序後如果用Row.Store()更新记录会非常慢。比较好的办法是先遍历排序表获得一个HashTable,然后从表通过Update方法获得一个可更新的ICursor,然后使用UpdateRow和Flush来更新。速度快很多。片段代码如下:

      '提高效率的办法,不用.Store,首先获得一个OID,和顺序编号的HashTable
      Dim IDHash As New Hashtable
      Do While Not pRow Is Nothing
        ' Debug.Print(pRow.Value(XIndex) & " , " & pRow.Value(YIndex))
        IDHash.Add(pRow.OID, ID)
   &nb
……

阅读全文 | 回复 | 引用通告

[GIS开发类]放大到一个图层的选择集合的方法(zz) 
zdq 发表于 2007-4-24 17:47:00

在ESRI网站偶得之,共享。应该是比较高效的一种办法。

    1. Dim pDoc As IMxDocument
      Set pDoc = ThisDocument
      Dim pMap As IMap
      Set pMap = pDoc.FocusMap

      Dim pLayer As IFeatureLaye
      ……
  • 阅读全文 | 回复 | 引用通告

    [GIS开发类]在编程过程中使用ArcMap注意事项 
    zdq 发表于 2007-4-2 22:24:00

    在编程过程中调用ArcMap程序中的对象,至少需要注意以下两点:
    1. 和环境相关的类实例化必须使用IObjectFactory接口通过ArcMap的Application对象进行创建,否则
    创建的类并不能发挥他应有的作用,举例如下:
        Dim pExport As IExport
        pExport = ObjF.Create("esriOutput.ExportJPEG")
    '以上语句创建的输出对象输出的Jpg文件有内容。
        pExport = New ExportJPEG
    '以上语句创建的输出对象输出的Jpg文件为空白。
    ……
    阅读全文 | 回复 | 引用通告

    [GIS开发类]如何使用程序获取或者新建一个arcmap 
    zdq 发表于 2007-4-2 22:21:00

    在GIS应用中,Arcmap的有些功能在 ArcEngine并不好使,那么使用arcmap进行批处理对于数据处理挺有用的。可是如何在程序中捕获一个已经打开的Arcmap呢?过程下面代码所示:

        Dim app As IApplication = Nothing
        Dim appRot As New AppROT
    '寻找打开的ArcMap
        For i As Integer = 0 To appRot.Count - 1
          If TypeOf appRot.Item(i) Is IMxApplication Then
            app = appRot.Item(i)
            Exit For
          End If
        Next
    '找不到就新建一
    ……
    阅读全文 | 回复 | 引用通告

    [GIS开发类].net中UndoRedo相关类结构图
    zdq 发表于 2007-3-12 9:27:00

    通过以下结构,可以记录UndoRedo的相关记录并实现undoredo,代码不能直接给出,请见谅。


    阅读全文 | 回复 | 引用通告

    [生活点滴]ArcGIS Explorer 下载网址
    zdq 发表于 2007-3-12 9:26:00

    Welcome to the ArcGIS Explorer Download

    阅读全文 | 回复 | 引用通告

    [GIS开发类]IFeatureLayer Search函数参数测试 
    zdq 发表于 2007-2-27 9:37:00


    帮助中有如此论述,指出recycling参数的主要性:

    The Recycling parameter controls feature object allocation behavior. Recycling cursors rehydrate a single feature object on each fetch and can be used to optimize read-only access, for example, when drawing. It is illegal to maintain a reference on a feature object returned by a recycling cursor across multiple calls to NextFeature on the cursor. Feature objects returned by a recycling cursor should not be modified.


    ……
    阅读全文 | 回复 | 引用通告
    首页 上一页 下一页 尾页 页次:1/10页  10篇日志/页 转到:

     

    页面载入中....

      公告
    页面载入中....

      我的分类(专题)
    页面载入中....
      日志搜索
        最近日志
    页面载入中....

      最新评论
    页面载入中....

      留言板
    页面载入中....

      链接

      Blog信息
    页面载入中....





    Powered by Oblog.