arcgis

arcgis js 跨域代理proxy设置(java)

半腔热情 提交于 2019-12-04 20:09:36
为什么要使用代理proxy? 答:未配置代理时server发送请求是用get的方式,请求跨域访问或者URL长度超过浏览器限制时,这就需要一个代理文件proxy来转发请求。Arcgis Server 10.0 由于不支持CORS,需要配置代理才能在前端js 程序中范围进行操作,而有时候未配置代理也未出错,例如:用extent进行空间查询 后不报错是因为选择extent 请求的参数字符串较短,jsapi 可以通过jsonp方法绕过跨域限制,但是一旦前端参数较多,例如用circle进行空间查询,可以就无法通过jsonp跨域,这个时候如果要使用 10.0的 Identify task 就必须配置代理;还有Arcgis Server 10.2的打印功能可能也需要配置代理才行。 下载地址 :https://github.com/Esri/resource-proxy/releases(注意:不同版本的Arcgis Server应下载对应版本的proxy文件,而该页面中的V1.1.0版本其实是支持10.2和10.3版本的,V1.0版本支持10.0版本,下载后解压可以看到有3中类型:DotNet、Java、PHP的代理proxy文件,此处以Java为例) 修改文件: V1.1.0版本:该文件下载下来后需要修改proxy.jsp内容,全局搜索“<>”将对应的类型写入,例如:文件中有HashMap<>

Chrome Developer Tools Invoke Property Getter

