esri

Intersect two layers and get resulting features

一个人想着一个人 提交于 2019-12-23 17:52:05
问题 I have X layers on a map and I need to intersect chosen layers (two per time) and color resulting features. I'm trying to get this code working // get first feature (index 0) ESRI.ArcGIS.ADF.Web.Geometry.Geometry adfFeature = m_firstLayer.GeometryFromRow(m_firstLayer.Rows[0]) as ESRI.ArcGIS.ADF.Web.Geometry.Geometry; // THE FOLLOWING LINE RETURNS NULL ESRI.ArcGIS.Geometry.IGeometry featureInterface = adfFeature as ESRI.ArcGIS.Geometry.IGeometry; ESRI.ArcGIS.Geometry.ITopologicalOperator

Intersect two layers and get resulting features

余生长醉 提交于 2019-12-23 17:43:17
问题 I have X layers on a map and I need to intersect chosen layers (two per time) and color resulting features. I'm trying to get this code working // get first feature (index 0) ESRI.ArcGIS.ADF.Web.Geometry.Geometry adfFeature = m_firstLayer.GeometryFromRow(m_firstLayer.Rows[0]) as ESRI.ArcGIS.ADF.Web.Geometry.Geometry; // THE FOLLOWING LINE RETURNS NULL ESRI.ArcGIS.Geometry.IGeometry featureInterface = adfFeature as ESRI.ArcGIS.Geometry.IGeometry; ESRI.ArcGIS.Geometry.ITopologicalOperator

unzip file in R after uploading in Shiny server

谁都会走 提交于 2019-12-23 16:33:52
问题 I am trying to use Shiny on a local server of ours, to build an app that allows the user to upload a .zip file containing an ESRI shapefile and associated files. Shiny server's fileInput can obtain the data, and when it does so it sotres it in a temporary directory & filename. That filename seems to always be a rather generic "0". If I by hand try to unzip file "0" it works. But if I try to do it programmatically with the R function unz (which I gather should work) it fails, the error message

AccessViolationException from System.Windows.Forms, using WinFormsHost in WPF

落爺英雄遲暮 提交于 2019-12-23 16:27:22
问题 I'm facing a nasty issue when developing a WPF/WinForms interop application. I've been trying to resolve this issue for three days, but I'm unable to make any headway. I doubt I can provide enough information to get a resolution, but I'm looking for anyone who could explain what on earth is going on here? The component I am using is AxMapControl (ESRI ArcGIS Engine 9.3.1 SP2), which as far as I know is COM-wrapped native code, exposed as a WinForms control. The component is embedded in our

无法嵌入互操作类型"ESRI.ArcGIS.Geometry.PolygonClass/PointClass".请改用适用的接口

狂风中的少年 提交于 2019-12-22 00:16:50
在基于C#的AE中出现如下错误提示: 无法嵌入互操作类型"ESRI.ArcGIS.Geometry.PolygonClass".请改用适用的接口 解决方法 :在所在项目 找到相关引用 打开“属性 ” 把“嵌入互操作类型”设置为False. 来源: CSDN 作者: 我想我很倔强 链接: https://blog.csdn.net/qq_42849332/article/details/103648536

ArcGis For Silverlight API,地图显示Gis,绘制点,线,绘制图等(一)

可紊 提交于 2019-12-18 14:58:39
平台:Vs 2010,Blend 4,Silverlight 4 调用API: ArcGis for Silverligth API(ESRI.ArcGIS.Client) 前言:本想只写一篇知识性的简单介绍下 ArcGis API,后来发觉程序做的比较复杂,不是一两篇能搞定的为了让大家能更深入的了解 ArcGis API 干脆写一个连载长篇的!写的不好请大家批评指正! 好了不说废话少说了!国际惯例先上图吧!图上实现的功能我会在后面章节中讲解! 项目准备:ArcGis API(自己找地址吧),我用的ESRI.ArcGIS.Client是1.1.0.97的版本。其它版本也应该差不多! 好了我们先建个网站项目,然后建个silverlight项目,把ArcGis Api 添加到项目中 我们先把地图加到silverlight中 Xmal中代码: <UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas

ArcGIS-PictureMarkerSymbol-向地图添加图片标记

北慕城南 提交于 2019-12-16 17:14:53
1、基于4.13 版本 <link rel="stylesheet" href="https://js.arcgis.com/4.13/esri/themes/light/main.css"/> <script src="https://js.arcgis.com/4.13/"></script> 2、JS代码 require([ "esri/Map", "esri/views/SceneView", "esri/symbols/PictureMarkerSymbol", "esri/geometry/Point", "esri/Graphic", "esri/layers/GraphicsLayer" ], function(Map, SceneView,PictureMarkerSymbol,Point,Graphic,GraphicsLayer) { var map = new Map({ basemap: "gray" }); var view = new SceneView({ container: "viewDiv", map: map, zoom: 12, center: [0, 0] }); var gLayer = new GraphicsLayer(); map.add(gLayer); var symbol = { type: "picture-marker"

debugging vb6 form inside 3rd party application

僤鯓⒐⒋嵵緔 提交于 2019-12-13 01:44:23
问题 I have to travel back in time and debug a VB6 form. It is used inside an application (not ours, Esri ArcMap.exe). I see VB6 has some debug capabilities, but nowhere do I see, like in .NET, the ability to "launch another app" or "attach" to a running application. How can I debug my VB6 code while running inside a 3rd party application ? 回答1: It's right there; you just didn't see it. If your form is hosted inside a DLL (most likely from your description), you have two options, both of which can

Convert early-binding code to late-binding

限于喜欢 提交于 2019-12-12 18:15:13
问题 I've often written early-binding code in VBA and VB6 to automate office applications (Word, Excel, etc) then switched it to late-binding to handle multiple versions of those applications. I'm trying to do the same thing but I am automating an ESRI ArcMap GIS application and the concepts I've used in the past do not seem to be translating. The following code runs correctly: Sub EarlyBinding() Dim ArcMap As esriArcMapUI.MxDocument Set ArcMap = GetObject("C:\Users\Mike\Downloads\Assessment

Leaflet JS - changing esri shape into marker on certain zoom level

不羁的心 提交于 2019-12-12 05:38:39
问题 I'm using leaflet.shapefile plugin with Leaflet JS, and I'm trying to change the esri shape/polygon into normal marker icons depending on a certain zoom level The plugin allows me to upload a zipfile onto our webserver, which then is processed by the plugin and added as a layer into Leaflet JS var properties = new L.Shapefile('data/Test.zip', { style: propertyStyle, onEachFeature: propertyOnEachFeature }) What I would like to achieve: when the user zoomed in the polygon shape is visible,