arcgis

Launching python subprocess has different behavior depending on launcher

▼魔方 西西 提交于 2019-12-01 19:10:46
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 environment variables: @echo off set OSGEO4W_ROOT=C:\OSGeo4W PATH=%OSGEO4W_ROOT%\bin;%PATH% for %%f in

How can I fix this AMD path conflict?

眉间皱痕 提交于 2019-12-01 11:25:37
I am trying to use the Esri ArgGis JavaScript API , which is loaded by Dojo , using dojo.require . I have an existing modular AMD/requirejs Typescript application that I need to integrate this code into. At the top of my initial TS file, I import several modules: import tracer = module('../classes/trace'); import pubsub = module('../classes/pubsub'); import masker = module('../classes/masker'); // etc. This was working fine, but now that I have added the ArcGis code, instead of resolving the relative path within my application, require.js has picked up a baseUrl from the Esri site, and tries

How can I fix this AMD path conflict?

别说谁变了你拦得住时间么 提交于 2019-12-01 08:54:35
问题 I am trying to use the Esri ArgGis JavaScript API, which is loaded by Dojo, using dojo.require . I have an existing modular AMD/requirejs Typescript application that I need to integrate this code into. At the top of my initial TS file, I import several modules: import tracer = module('../classes/trace'); import pubsub = module('../classes/pubsub'); import masker = module('../classes/masker'); // etc. This was working fine, but now that I have added the ArcGis code, instead of resolving the

Convert latitude and longitude into esri arcGIS MapPoint

徘徊边缘 提交于 2019-12-01 05:43:54
I am having trouble in converting the latitude and longitude values into android esri arcGIS map Point. Here's my code to get latitude and longitude values from GPS coordinates: LocationManager lm; String towers; double lat; double longi; TextView txt; lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Criteria crit = new Criteria(); towers = lm.getBestProvider(crit, false); Location location = lm.getLastKnownLocation(towers); if(location != null) { lat = location.getLatitude(); longi = location.getLongitude(); } now I have the latitude and longitude values. Now all I need is

2017第十五届esri用户大会观感(二)——大会整体

狂风中的少年 提交于 2019-12-01 05:42:03
上文初步介绍了大会的盛况以及笔者负责的Web App Builder for ArcGIS,本篇来讲讲大会整体观感。总体来说,我觉得本次大会的两大亮点可能不在产品技术本身。而是此次宣布的两大关于产品销售的消息。第一是ArcGIS个人版使用许可推出(960元/年, 详情请点击 ),第二是扶持初创GIS企业的计划(该计划主要面向经营线下或线上的软件产品和服务,员工不超过50人,年营业额不超过一千万人民币的初创企业,提供ArcGIS软件三年的免费使用权)。当然技术上也有些亮点,我会就我的认识来谈一谈。 先谈谈两大亮点,而后聊些具体的技术和应用上看到的。 1 ArcGIS个人版使用许可 先来看看960元/年提供了啥。 ArcGIS Pro,ArcMap,ArcCatalog的桌面高级版许可+桌面版中包括的所有高级分析功能拓展模块。直到工作流管理模块来说,已经涵盖了ArcGIS系列桌面的所有软件和功能,非开发人员需要用的ArcGIS桌面已经全部包括,另外传统的ArcGIS系列只留了ArcMap和ArcCatalog,某种程度来说,esri公司确实在推动ArcGIS Pro替代传统桌面。当然我个人觉得更关键的应该是"ArcGIS Online Level 2 Named User account and 100 Service Credits"。 不知大家有没有注意到前文提到的关于Web

为什么ArcGIS 10.3导出 Shapefile的字段名会被截断成3个汉字?解决方法如下

喜欢而已 提交于 2019-12-01 04:55:01
为什么ArcGIS 10.3导出 Shapefile的字段名会被截断成3个汉字?低版本中不是至少可以存储4个汉字吗? 原因 这个问题仍然与编码类型有关。 ArcGIS 10.2 以及更早的版本,ArcGIS写shapefile的时候,遇到中文默认使用Windows当前语言 字符集编码(也称 代码页/CodePage/OEM CodePage),例如中文一般使用的是 CodePage 936(GBK)。 ArcGIS 10.2.1 以及之后的版本,ArcGIS写shapefile的时候,默认使用的是 UTF-8 编码类型。 这两种编码类型存储汉字所使用的字节数是不相同的,上面的关键字中我也给出了 wiki 的链接,有兴趣点进去看看详情。简言之,shapefile自身的限制是字段为9个字节,CP936编码下汉字通常为双字节存储,因此可以存储 9/2=4 个汉字;UTF-8 编码下汉字至少需要3个字节存储,因此最多只能存储 9/3=3 个汉字了。 <ignore_js_op> 举个例子,在Python命令行中,我们求一下 Unicode字符串的长度就可以真相大白。 <ignore_js_op> 解决方法 Perfect Solution: 使用地理数据库,放弃shapefile,避免各种截断问题,这也是存储地理数据的康庄大道。 但是,shapefile的拥趸说

Convert latitude and longitude into esri arcGIS MapPoint

丶灬走出姿态 提交于 2019-12-01 02:31:14
问题 I am having trouble in converting the latitude and longitude values into android esri arcGIS map Point. Here's my code to get latitude and longitude values from GPS coordinates: LocationManager lm; String towers; double lat; double longi; TextView txt; lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE); Criteria crit = new Criteria(); towers = lm.getBestProvider(crit, false); Location location = lm.getLastKnownLocation(towers); if(location != null) { lat = location.getLatitude(

Arcgis数据加载后看不到

為{幸葍}努か 提交于 2019-11-30 17:51:26
今天在gis中遇到数据加载后,但是看不到数据,而且创建要素后,属性表中有,但是窗口中看不到。我在查看了数据框的坐标系才发现,数据框的坐标系是投影坐标系,Shpae文件是投影坐标系。将数据框坐标系改成和shape文件一样的坐标就能看到图形了。 来源: https://www.cnblogs.com/stone-smile/p/11605916.html

arcgis api for js 3.X版本加载矢量json文件,并缩放至图层

百般思念 提交于 2019-11-30 15:46:49
esriLoader.loadModules( [ 'esri/tasks/FeatureSet', 'esri/layers/FeatureLayer', 'esri/geometry/Point', 'esri/geometry/Polygon', 'esri/geometry/Extent', 'esri/dijit/PopupTemplate', 'esri/dijit/LayerSwipe' ], options).then( ([FeatureSet, FeatureLayer, Point, Polygon, Extent, PopupTemplate, LayerSwipe]) => {         //json地址 const jsonUrl = 'http://Json/' + vectorInfo.label + '.json' axios.get(jsonUrl, { headers: {}, emulateJSON: true }).then((res) => { const layerJson = res.data const layerDefinition = { 'geometryType': layerJson.geometryType, 'fields': layerJson.fields } var featureSet = new