esri

How to encode XML into ESRI Shapefiles using Python?

两盒软妹~` 提交于 2019-12-11 15:06:14
问题 I prepared the following Python script to this XML into ESRI Shapefiles. The starting point for the script was this post. #!/usr/bin/env python # -*- coding: utf-8 -*- # # Requires pyshp: https://pypi.python.org/pypi/pyshp # # Conversion for http://daten.berlin.de/datensaetze/liste-der-gedenktafeln-berlin # File: http://gedenktafeln-in-berlin.de/index.php?id=31&type=123 # from xml.etree import ElementTree from datetime import datetime import shapefile import os def get_value(list, index,

use R to remove header (6 lines) from .asc file (ESRI ascii grid) and export

三世轮回 提交于 2019-12-11 14:48:43
问题 I have over 800 .asc files (ESRI ascii grids) that each have a header consisting of 6 lines, then the raster data separated by spaces. Here is a small file as an example. I read it in using read.asciigrid (sp package). new("SpatialGridDataFrame" , data = structure(list(mydata.asc = c(4, 4, 4, 4, 3, 4, 4, 4, 1, 1, 1, 1, 1, 4, 4, 4, 4, 3, 4, 4, 4, 1, 1, 1, 1, 1, 4, 4, 4, 4, 3, 4, 4, 4, 1, 1, 1, 1, 1, 4, 4, 4, 4, 3, 4, 4, 4, 6, 1, 1, 1, 1, 4, 4, 4, 4, 3, 4, 4, 4, 6, 1, 1, 1, 1, 4, 4, 4, 4, 3, 4,

Using Durandal dojoConfig and ESRI Maps

南楼画角 提交于 2019-12-11 05:29:07
问题 I'm trying to get ESRI maps working with Durandal and came across this link in the Durandal docs DurandalEsri This seems to work but now Durandal is having problems finding some of my .js files. If I leave the following dojoConfig out my scripts are found but then the maps won't work. `var dojoConfig = { baseUrl: './', async: true, tlmSiblingOfDojo: true, parseOnLoad: false, aliases: [['text', 'dojo/text']], packages: [ { name: 'esri', location: '//serverapi.arcgisonline.com/jsapi/arcgis/3.5

Esri ArcObjects - Esri.ArcGIS.Version assembly

大憨熊 提交于 2019-12-11 00:06:03
问题 Its a long shot, has anyone used Esri ArcObjects recently? According to the docs: A new requirement is runtime binding. Runtime binding refers to locating the appropriate ArcGIS product installation of a stand-alone ArcGIS Desktop or Engine application before any ArcObjects code (including license initialization) is called. The application programming interfaces (APIs) to establish runtime binding are in the ESRI.ArcGIS.RuntimeManager class in the ESRI.ArcGIS.Version assembly But I cannot

Combining bordering shapefiles in R

為{幸葍}努か 提交于 2019-12-10 23:07:39
问题 I have five shapefiles of bordering counties in California that I am trying to combine into one large shapefile and maintain the original borders of the counties. I then want to plot points such as this so the map only needs to be a simple map of county boundaries. Is there a way to do this in R or will I have to use something like ArcGIS? There is extensive documentation about merging within a shapefile such as here where both shapefiles have the same coordinates. But no documentation on

Reuse an AngularJS template between page views for the same route

僤鯓⒐⒋嵵緔 提交于 2019-12-10 11:33:09
问题 I am using a third party JS API that creates an object attached to an html element on my angular template. Each time the template is loaded I want to reuse the object already created and reattach it to the correct html element. In this plunker you can see the issue demonstrated. And here are the steps to reproduce. I really appreciate any suggests on how to preserve the first object between page loads. Thanks in advance. Problem Description To understand the problem: Tap the "Show Map" link

ArcGIS AddIN编译旧版本项目问题

梦想与她 提交于 2019-12-09 13:15:46
ArcGIS 的 Addin 项目,后来 ArcGIS 版本升级为高版本 AddIN 项目想做一些细节调整,结果出生成时没有生成 esriaddin 文件, ArcMap 中 AddIn Manager 中也没有该插件。 后来发现问题是由于 ESRI 对不同版本的 VS 中 SDK 命名不一致造成的。 解决方法是: 用记事本打开 .csproj 项目文件,将其中的路径更改为正确的路径即可, 如 <Import Project="$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.targets" Condition="Exists('$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.targets')" /> 更改为: <Import Project="$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.11.targets" Condition="Exists('$(MSBuildExtensionsPath)\ESRI\ESRI.ArcGIS.AddIns.11.targets')" /> <Warning Text="Unable to create .esriAddin; missing ESRI ArcGIS Add-in SDK

Updating ESRI Rest services with post

断了今生、忘了曾经 提交于 2019-12-08 13:02:57
问题 I am atempting to post a new url to a service on ESRI (I own it) with a post using Requests . After printing the line post_url the JSON is updated as I want it however when I post it nothing happens despite getting a 200 status. Is the issue with the post or the find / replace ? json_url = "https://www.arcgis.com/sharing/rest/content/items/serviceID?&token=XXX" update_url = "https://www.arcgis.com/sharing/rest/content/users/USERNAME/folder/items/ServiceNumber/update?" get_json = requests.get

ESRI silverlight print map without using print task

坚强是说给别人听的谎言 提交于 2019-12-08 10:08:41
问题 I have a silverlight application which different panels, One of the panel contains the ESRI map, I want to print what is coming on the map panel, It's more like a print screen for map (but it should not include rest of the controls of the client application). On investigation I found that we can use PrintTask but it uses GP server. I do not want to invoke the ESRI service for print. Is there any other way to print what is coming on the screen (inside the map panel) in the silver light? Atul

arcgis for js 小功能组件大集合

偶尔善良 提交于 2019-12-07 10:04:47
大家可能觉得既然是地图,那么肯定有一些跟用户交互的一些组件或者小功能什么的吧,聪明,确实有这些功能,漫游,放大,缩小,测面积,定位等等,这次来个大集合,为什么来大集合呢,我是不会告诉你我是因为研究这些功能的时候都把代码写在一起了,懒得分开了,我真是太(sang)机(xin)智(bing)了(kuang)!!! 贴下代码 <!DOCTYPE html> < html lang = "en" > < head > < meta charset = "UTF-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < meta http-equiv = "X-UA-Compatible" content = "ie=edge" > < title > arcgis地图完整功能 </ title > < link rel = "stylesheet" type = "text/css" href = "./arcgis_js_api/library/3.17/3.17/dijit/themes/tundra/tundra.css" /> < link rel = "stylesheet" type = "text/css" href = "./arcgis_js_api