Questions tagged [arcmap]

ArcMap is a piece of software within the ArcGIS suite. It is utilized for cartographic production as well as geospatial analysis.

Overview

ArcMap is used primarily to view, edit, create, and analyze geospatial data. ArcMap allows the user to explore data within a data set, symbolize features accordingly, and create maps.

Tag usage

Consider whether the question is more suitable on Stack Overflow SE or GIS SE

373 questions
15
votes
6 answers

How to remove tags from a string in python using regular expressions? (NOT in HTML)

I need to remove tags from a string in python. Title What is the most efficient way to remove the entire tag on both ends, leaving only "Title"? I've only seen ways to do this with HTML tags, and that…
Tanner Semerad
  • 12,472
  • 12
  • 40
  • 49
7
votes
2 answers

return characters between two underscores

I would like to extract a string of characters between two underscores. The number of characters between and on each side of the '_' will vary, but there will only ever be two underscores. The long field with underscores is a text field, the field…
cherrytree
  • 1,561
  • 3
  • 16
  • 33
5
votes
1 answer

TS2564 Property mapViewEl has no initializer

I am working to get a ArcMap Javascript for Angular (v4) to display a map in a Angular (v10) project. All the code samples (here, ESRI Offical here, and stackblitz here) I have found are very similar. The viewChild is created like this : export…
4
votes
2 answers

VB.NET embedded DLL in another DLL as embedded resource?

I have seen this done in C#, such as here although, I cannot seem to figure out how to do this in VB.NET. For some background, I have created a custom ComboBox control as a .dll, and I need to implement it in another .dll(ArcMap…
Logan B. Lehman
  • 4,867
  • 7
  • 32
  • 45
4
votes
1 answer

Python UUID badly formed hexadecimal string

Trying to generate a UUID based on an 6.6 XY coordinate pair and the date. However I am giving the function a 'badly formed hexadecimal UUID string'. Python noob plz help. def LeID(Xv,Yv,Dv): import uuid import string import arcpy …
Simon
  • 66
  • 1
  • 7
4
votes
1 answer

How to update values in Excel DURING a calculation and based on previous results of that calculation?

I am working on a model to match supply and demand. A short explanation to the model: I have several “supply” points with a certain unit of resources and several “demand” points. The aim is to “discharge” the available resources from the “supply”…
CaroW
  • 63
  • 6
3
votes
2 answers

Create numPy array from raster image

I'm trying to turn a 4band (RGB & nr Infrared) raster image into a numPy array in ArcMap. Once successfully converted to an numpy array I want to count the number of pixels that have no data on the image. When inspected in ArcMap these pixel(s)…
Mr Mystery Guest
  • 1,464
  • 1
  • 18
  • 47
3
votes
1 answer

Clipping a Pandas dataframe to a shapefile using Python

I have a Pandas dataframe containing Latitude and Longitude data for an abundance of points, and I would like to clip them to a shapefile; ie: everything outside the boundaries of the shapefile is dropped. Is there a way to achieve this within a…
Cobain
  • 195
  • 1
  • 14
3
votes
3 answers

Getting a central point from an esri multipoint with javascript

I have created a webpage displaying markers on an ersi map using javasvipt. Data: MapNorth MapEast 439624 504743 439622 504736 439722 504775 439738 504739 439715 504774 439734 504739 The javascript code: var points =…
Easty
  • 387
  • 1
  • 6
  • 17
3
votes
3 answers

Shapefile with overlapping polygons: calculate average values

I have a very big polygon shapefile with hundreds of features, often overlapping each other. Each of these features has a value stored in the attribute table. I simply need to calculate the average values in the areas where they overlap. I can…
Andreampa
  • 233
  • 1
  • 3
  • 10
3
votes
1 answer

When I open my document after mxd.save the text is the same even though it shows it's been replaced during export

I've very new to coding anything so sorry if this is an easy fix. When I export my map, everything is fine and my script replaces the text perfectly. However, when I open my map document manually to visualize it, the text is still the same as before…
2
votes
1 answer

Are the loops in python similar to matlab?

I'm new in using Python - Arcmap. I have on my map a list of layers with the nearly same name (bound3 to bound50) I want to calculate the MinimumBoundingGeometry_management. I found out how to do it for one single…
user1166251
  • 115
  • 1
  • 4
  • 17
2
votes
1 answer

which file in the raster stack do I use?

I have a *.zip file from arcmap. It contains a bunch of files. In the top directory, one *.xml, one *.ovr, and two nested directories, *.dat and *.nit files (in one), and 6 *.adf files (in the other). I drag the *.zip into qgis and there it sits in…
Mathew Vickers
  • 125
  • 1
  • 8
2
votes
0 answers

Editing ESRI Python Toolbox in Spyder With Syntax Checking

When working with an ESRI Python Toolbox it would be helpful if Spyder's editor window recognized .pyt files. My current workaround (to use syntax-checking) involves using a temporary .py file, opened in a new tab, and the code is copy/pasted back…
Kenneth Eggering
  • 230
  • 3
  • 14
2
votes
0 answers

How would you trim this in Arcmap SQL?

Hoping an Arcmap person can steer me in the right direction. I haven't managed to find a specific answer for this online anywhere for Arcmap SQL or even Python. I need just the R10 or the L3 in the 2 examples below to be what will then display for…
C.Smith
  • 21
  • 2
1
2 3
24 25