GISer

导航

公告

统计

2012年5月17日 #

(转)怎么提高基于ArcSDE存储的要素类大数据量要素选择的性能 (译)

相关链接:http://support.esri.com/en/knowledgebase/techarticles/detail/22668

如果我们从存储在基 于ArcSDE的要素类选择非常多的要素时,往往会感觉到性能的下降(相比较选择比较少的要素时)。有可能通过增加缓存在客户端上的要素的数目提高性能 (features cached)。通过创建称为 'SelectionThreshold' 的 Windows 注册表项可以增加缓存在客户端上的功能。此注册表项可以缓存在本地客户端内存中的选定记录的数量的增加而不是有中将这些记录写入用户的日志文件表。


操作步骤:

1:从桌面,单击开始 > 运行,键入 regedit,然后单击确定。
2:在注册表编辑器中浏览树中在左边,导航到 HKEY_CURRENT_USER > 软件 > ESRI。
3:如果不存在下 ESRI 地理数据库的关键,ESRI 右键单击,选择新建 > 密钥并将其命名 '地理数据库'。


如果已经存在地理数据库的键,请继续执行步骤 4。
4:如果不存在下地理数据库的设置键,右键单击地理数据库,选择新建 > 密钥并将其命名为设置。


如果已经存在的键,则继续执行步骤 5。
5:如果不存在设置下,SelectionThreshold 的 DWORD 值右键单击设置,选择新建 > DWORD 值并将它命名为 'SelectionThreshold'。


如果已经存在的键,则继续执行步骤 6。
6:右键单击 SelectionThreshold,选择修改。
7:在编辑 DWORD 值窗口中,选择为基地的十进制和在值数据框中输入一个合理的数目,如 5000。单击确定。
8:关闭注册表编辑器窗口。

 

转自:http://blog.csdn.net/linghe301/article/details/7267865

posted @ 2012-05-17 10:35 于小栋 阅读(1) 评论(0) 编辑

2012年3月2日 #

Aptana 快捷键

Ctrl+D: 删除当前行

Ctrl+Alt+↓ 复制当前行到下一行(复制增加)

Ctrl+Alt+↑ 复制当前行到上一行(复制增加)Alt+↓ 当前行和下面一行交互位置

Alt+↑ 当前行和上面一行交互位置
Alt+← 前一个编辑的页面 Alt+→ 下一个编辑的页面

Alt+Enter 显示当前工程的属性

Shift+Enter 在当前行的下一行插入空行

Ctrl+Q 定位到最后编辑的地方

Ctrl+L 定位在某行

Ctrl+M 最大化当前的Edit或View (再按则反之)

Ctrl+O 快速显示 OutLine

Ctrl+T 快速显示当前类的继承结构

Ctrl+W 关闭当前Editer

Ctrl+E 快速显示当前Editer的下拉列表

Ctrl+Shift+E 显示管理当前打开的所有的View的管理器(可以选择关闭,激活等操作)

Ctrl+Shift+F4 关闭所有打开的Editer Ctrl+Shift+X 把当前选中的文本全部变味小写

 Ctrl+Shift+Y 把当前选中的文本全部变为小写

Ctrl+Shift+F 格式化当前代码

posted @ 2012-03-02 16:13 于小栋 阅读(9) 评论(0) 编辑

2012年1月29日 #

进行arcgis js api开发需要了解的几个基本dojo语句

Working with DojoE-mail This TopicPrintable VersionGive Us Feedback

Dojo is an open source toolkit that helps you write robust and efficient JavaScript code. JavaScript is a language that runs within the Web browser, and there are various flavors of Web browser that interpret the JavaScript in slightly different ways. Toolkits such as Dojo, YUI, Prototype, and many others are designed to abstract away the browser idiosyncrasies so that you don't have to learn them all and handle them in your code.

There are often several ways to code the same thing using JavaScript. Toolkits like Dojo provide functions you can use to do things in easier or more efficient ways. Using libraries from a toolkit can reduce the lines of code you write and make your JavaScript applications quicker and more stable.

What does it mean that the ArcGIS JavaScript API is built on top of Dojo?

The ESRI developers who created the ArcGIS JavaScript API used Dojo to simplify their development process and to ensure that the applications you build behave the same in different browsers. For example, the map zoom and panning animations use Dojo, as does the graphics layer.

Furthermore, the zoom level slider and info windows that you see in your JavaScript API maps are Dojo widgets (dijits). The slider dijit is provided with Dojo, and the info window is a custom dijit created by ESRI for the ArcGIS JavaScript API.

How much Dojo do I need to know in order to use the ArcGIS JavaScript API?

