arcgis

Output shapefile for the igraph network in R

送分小仙女□ 提交于 2019-11-30 13:58:06
Hello I have a network in R using the igraph library Vertices: 616 Edges: 6270 Directed: TRUE No graph attributes. Vertex attributes: name, Lat, Lon. Edge attributes: V3. How can I generate two shapefiles for the Vertices and the Edges using the Lat, Lon info in the vertex? You can do this using the sp and maptools packages. There are handy functions writePointsShape() and writeLinesShape() in maptools that will write to the ESRI shapefile format. Before doing this, it is necessary to extract the lat/lon information from the graph vertices and put it into a SpatialPoints object for the

arcgis之gp服务发布

爱⌒轻易说出口 提交于 2019-11-30 12:49:17
arcgis之gp服务发布 注意: 1.arcgis服务可以直接通过arcmap来发布,gp服务就是将arcmap中的工具发布为服务,达到线上处理数据的能力 2.以文件为参数时不要以文件直接为参数,可以文件在服务器上的地址为参数,达到调用文件的目的 3.arcmap中尽量不要出现汉字,无论是文件夹名称还是文件名称 4.获取gp服务返回的参数时需要分为两步,第一步请求服务,获取jobId,第二步将jobId拼进链接,然后用ajax请求,可得到详细信息。 来源: https://www.cnblogs.com/s313139232/p/11305393.html

How to solve CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]?

泪湿孤枕 提交于 2019-11-30 08:35:16
I have an error where it crash the application when it is starting up. This is the error that i got: *** Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]' *** First throw call stack: (0x250b022 0x2709cd6 0x24b3a48 0x24b39b9 0x217ec0d 0x2174f55 0x158f3f7 0xbc74e 0xbe512 0xbfa26 0xbe4ad 0x224ffda 0x224f956 0x224e449 0x224ab9a 0x24df970 0x247f1c1 0x2442967 0x2441d84 0x2441c9b 0x2c0a7d8 0x2c0a88a 0x1559626 0x2aed 0x2a65) terminate called throwing an exception i tried using Exception breakpoint and it doesn't show which part of

Implementing a brute force algorithm for detecting a self-intersecting polygon

可紊 提交于 2019-11-30 07:58:35
I initially implemented the Hoey-Shamos algorithm, however it is too complex for future maintainability (I have no say in this), and it wasn't reporting correctly, so an optimized brute force algorithm is what I'm going to use. My question is: How can I optimize this code to be usable? As it stands, my code contains a nested for loop, iterating the same list twice. EDIT: Turned lines into a HashSet and used two foreach loops... shaved about 45 seconds off scanning 10,000. It's still not enough. foreach (Line2D g in lines) { foreach (Line2D h in lines) { if (g.intersectsLine(h)) { return false;

ArcGIS属性域Domain探索

谁说我不能喝 提交于 2019-11-30 07:46:59
最近在研究UPDM2019,想着转一套模型到PostGIS中,arcgis当中的属性域Domain不能直接转入到PostGIS,需要手动转换。 ArcGIS属性域Domain 属性域是描述字段类型合法值的规则,提供了一种增强数据完整性的方法。属性域是可接受的特性值的声明。属性域用于约束表或要素类的任意特定属性中的允许值。如果要素类中的要素或表中的非空间对象已被分组为各个子类型,则可将不同的属性域分配给每个子类型。如果一个属性域与某个特性字段相关联,则只有该属性域内的值才对此字段有效。也就是说,此字段不会接受不属于该属性域的值。使用属性域可针对特定字段限制可供选择的值,从而有助于确保数据完整性。 ArcGIS Domain信息在ArcCatalong数据管理可见(任选一要素,右键属性->子类型->属性域),在此处可复制编码值到excel。 上述编码值可直接复制到excel 属性域Domain在数据库中的存储 在测试test.mdb中导入部分空间表,会导入跟这些空间数据表相关的Domain信息。 打开mdb,其中GDB_Items中保存了Domain的信息,Definition字段里面以xml结构保存了字典表值,表里面不只包含Domain信息,还包含关系类等。 下表为GDB_Items 下表为GDB_ItemTypes,从该表可以读取Domain类型对应的UUID

