arcgis

Interpolate coordinates at unrecorded timestamps

不打扰是莪最后的温柔 提交于 2019-12-03 16:45:40
I have a gps units that records coordinates at rather random intervals (sometimes every 12 sec sometimes every 6 sec). There's another instrument that measures particulate matter at every second. I'm looking for a way to interpolate the coordinates at unrecorded timestamps for every second based on the existing coordinates and the speed of the movement, so that I can merge the gps data with the particulate matter dataset. To make things a bit easier, I can assume that the route between two consecutive coordinates is straight line and is travelled at a constant speed. So all I need to do is to

test suite paths when using ArcGIS JSAPI as an alternate loader in intern

杀马特。学长 韩版系。学妹 提交于 2019-12-03 16:38:16
I have an application built using ArcGIS Javascript API and I've been adding tests using intern. I run it under IIS in Windows 7 while developing. I had no trouble getting the intern tutorial working when getting started and after looking at How to specify alternate loader for intern I was able to set the loader in client.html to <script src="http://js.arcgis.com/3.7/"></script> and I was able get my tests running but only after I changed the path in both the query string and in intern.js to include the parent path as defined in IIS. For example, say my app is hosted at http://localhost

ArcGIS Engine制作DIY地图工具

那年仲夏 提交于 2019-12-03 13:16:49
本节将向你介绍, 利用ToolStrip制作自定义GIS工具条。 步骤如下: ①向ToolStrip中添加一个Button ②向该Button的lmg属性添加图片素材,并将Button的图片比例(ImageScaling)属性设置为自动适应( SizetoFit ),自动调整大小(AutoSzize)为真(True)。最后通过调整ToolStrip的图片尺寸缩放比例(lmageSealingSize)为合适尺寸,例如width:48,height:48,最后再手动调节控件的大小。 ③双击Buton,在其单击事件下写代码。 本例实现的代码如下: /// <summary> /// 放大工具 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ZoomIntoolStripButton1_Click(object sender, EventArgs e) { //当选中为数据制图时 if (tabControl1.SelectedIndex == 0) { //ICommand提供对定义COM命令的成员的访问。 ICommand pCommand = new ControlsMapZoomInToolClass(); //将ICommand强转成ITool

Arcgis api for javascript学习笔记(3.2版本) - 匀速行驶轨迹动画效果

放肆的年华 提交于 2019-12-03 11:04:33
一.前言   有这样一个需求:已知某条线上的n个点的经纬度数组 [[116.2968, 39.90245],[116.297443, 39.902454],[116.297454, 39.90312],[116.296295, 39.903133],[116.296258, 39.902454],[116.296794, 39.902446]] ,实现物体运行轨迹。   如果这些点中两个距离很近,那么我们可以用一个定时器在地图上每次重新画一个点,这样肉眼看到这个点上的运动效果。   但是如果这些点钟两个点距离比较远,那么这个轨迹运动效果就是一跳一跳那种,没有那种连贯性。 二.实现思路   既然两个点A,B因为距离比较远,导致绘制完A点后再绘制B会出现那种A点一下跳到B点的感觉,那么我们可以在A点B点两点之间再平均选择n个点,在绘制完A点之后,再逐个绘制这n个点,最后再绘制B点,这样就可以达到那种平滑运动的效果。   不过在实现的过程中,要考虑一下几个问题:   问题1.两个点之间的距离有的长有的短,那么在两个点之间到底选取多少个点比较合适;   问题2.如果点是一个图标,如一个车辆得图标,那么车辆图标应该与轨迹线平行,并且车头应该朝向运动的方向;   问题3.尽量采用WGS84进行相关计算,因为屏幕坐标点计算相关后会导致一定得误差;   解决方案:给物体设定一个运行速度

arcgis js之调用wms服务

浪尽此生 提交于 2019-12-03 11:01:12
arcgis js之调用wms服务 定义: export const tdtlayer = async () => { let WMSLayer = await arcgisPackage.WMSLayer let WL = new WMSLayer({ url: 'http://xxx.xxx.xxx.xxx:8080/iserver/services/map-tianditu/wms', sublayers: [{ name: '7' // name of the sublayer }], title: '影像底图-墨卡托', spatialReference: [4490, 3857], imageFormat: 'image/png', version: '1.1.1' }) return WL } 调用: let tdtylayer = await tdtlayer().then(res => { return res }) 钻研不易,转载请注明出处。。。。。 来源: https://www.cnblogs.com/s313139232/p/11792358.html

How do I add a shapefile in ArcGIS via python scripting?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-03 09:20:09
I am trying to automate various tasks in ArcGIS Desktop (using ArcMap generally) with Python, and I keep needing a way to add a shape file to the current map. (And then do stuff to it, but that's another story). The best I can do so far is to add a layer file to the current map, using the following ("addLayer" is a layer file object): def AddLayerFromLayerFile(addLayer): import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] arcpy.mapping.AddLayer(df, addLayer, "AUTO_ARRANGE") arcpy.RefreshActiveView() arcpy.RefreshTOC() del mxd, df,

Arcgis map in react js not reponsive

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Following is the component I wrote to load a basic arcgis map using react js import React, { Component } from 'react'; import { loadModules } from 'esri-loader'; const options = { url: 'https://js.arcgis.com/4.6/' }; const styles = { container: { height: '100vh', width: '100vw' }, mapDiv: { padding: 0, margin: 0, height: '100%', width: '100%' }, } class BaseMap extends Component { constructor(props) { super(props); this.state = { status: 'loading' } } componentDidMount() { loadModules(['esri/Map', 'esri/views/MapView'], options) .then(([Map,

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

倖福魔咒の 提交于 2019-12-03 08:35:39
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 the join features is randomly selected as the matching feature." I have a function to intersect points

arcgis python 获得arcgis的版本和安装路径

烂漫一生 提交于 2019-12-03 07:56:27
import arcpy # Use the dictionary iteritems to iterate through # the key/value pairs from GetInstallInfo d = arcpy.GetInstallInfo() for key, value in d.iteritems(): # Print a formatted string of the install key and its value # print("{:<13} : {}".format(key, value)) install:desktop SourceDir : G:\setup\arcgis10.2.2\arcgis10.2.2\ArcGIS_Desktop_1022_140090\Desktop\SetupFiles\ InstallDate : 2019.07.19 InstallDir : c:\program files (x86)\arcgis\desktop10.2\ ProductName : Desktop BuildNumber : 3552 InstallType : N/A Version : 10.2.2 SPNumber : N/A Installer : dell SPBuild : N/A InstallTime : 17:43

ArcGIS制作地形图【详细步骤】

半腔热情 提交于 2019-12-03 07:53:30
结果图: 详细步骤: 一、在ArcSence中加载带有投影坐标系的dem数据 Dem的属性设置为下图可有上面的效果。 二、提取栅格范围 找到工具【3D Analyst】【转换】【栅格范围】双击打开设置参数,路径我这里选择默认,注意输出类型选择“ LINE ”。 三、分割边界线 在【数据管理工具】【要素】【在折点处分割线】,双击打开设置如 四、添加字段Height 对刚刚生成的第二条线右键打开【属性表】:在【表选项】中选择【添加字段】。 右键新建的“Height”字段选择【计算几何】,选择“中点的Z坐标”,坐标为dem数据的投影坐标系。点击确定得到结果。 五、生成地形面 对第二条线双击进入【属性】设置如图: 六、最后设置颜色,出图!! 来源: https://www.cnblogs.com/abu-/p/11783921.html