arcgis

Calculate WMTS layer map extent with GeometryService

有些话、适合烂在心里 提交于 2019-12-25 08:50:07
问题 I have WMTS background layer, a WMS Layer and an array of points in a graphic layer. The points have wgs84latlng coordinates that are used to calculate the extent of the map. NOT WORKING: When calculating the extent with a GeometryService the the wms layer is nicely projected on top of it only it's position is shifted upwards and not corresponding with the GeometryService calculated position of the points in the GraphicsLayer... service: <esri:GeometryService id="geometryService" concurrency=

Import error for openpyxl

假如想象 提交于 2019-12-25 07:11:05
问题 I'm very very new to coding and I'm having an issue importing openpyxl into my python program. I imagine the issue is due to where I have it saved on my computer. I've downloaded other libraries (xlrd, xlwt, xlutils) before and just saved them in my: C:\Python27\ArcGIS10.1\Lib, or C:\Python27\ArcGIS10.1\Lib\site-packages, or C:\Python27\ArcGISx6410.1\Lib, or C:\Python27\ArcGISx6410.1\Lib\site-packages directories and python has been able to "see" them when i import them into a script. I've

onChange not sufficient to trigger query from Dojo Combobox

懵懂的女人 提交于 2019-12-25 06:38:04
问题 this is closely related to this post: Is there an onSelect event or equivalent for HTML <select>? ...but specifically for the Dojo ComboBox..(I am using Dojo w/ ArcGIS JSAPI). I have three combo boxes, which populate the successors using queries triggered by the selections from the dropdown list. My problem is that if the second combobox selection remains the same, the query is not triggered. I have tried using onblur and several other events instead of onchange, and tried to reset the value

wxPython and ARCGIS

微笑、不失礼 提交于 2019-12-25 00:06:58
问题 I am working on an Desktop application built with wx Python. I would like the application to visualize maps(shapefiles) like a GIS software and provide interactions with the map. I was looking through arcpy and arcgisscripting but I am not sure if it help me render the shapefile on the Panel. Please do let me know if it is possible? 回答1: There is an application created with wxPython for GIS here: http://thuban.intevation.org/ There's also one for GRASS: http://grass.osgeo.org/wiki/WxPython

Creating Google Maps' interface in Dojo

时光毁灭记忆、已成空白 提交于 2019-12-24 10:57:00
问题 I am trying to use the ArcGIS 2.1 JS API to create a custom interface that looks similar to Google Maps. What is confusing me (particularly with Dojo's layout scheme) is how Google Maps has a map pane that extends the whole width of the page and has a left search results panel that seems to be floating above the map pane. How does this work in terms of Dojo layouts? I have frustratingly worked with BorderContainers and looked at the documentation for a FloatingPane with no avail. Any

如何使用ArcPy

人盡茶涼 提交于 2019-12-24 06:41:31
ArcPy可以很方便的通过脚本调用ArcGIS的各种函数和功能。在此简单介绍一下。方法包括两种,第一种是直接使用ArcGIS中的命令行,输入一句,执行一句;第二种是创建一个Python脚本,直接执行其中的代码。 第一种,调用ArcGIS命令行: 之后即可写相应的代码了。输入import arcpy,导入相应的包,即可完成相应的操作。 第二种,写脚本: 首先打开ArcCatalog,在相应的文件夹下,创建一个Toolbox,之后在其中添加一个Script即可。 点击下一步后,输入script的保存位置路径。 点击下一步后,可以在这里输入相应的参数。 分别输入参数的名字和类型即可。 还可以更改下方的一些参数。如Environment等。 之后点击脚本的右键,可以选择open,即执行,输入相应的参数即可。具体写代码则是右键,选择edit,在其中输入。 在编辑脚本的时候,可以获取具体的参数可以采用arcpy.GetParameterAsText(i)的方式,其中i代表的是脚本设置时输入参数的个数,从i=0开始。 例如: 1 import os 2 from arcpy import env 3 4 #获取输入的参数 5 file_output_path=arcpy.GetParameterAsText(0) 6 shp_output_pt=arcpy.GetParameterAsText

Is it possible in ArcGIS to draw a polyline or polygon programmatically?

社会主义新天地 提交于 2019-12-24 06:37:21
问题 Is it possible in ArcGIS to draw a polyline or polygon programmatically if I provide the required coordinates for the geometry? Like for a polyline, I would be providing two endpoints for the line. 回答1: This is possible in both 2D/3D. The simplest way is adding a Graphic containing the Polyline (or any other geometry) to the view's graphics: // Coordinates of Zurich, Switzerland var pointA = [8.5107858, 47.3922425]; // Coordinates of Kochi, India var pointB = [76.3333005, 10.0023473]; var

UnsatisfiedLinkError Arcgis 10.2.3 Android ArcGISRuntime.setClientId

回眸只為那壹抹淺笑 提交于 2019-12-24 00:46:31
问题 I'm having a problem with Arcgis SDK for Android which I've never had before. It seems an issue with its native interface when I call this method: ArcGISRuntime.setClientId I have this method inside onCreate() (Application class), so it crashes at the beginning This is the stack trace: java.lang.UnsatisfiedLinkError: nativeIsClientIdValid at com.esri.core.runtime.LicenseImpl.nativeIsClientIdValid(Native Method) at com.esri.core.runtime.LicenseImpl.b(Unknown Source) at com.esri.android.runtime

installing pip on python 2.7.8 on windows

眉间皱痕 提交于 2019-12-23 19:16:56
问题 I am trying to install the module pip to python 2.7.8 the one that arcGIS installs for you. I am doing the bootstrap method of installing pip and I am running into an error when I run the get-pip.py with cmd. I get the following error: Warning (from warnings module): File "c:\users\vlaw\appdata\local\temp\tmpzamnrk\pip.zip\pip_vendor\requests\packages\urllib3\util\ssl_.py", line 122 InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL

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