vue地图可视化 ArcGIS篇

本秂侑毒 提交于 2019-11-30 05:36:31
ArcGIS for javascript开发心得 本次实例中采用ArcGIS for javascript3.24版本,由于版本3与4在API等存在较大区别,就不一一列举,详细区别看 官方解释 arcgis for js4.7版本能够自动创建layer、graphs等类,而不像3.24版本需要在图形渲染前重新new 新的类。然而,查找大量文件资料,网上有关ArcGIS forjavascript的资料甚少,更不用说通过vueJS+arcGIS开发出一套可视化平台,在不断查看官方文档和实际操作,总结自己的构思和使用心得。 技术采用: vueJS + vuetify + axios + arcGIS3.24 + echarts 如图所示:可视化界面采用三层三文治结构,从server(后台,非online server)读取数据,vueJS负责数据驱动,ArcGIS与echarts负责数据的图形化。同时引入浏览器的web sql db本地数据库进行海量数据缓存 ArcGIS API for Javascript 是由美国 Esri 公司推出, 基于 dojo框架和 REST 格式的一套编程接口(目前最新版本为 3.3, dojo1.8。 通过 ArcGIS API for Javascript可以对 ArcGIS for Server 进行访问调用,并将 ArcGIS for

arcgis jsapi接口入门系列(3):各种类型的图层添加

孤街醉人 提交于 2019-11-30 00:32:33
这里说的tomcat切片,是指arcgis server切片后,把切片图片文件用tomcat发布(其他任意web服务器发布都行) //添加tomcat切片图层 addTomcatTileLayer: function () { //图层配置 let layerConfig = { //切片所在的url,url结尾应该是 _alllayers/ url: "http://xxx/Layers/_alllayers/", //图层范围 tileExtent: "-0.5,-973.5,1919.5,0.5", //切片文件格式 tileFormat: "png", //切片级别 tileLevel: "0,1,2,3,4,5,6,7", //切片分辨率 tileResolution: "2.1166709000084669,1.8520870375074086,1.5875031750063502,1.3229193125052918,1.0583354500042335,0.79375158750317509,0.52916772500211673,0.26458386250105836", //切片比例尺 tileScale: "8000,7000,6000,5000,4000,3000,2000,1000", //切片大小cols tileSizeCols: 512, /

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

半腔热情 提交于 2019-11-30 00:32:19
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 下,因为拷贝的文件夹名称都为arcgis_js_api,因此当拷贝第二个文件夹时选择覆盖即可; 3. 将 C:\inetpub\wwwroot\arcgis_js_api\library\2.6\jsapi\js\esri 下的 esri.js 文件 C:\inetpub\wwwroot\arcgis_js_api\library\2.6\jsapi\js\dojo\dojo 下的 dojo.xd.js 及 dojo.xd.js.uncompressed.js 两个文件 中的 "[HOSTNAME_AND_PATH_TO_JSAPI] 替换为 djConfig.url + "/arcgis_js_api/library/2.6/jsapi/ (注意别少了冒号) 同理将 C:\inetpub\wwwroot

arcgis arcpy 克里金插值 掩膜 配置符号系统 自动生成图片

自作多情 提交于 2019-11-29 23:59:19
整体思路,最后要加载到mxd文件中,然后导出图片 首先加载mxd文件 mxd = mapping.MapDocument(r"./11.mxd") 然后读取数据 并加载到图层中 sr = arcpy.SpatialReference(4326) # 读取csv数据 创建 XY 事件图层 input_path = './res.csv' arcpy.MakeXYEventLayer_management(input_path, "Lng", "Lat", "points_lyr", sr, "pm10") df = mapping.ListDataFrames(mxd, "图层")[0] # 添加点的图层 points_lyr = mapping.Layer("points_lyr") mapping.AddLayer(df, points_lyr) 设置掩膜 并生成克里金栅格数据 env.mask = "../边界面/边界面.shp" arcpy.CheckOutExtension("Spatial") # 生成克里金栅格数据 outKring2 = Kriging("points_lyr", "pm10", KrigingModelOrdinary("SPHERICAL", 0.001, 0.89, 189.76, 42.95), 0.001) 创建栅格数据图层并加载到mxd中