The amount of Dojo you use when you work with the ArcGIS JavaScript API is up to you, but at a minimum you'll need to use several common functions:

  • dojo.require: Similar to the <script> include tag on an HTML page. It imports resources into your JavaScript page.
    dojo.require("esri.map");

    For the JavaScript API, the most commonly imported resources are:

    ResourceUse for:
    esri.map Map, geometry, graphics, and symbols
    esri.layers.agsdynamic ArcGISDynamicMapServiceLayer
    esri.layers.agstiled ArcGISTiledMapServiceLayer
    esri.tasks.find Find task
    esri.tasks.geometry Geometry task
    esri.tasks.gp Geoprocessing task
    esri.tasks.identify Identify task
    esri.tasks.locator Locator task
    esri.tasks.query Query task
    esri.toolbars.draw Draw
    esri.toolbars.navigation Navigation
  • dojo.addOnLoad: Similar to <body onload="">. It registers an initializing block after the page has finished loading.
    dojo.addOnLoad(init);
  • dojo.connect: Similar to Element.addEventListener and Element.attachEvent JavaScript functions. It registers a listener to listen to specific events on an Object or element on the page and returns results from a function.
    dojo.connect(myMap,"onLoad", myLoadHandler);
  • dojo.byId: Similar to the document.getElementById(id) JavaScript function. The function searches and returns the first HTML element with the argument ID.
    dojo.byId("myInputField").value = myMap.id;

When writing your ArcGIS JavaScript applications, you can take advantage of the full Dojo toolkit, which includes buttons, grids, tree views, charts, and other widgets. The toolkit is divided into three parts:

Core - Essential functions like those listed above Dijit - Themeable widgets such as trees, menus, and buttons DojoX- Extension projects in various stages of development, such as graphics, grids, and charts

posted @ 2012-01-29 15:31 于小栋 阅读(195) 评论(0) 编辑

2012年1月19日 #

添加arcgis server js API 在aptana环境中的代码帮助

