POST
|
I have run into the exact same issue. What is/is there a way to retrieve an attribute in an ArcGIS Online popup from a thematic raster hosted as an image service? I'm trying to identify the landcover class (stored in a raster attribute table) in a popup when a cell is clicked by the user.
... View more
09-28-2016
01:07 PM
|
0
|
2
|
641
|
DOC
|
Are there any future plans for this enhanced search widget to work with vector tiles? Thanks!
... View more
09-14-2016
01:31 PM
|
0
|
0
|
2858
|
POST
|
Hi I'm using ArcGIS 10.2 Advanced/32-bit Python 2.7.3. I'm needing to create multiple graphs using Arcpy (4 feature classes per graph: 2 vertical line, 2 scatter plot). My code works great using a template for 2 vertical lines. However, I modified my python code and the graph template to add 2 additional xy/scatterplot series and now the template is not being followed. I know for sure my data is being input into Graph()/MakeGraph correctly. The only thing I can think of why the template is not following my design for 4 feature classes is that I am adding series out of order (in python) in relation to how the graph series are originally ordered/read from the .tee. I would love to just manually edit a few parameters in the .tee file to fix the issue. Anyone know where to find a list of parameters for these .tee graph templates or ESRI's graph() class? I prefer not to switch to matplotlib or Grapher over this matter. Thanks for any help you may offer. For example: Current order of input in template.tee: object Series3: TPointSeries ... end object Series4: TPointSeries ... end object Series1: TLineSeries ... end object Series2: TLineSeries ... end The way input is currently being input into arcpy.Graph() using python's 'zip' function: for yr0_points, yr1_points, yr0_datums, yr1_datums in zip(yr0_points_list, yr1_points_list, yr0_datums_list, yr1_datums_list): ... # Create the graph graph = arcpy.Graph() # Add a vertical bar series to the graph graph.addSeriesLineVertical(yr0_lyr, "Elevation", "NEAR_DIST", "") #relates to object Series1: TLineSeries graph.addSeriesLineVertical(yr1_lyr, "Elevation", "NEAR_DIST", "") #relates to object Series2: TLineSeries graph.addSeriesScatterPlot(yr0_datum_lyr, "Elevation","", "Descriptio") #relates to object Series3: TPointSeries graph.addSeriesScatterPlot(yr1_datum_lyr, "Elevation","", "Descriptio") #relates to object Series4: TPointSeries ... arcpy.MakeGraph_management(graph_grf, graph, "temp_graph") arcpy.SaveGraph_management("temp_graph", output_graph_dir, "MAINTAIN_ASPECT_RATIO", 1209, 815)
... View more
09-06-2013
08:44 AM
|
0
|
0
|
415
|
POST
|
I don't think this is quite what I'm looking for, but I learned something new so thanks! I see where my original post needs to be clarified.
... View more
02-06-2013
05:28 AM
|
0
|
0
|
334
|
POST
|
I have a polygon feature class in which features are symbolized by unique values (region code). Now I want to create colored map labels for my features using the same colors from the symbology tab. I'm using the label method 'define different classes/label features differently' (Label Field: region code). Is there a way to import/assign the same RGB values of the features (via symbology tab) to the text symbol for each label class? Right now, the text symbols for all my text classes in the Labels tab are defaulted to black and I have to go and manually change RGB values for each class which can be a little time consuming. Btw, I'm using ArcGIS 10 SP5 (Arcinfo). Thank you.
... View more
02-05-2013
09:51 AM
|
0
|
3
|
456
|
POST
|
I found the problem was my misunderstanding of rasters and the general rendering process in ArcMap. I learned ArcMap stretches imported rasters causing them to look super bright which I took for as 'lower quality'. I turned stretching off for one raster and noticed it looks just about the same as its source, despite the minimum range value being different by +-1 in the imported one.
... View more
05-02-2012
11:36 AM
|
0
|
0
|
423
|
POST
|
m.gasior, that code you posted solved my problems. dkwiens, thanks for the conceptual advice.
... View more
04-28-2012
04:31 PM
|
0
|
0
|
972
|
POST
|
I have 60 DEMs in a particular county created from aerial LiDAR that I'm trying to create watersheds for. One of the preliminary things I need to do is fill sinks, but first I need to know the fill limit for sinks in each DEM. To solve this problem, I read ESRI's section on creating depressionless DEMs and how to find sink depth. The problem is ESRI left me hanging as to which statistic is considerd the z limit.(http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z0000005q000000.htm). Below is the sinkdepth operation output for the first DEM. Which one of the following sinkdepth output statistics is the z limit value for Fill tool? <HistMin>1.1444091796875e-005</HistMin>
<HistMax>0.2707290649414063</HistMax>
<Approximate>0</Approximate>
<Metadata>
<MDI key="STATISTICS_MINIMUM">1.1444091796875e-005</MDI>
<MDI key="STATISTICS_MAXIMUM">0.27072906494141</MDI>
<MDI key="STATISTICS_MEAN">0.03058447859501</MDI>
<MDI key="STATISTICS_STDDEV">0.020851988436709</MDI> The code below is what i used to create the sink depth raster including .xml statistics of each DEM. It takes all unfilled DEMs in a folder and outputs DEMs for sinkdepth: # ---------------------------------------------------------------------------
# find sink depth.py
# Created on: 2012-04-27 00:02:16.00000
# Author: T. Lupher
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy, sys, os
from arcpy import env
from arcpy.sa import *
# Set workspace
env.workspace = "D:/DEM/LIDAR/"
# Allow overwrites
arcpy.env.overwriteOutput = True
# Check out any necessary licenses
arcpy.CheckOutExtension("spatial")
# Create list of rasters
rasters = arcpy.ListRasters("*", "TIF")
rasterCount = len(rasters)
counter = 0
i = 1
try:
while counter < rasterCount:
for item in rasters:
# input/output directories
inputPath = "D:/DEM/"
flowdirFolder = "flowdirection/"
sinkFolder = "sinks/"
#pourPoints = "D:/DEM/pourpoints/alltraplocations.shp"
contribFolder = "sink_contributing_areas/"
zonestatFolder = "zonalstatistics/"
zonalfillFolder = "zonalfill/"
sinkdepthFolder = "sinkdepth/"
# input/output variables
outDropRaster = ""
flow = inputPath+flowdirFolder+"flowdir_"+str(i)+".tif"
sink = inputPath+sinkFolder+"sink_"+str(i)+".tif"
contrib = inputPath+contribFolder+"conarea_"+str(i)+".tif"
zstat = inputPath+zonestatFolder+"zonestat_"+str(i)+".tif"
zfill = inputPath+zonalfillFolder+"zonefill_"+str(i)+".tif"
sinkdepth = inputPath+sinkdepthFolder+"sinkdepth_"+str(i)+".tif"
# Process: Flow Direction
outFlow = FlowDirection(item, "NORMAL")
outFlow.save(flow)
# Process: Sink
outSink = Sink(flow)
outSink.save(sink)
# Process: Watershed
outWatershed = Watershed(flow, sink, "VALUE")
outWatershed.save(contrib)
# Process: Zonal Statistics
outZstat = ZonalStatistics(contrib, "VALUE", item, "MINIMUM", "DATA")
outZstat.save(zstat)
# Process: Zonal Fill
outZfill = ZonalFill(contrib, item)
outZstat.save(zfill)
# Process: Minus
outSinkDepth = Minus(outZfill, outZstat)
outSinkDepth.save(sinkdepth)
counter += 1
i += 1
except:
# If an error occurred while running a tool, then print the messages.
print arcpy.GetMessages()
... View more
04-28-2012
02:08 PM
|
0
|
0
|
274
|
POST
|
This is my code so far. I don't get any syntax or any errors for that matter, but get no output. # Import system modules
import arcpy, os, sys
from arcpy import env
from arcpy.sa import *
# Set workspace
env.workspace = "D:/dailyrainfall/subset"
# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("Spatial")
# Create list of rasters
rasters = arcpy.ListRasters("*", "tif")
# Create Weekly rainfall raster
try:
index = 70
for index in rasters:
count = 0
while count <=7:
# Set local variables
inRaster0 = rasters.Next()
count += 1
inRaster1 = rasters.Next()
count += 1
inRaster2 = rasters.Next()
count += 1
inRaster3 = rasters.Next()
count += 1
inRaster4 = rasters.Next()
count += 1
inRaster5 = rasters.Next()
count += 1
inRaster6 = rasters.Next()
count += 1
index -= 1
# Execute CellStatistics
outCellStatistics = CellStatistics([inRaster0, inRaster1, inRaster2, inRaster3, inRaster4, inRaster5, inRaster6], "SUM", "NODATA")
output = outCellStatistics.name
# Save the output
outCellStatistics.save("D:/dailyrainfall/subset/result/" + output + ".tif")
except:
# If an error occurred while running a tool, then print the messages.
print arcpy.GetMessages()
... View more
04-19-2012
04:10 PM
|
0
|
0
|
972
|
POST
|
Using: ArcGIS 10 SP4 (ArcInfo) student evaluation with all extensions. Goal: I need help finding a solution to integrate the cell statistics tool using Python to create a new weekly rainfall average layer for each week of 490 consecutive days of raster data. Data: I have 490 raster files(.tif) of rainfall amounts for each day. Each raster was converted from a corresponding shapefile containing i) an even-spaced grid of points with no coincident points and ii) the same amount of grid points. Example Raster for one day of data: [ATTACH=CONFIG]13682[/ATTACH] So far this is my logic for how to do this using Python: 0) Import arcpy, env from arcpy 1) Set workspace directory containing raster data for 490 consecutive days 2) Create list of rasters in workspace (rasterList = arcpy.ListRasters("*", "tif")) 3) Checkout spatial analyst extension While rasterList is not empty 4) Create 7 variables for the first 7 consecutive days of rasters 5) Call Cell_Statistics function: outCellStatistics = CellStatistics([raster1,..., raster7], "MEAN", "NODATA") 6) Save new output raster: outCellStatistics.save("C:/sapyexamples/output/week1") 7) Populate next consecutive 7 days into variables raster1,...,raster7 😎 Repeat steps 5 to 7 for 70 iterations (70 weeks) I have tried messing around with the example in ArcGIS 10.0 Desktop Help. I am having an explicit problem with assigning the next 7 raster files into the 7 input variables for the next iteration. Any advice is appreciated.
... View more
04-19-2012
01:36 PM
|
0
|
14
|
4104
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|