元气小坏坏 提交于 2019-12-04 16:43:18
问题 All of my property values require me to click them in order to see them. How can I fix this? The object I'm trying to view is this Query Object. It seems to do this with most Arcgis objects I'm trying to view. 回答1: The issue is, calling a getter can have side effects e.g. class Dog { get paws() { console.log('paws!'); //side effect this.paws++; // side effect if(this.paws > 4) { throw Error('oh no'); // side effect } return this.paws; } } Every getter can alter the state of the app or break

Coding and Paper Letter(三十一)

限于喜欢 提交于 2019-12-04 16:40:43
国庆假期余额不足,好好学习,天天向上,资源整理。 1 Coding: 1.用R做空间分析的小课程。 rspatialdata 2.Pytorch框架下的retinanet。 pytorch retinanet 3.R语言包mgcViz,广义相加模型的可视化工具。 mgcViz 4.Frequentist和混合贝叶斯分层模型简介。 IFBM 5.R语言包MBA,多层B样条逼近。 MBA 6.PyTorch的快速可微分预测控制模型(MPC)求解器。 mpc.pytorch 7.R语言包msmbstyle,为使用R包bookdown生成的HTML书籍提供了另一种设计。 布局由Sweave和LaTeX开发。 msmbstyle 8.R语言包fontHind,提供了基于Hind字体的ggplot2主题。 fontHind 9.R语言包nplcm,用于拟合嵌套的部分潜类模型。 nplcm 10.基于Google Earth Engine的哨兵2数据集的大气校正。 gee atmcorr S2 6SE 11.使用Google Earth Engine进行时间序列的大气校正。 ee atmcorr timeseries 12.使用Py6S对Google Earth Engine中的Sentinel 2图像进行大气校正。 gee atmcorr S2 13.开源书籍GeoSpatial Book

ArcGIS API for JavaScript 与Dojo的关系

南楼画角 提交于 2019-12-04 16:08:39
API(之后都把ArcGIS API for JavaScript简称为API)构建在Dojo之上,从而充分利用Dojo来屏蔽各种浏览器差异。 那什么是Dojo呢? 伴随着Web2.0、Ajax和RLA的蓬勃发展,各种AJAX开发工具包发展起来,Dojo 正是其中的佼佼者。Dojo 为RIA的开发提供了完整的端到端的解决方案。 Dojo主要由3大模块组成,分别是Core、Dijit、DojoX Core提供Ajax、事件、基于CSS的查询、动画及JSON 等的相关操作API。 Dijit是一个可更换皮肤、基于模板的Web界面控件库,包含许多简单易用的小部件(Widget) DojoX包含一个工具库(Util)模块,该模块包含一个单元测试框架(DOH)、从Dojo源代码中生成文档工具,以及JavaScript资源打包与压缩工具 Dojo是一个分层的体系架构,最下面的一层是包系统,Dojo API的结构与Java很类似,它把所有的API分成不同的包,当使用某个API时,只需导入这个API所在的包。包系统上面是一层语言库,这个语言库里包含一些语言工具API,类似于Java的Util包。再上面一层是环境相关的包,这个包用于处理跨浏览器的问题。Dojo中的大部分代码都位于应用程序支持库中,由于太小的限制,上图中没有列出所有的包,开发人员经常调用这个层中的API,例如

How to pick up the information for the nearest associated polygon to points using R?

北战南征 提交于 2019-12-04 12:19:49
问题 I'm figuring out how to do a Intersection (Spatial Join) between point and polygons from shapefiles. My idea is to get the closest points and those points that match completely inside the polygons. In ARGIS there's a function for match option named CLOSEST and they have defined by: "The feature in the join features that is closest to a target feature is matched. It is possible that two or more join features are the same distance away from the target feature. When this situation occurs, one of

How can I use Esri Arcgis Map in ReactJs Project?

 ̄綄美尐妖づ 提交于 2019-12-04 11:44:17
问题 I'm trying to use Esri map. To include map in my project, here is what I found: require([ "esri/map", "esri/dijit/Search", "esri/dijit/LocateButton", "esri/geometry/Point", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", But there isn't any esri folder or npm package. Therefore, I'm confused here. How esri is imported in project? 回答1: An alternative method to the above is the one demonstrated in esri-react-router-example. That application

Launching python subprocess has different behavior depending on launcher

孤街浪徒 提交于 2019-12-04 03:56:38
问题 I'm attempting to launch Python 2.5 from Python 2.6. The reason for this is a compiled library I'm trying to use (GDAL) isn't supported for the version of Python distributed with another program (ArcGIS). Here's what I'm attempting to do. The main.py file in Python 2.6: import subprocess p = subprocess.Popen(['C:\OSGeo4W\gdal_python_exec.bat', 'X:\\local\\import_tests.py']) gdal_python_exec.bat is a windows batch script that fires up the 2.5 version of Python I want while also setting up some

Installing pip using ArcGIS-installed Python 2.7

人盡茶涼 提交于 2019-12-04 03:22:29
I'm trying to install Scrapy for Python 2.7 on Windows 8.1 and I understand that I first need pip to be installed. Since I have Python installed through ArcGIS 10.2, I think that I need to install pip under C:\Python27\ArcGIS10.2\lib\site-packages. Once pip is installed in that directory I receive the error code: >>> import pip Traceback (most recent call last): File "<interactive input>", line 1, in <module> File "C:\Python27\ArcGIS10.2\lib\site-packages\pip\__init__.py", line 10, in <module> from pip.util import get_installed_distributions, get_prog File "C:\Python27\ArcGIS10.2\lib\site

VS中丢失ArcGis 控件和模板的解决方法

送分小仙女□ 提交于 2019-12-03 22:33:11
VS 中丢失 ArcGis 控件和模板的解决方法(看了网上一些方法,多多少少对解决问题有些帮助,集合大家的成果),以下大部分问题是因为先装 vs 后装 ArcGis 或 AE 出现。所有这些问题其实都可以通过在装好 vs 的基础上重装 ArcGis 来解决,但是,如果你不想重装的话,可以试试下面的方法。 问题一:工具箱中没有 ArcGis Windows Forms 解决方法: 解法一: 第一步:添加选项卡,命名为 ArcGis Windows Forms 或者其他你喜欢的名字 第二步,点击工具》》选择工具箱项 第三步:在 .NET Framework 组件中选中相关控件,打钩然后确定 解法二: 第一步:添加选项卡,命名为 ArcGis Windows Forms 或者其他你喜欢的名字 第二步:在安装目录的 bin 下面找到相关的控件,以 .ocx 为后缀,选中直接拖入工具箱中。 问题二: vs 中没有 arcgis 模板 —vs 新建项目时,项目类型中没有 ArcGis 一项 这里 ArcGis 模板下面有两项, DeskTop 和 Engine , 安装 ArcMap 时,安装 ArcGis DeskTop SDK for the Microsoft.NET Framework 后出现 ArcGis 模板中的 DeskTop 。 安装 ArcGis Engine SDK for

GIS: partition area based on equal population

梦想与她 提交于 2019-12-03 21:12:33
I want to partition a US state into 20 parts of approximately equal population. I can do this using, say, tracts, ZIP codes or another smaller geography. I'm looking for an algorithm to do the partitioning. It can be in any language or software (ArcGIS, QGIS, python, PostGIS, R, node). For grouping or clustering algorithms I've looked at like k-means, ArcGIS Grouping Analysis, etc. These do not seem to do what's needed, since they group based on the similarity of a variable don't partition into equal size based on a variable. My quick look at ESRI's districting tool suggests that this might be