arcgis

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

被刻印的时光 ゝ 提交于 2019-12-06 09:42:49
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"

dojo parser and a TypeError using ArcGIS JS API

半城伤御伤魂 提交于 2019-12-06 07:58:32
问题 I'm getting this error: TypeError: 'undefined' is not a function (evaluating 'parser.parse()') Here's my code. <script> require([ "esri/map", "esri/layers/FeatureLayer", "esri/dijit/Legend", "esri/digit/HomeButton", "dojo/_base/array", "dojo/parser", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/layout/AccordionContainer", "dojo/domReady!" ], function( Map, FeatureLayer, Legend, arrayUtils, parser, HomeButton ) { parser.parse(); var map = new Map("map", { basemap:

Uncaught TypeError: Cannot read property 'on' of undefined in arcgis

依然范特西╮ 提交于 2019-12-06 06:22:52
i am trying to display navigation tool and switch base map.Individually both are working good when i combine it its showing Uncaught Type Error: Cannot read property 'on' of undefined.can any tell me what is the mistake <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/> <title></title> <link rel="stylesheet" href="https://js.arcgis.com/3.15/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="https://js.arcgis.com/3.15/esri/css/esri.css"> <style> html, body,

WebGIS实战系列 一、环境准备

久未见 提交于 2019-12-06 02:11:01
目录 @ 前言 近期会在博客发布一系列有关 WebGIS 的实战课程,技术栈: vue 全家桶+ arcgis Server + arcgis API 3.x + asp.net 实现一个简单的城市供水管网系统。 前置知识准备: es6 语法 node 的简单安装包 vue 、 vue-cli 3.0 、 vuex , vue-router ,以及 elementUI 框架 axios asp net mvc 框架(后台可能会使用 koa2 ) arcgis SOE 开发扩展 arcgis server 功能 arcgis 的简单操作:发布地图服务,矢量化地图等等。 arcgis sde for postgresql 安装 ThreeJS 实现三维管道展示 我的环境是 arcgis 10.2 版本的,大家也可以进行安装。 可以补充一下这些知识,我也会在博客里面写有关代码的说明。 1. 加载地图 首先使用 vue-cli 创建一个项目,我是使用 element UI 进行搭建项目的整体框架,界面如下,代码我会上传到我的 github 上面 esri 推出了一个非 dojo 框架加载地图的一个包 esri-loader ,我们可以查看 https://github.com/Esri/esri-loader ,按照提示的步骤进行操作,首先输入命令: npm install --save

Installing pip using ArcGIS-installed Python 2.7

泄露秘密 提交于 2019-12-05 22:13:12
问题 I'm trying to install Scrapy for Python 2.7 on Windows 8.1 and I understand that I first need pip to be installed. Since I have Python installed through ArcGIS 10.2, I think that I need to install pip under C:\Python27\ArcGIS10.2\lib\site-packages. Once pip is installed in that directory I receive the error code: >>> import pip Traceback (most recent call last): File "<interactive input>", line 1, in <module> File "C:\Python27\ArcGIS10.2\lib\site-packages\pip\__init__.py", line 10, in <module

Arcgis : how to get device location

烈酒焚心 提交于 2019-12-05 10:36:14
Hie i tried to implement this codes in my application but it doesnt work , i dont know where i went wrong. basically, when i launch the sample of the device location. it doesnt show me where is my current location and i dont see any blue dots that resembles the current location i am at. the only thing that i see is the map . just a plain zoom out map. I would be really thankful if someone who could help me out on how to get the current location with the blue dots that is displayed on the map.. this is my MainActivity.class public class HelloWorld extends Activity { MapView mMapView = null;

ArcGIS Server 10.2忘记用户名密码的解决方案

我们两清 提交于 2019-12-05 02:34:28
忘记了ArcGIS Server Manager的密码,可以采用以下方法进行重置。 1、找到ArcGIS Server的安装目录 D:\Program Files\ArcGIS\Server\tools\passwordreset。 2、使用命令行进入该目录。 3、使用命令查看用户列表:PasswordReset -l。 4、使用命令重置密码:PasswordReset -p 新密码。看到修改成功的提示,即表示修改成功。 5、重启服务,重新打开浏览器登录ArcGIS Server Manager验证。 另外,在站点文件下(建立站点的时候,创建了一个文件夹名字叫做arcgisserver,里面有两个主要文件夹directories和config-store.)arcgisserver下,定位到 config-store\security\super\下,里面有两个JSON文件,其中super.json文件,保存着站点的用户名和密码(被加密过),可以用记事本打开查看。 来源: https://www.cnblogs.com/hans_gis/p/11898317.html

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

最后都变了- 提交于 2019-12-05 02:30:41
问题 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

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

感情迁移 提交于 2019-12-05 01:00:47
问题 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

ArcGIS随机数生成

六月ゝ 毕业季﹏ 提交于 2019-12-04 23:22:27
arcgis python 随机数 语法用法一例: //--------------------------------------------- //定义函数getnums 返回一个随机数(0,5) def getnums(): return arcgis.rand('Integer 0 5') 调用方法 Expression: getnums() Expression Type: PYTHON_9.3 --the--end--- ————————————————------------------------------------------------- #coding:UTF-8 import time import random import re # 根据时间返回,返回随机年月日时间 def getRandomDate(sYear, sMonth, sDay, eYear, eMonth, eDay): a1=(sYear,sMonth,sDay,0,0,0,0,0,0) a2=(eYear,eMonth,eDay,23,59,59,0,0,0) start=time.mktime(a1) end=time.mktime(a2) t=random.randint(start,end) date_touple=time.localtime(t) date=time