(官方说明http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm

注:The Code Assist Plugin is currently only available for Aptana Studio 2.

 在esri资源中心下载好js的帮助包(zip),解压后将.jar拷入aptana目录下的plugins目录下。

启动aptana,Window -> Show  View -> References,在Global References 标签下选择相应的js帮助版本

posted @ 2012-01-19 14:10 于小栋 阅读(93) 评论(0) 编辑

2012年1月13日 #

为aptana 添加对Dojo包智能感知,并汉化aptana(转)

 最近开发工作流使用到dojo的作图功能,但是dojo这玩意没多少系统的中文资料,就希望有清清爽爽的API摆在面前。

但是脱机版的API文档没找到,只有看联机版的,网速又慢,烦得要死。听说aptana的智能感知(content assist)支持 DOJO啦,JQuery啦等javascript框架,就下载了一个最新版、独立的Aptana Studio 3(还有个版本是Eclipse的插件,本人用asp.net开发web应用所以只写这个版的心得了)。

接下来进行第一步Dojo的包引入,因为Aptana studio来自于Eclipse所以有些德行也像它,最最恶心的就是下载插件,慢的要死。幸好这个版本的aptana改了一点,现在我们只要将aptana为Dojo准备的 .sdocml  文件拖到APP Explorer你的project中就可以获取智能感知了,亲。

http://wiki.appcelerator.org/display/tis/JavaScript+Library+Support,官网帮助文档中关于这件事的说法,直接下载sdocml文档的链接(官网给这个文件起的名字叫:content assist file,aptana感知Dojo的助手,这文件实际上是XML文档,由此可见原来智能感知是通过这种方式实现的哦)

官网说compatibility is not guaranteed,所以大家遇到aptana感知不到的也不要喷人家,因为人家事先声明了。

(不要忘了把dojo的开发包引入哦,就是Dojo,Dijit,Dojox,也是拖进去的,呵呵)

——————————————————————————————————————————————————————————————————————

汉化:

官网的解释如下:http://wiki.appcelerator.org/display/tis/Changing+the+Studio+UI+into+a+Different+Language

博客园那哥们的链接是这个:http://www.cnblogs.com/hihell/archive/2011/08/24/2151760.html,安装的时候要耐得住。因为Aptana继承的Eclipse的丑陋将在这里得以完美展现。

官网是强大的,网友是有爱心的。

(转自http://hi.baidu.com/ddduggguo/blog/item/4275e4ec8f5420cd2e2e2128.html

posted @ 2012-01-13 16:16 于小栋 阅读(204) 评论(0) 编辑

aptana 使用小技巧(转)

 

1   解决Aptana中文乱码的问题

今天在网上下载了Aptana学习网页技术,但是在用其生成的HTML页面用IE打开时乱码(原来输入的是中文),于是在网上搜寻解决方法,虽然有很多关于Aptana乱码的帖子,但是大部分都是在aptana中编辑是无法显示中文的解决方法,但是在最新版本中,界面中已经完全支持中文版本,所以找了很久都没有最终解决问题。

依次执行【Windows】【preferences】在打开的【preferences对话框】中,选择【general】【workspace】,在【workspace】选项卡中,将最下面的【text file encoding】中的【default(GBK)】选中即可。如下图所示:

2   调整Aptana字体的大小

3   显示行号

4  标签提示功能

(原帖http://blog.csdn.net/lhl62411570/article/details/6300935)

posted @ 2012-01-13 14:03 于小栋 阅读(105) 评论(0) 编辑

Fiddler2(转)

(转自http://www.dotblogs.com.tw/tigerlin/archive/2009/04/02/7801.aspx)

童話故事裡的結為常常以「王子與公主結婚之後,就過者幸福快樂的生活」,而在資訊科技的世界中「RD 與 IT 將網站佈署後,才是挑戰的開始」可是一點都不為過。WEB 佈署之後,中間沒遇到任何的小問題還真是神話級的傳說,壓力測試軟體雖然可以測定負載臨界值,誒無法測定 WEB Application 中的枝末,雖然在當下看來沒什麼,從長期的角度來看,可能為後面的災難種下了變數。

如果說 IE8 的 Developer Tools 是分析 CSS 結構與 Script 除錯的好幫手,那 Fiddler2 就可以說是 IE 與 Server 之間的通訊分析器了。Fiddler2 的功能非常的強大,可以幫助 IT 與 RD 人員處理不少很難發現的問題,了解介面的意義後才可以更犀利的應用 Fiddler 幫助我們進行 Debuging 的工作。

接著我們看右邊的區域,此區域跟左邊區域是息息相關,在這裏我們就針對每個頁籤做解說~

 

而 Fiddler 的強大分析功能可以讓 Web Developer 與 IT 人員進行快速的除錯,下面我們列舉 6 個常用的案例:

  1. 檔案下載回應 404,但路徑確實存在
  2. 頁面檔案使用比例
  3. 頁面下載時間分析
  4. RAW HTTP Request 檢視分析 - 伺服器版本隱藏
  5. RAW HTTP Request 檢視分析 - WEB 叢集的設置正確性
  6. 抓 Flash 的引用檔案

posted @ 2012-01-13 13:00 于小栋 阅读(22) 评论(0) 编辑

2012年1月4日 #

(转)ArcGIS API for Javascript 2.X 离线部署(以2.6为例)

摘要: (原帖地址http://www.th7.cn/Program/net/2011/12/22/51908.shtml)1. 先在官网上ArcGIS API for JavaScript download page(需要有账户)下载最新的API:arcgis_js_v26_api.zip 和 SDK: arcgis_js_v26_sdk.zip ;2. 将下载下来的 arcgis_js_v26_api.zip 和 arcgis_js_v26_sdk.zip 分别解压,将各自文件夹下的的 arcgis_js_api 文件夹拷贝到 C:/inetpub/wwwroot 下,因为拷贝的文件夹名称都为ar阅读全文

posted @ 2012-01-04 19:48 于小栋 阅读(75) 评论(0) 编辑

2011年12月30日 #

[转]使用ArcGIS实现WGS84经纬度坐标到北京54高斯投影坐标的转换

摘要: 张兢1 王文瑞2 陈溪1 (1.广西第一测绘院 广西南宁 530023; 2.南宁市勘测院 广西南宁 530022)【摘 要】 本文针对从事测绘工作者普遍遇到的坐标转换问题,简要介绍ArcGIS实现WGS84经纬度坐标到北京54高斯投影坐标转换原理和步骤。【关键词】 ArcGIS 坐标转换 投影变换 1 坐标转换简介 坐标系统之间的坐标转换既包括不同的参心坐标之间的转换,或者不同的地心坐标系之间的转换,也包括参心坐标系与地心坐标系之间的转换以及相同坐标系的直角坐标与大地坐标之间的坐标转换,还有大地坐标与高斯平面坐标之间的转换。 在两个空间角直坐标系中,假设其分别为O--XYZ和O--XYZ..阅读全文

posted @ 2011-12-30 14:56 于小栋 阅读(885) 评论(0) 编辑

2011年12月29日 #

VS2010安装报错,提示“ 无法打开数据文件deffactory.dat”

摘要: 用UltraISO打开VS2010安装ISO文件,提取setup\deffactory.dat文件到硬盘,用记事本打开,将里面内容清空,将以下内容复制到文件里 [Version] Signature = "$Windows NT$" Provider="Microsoft Visual Studio 2010 Professional Edition – ENU" Version=900.100.00 NullString=Null String Lang=1033 [Scenario List] vsscenario.dll [Scenario Fac阅读全文

posted @ 2011-12-29 22:43 于小栋 阅读(1273) 评论(0) 编辑

仅列出标题  下一页