POST
|
Using Python, how do I apply a unit conversion function chain to each individual raster based on source units? I'd like all units to be in Meters. I have a mosaic dataset containing elevation rasters with mixed source units: feet and meters. I'd like to : 1) iterate through the mosaic dataset, 2) check the units of each raster, 3) if the raster has source units feet, then apply a unit conversion function chain (ft to m). Rasters with source unit Meters do not need a function chain. Thanks!
... View more
03-01-2017
07:54 AM
|
0
|
6
|
1447
|
POST
|
Thanks. But, it is not always that simple... I want my code to fire only once. I have a couple callbacks when the event occurs. So... I need to wait until the callbacks are finished or, I was thinking, use the nifty on.once dojo functionality. I'm still not clear how to invoke it's magic. None of the following works: on.once(...); on(...).once(); handle.once();
... View more
01-31-2017
02:39 PM
|
0
|
2
|
696
|
POST
|
Some additional random info... Years ago, combining features into less features would help with performance. Maybe not so much these days... not sure. I'm just trying a couple things. Contours are for display only. These are two foot for the whole US. For the most part, being processed per county and stored in a FGDB per county. Served as one contour map service. The MXD has a lot of feature classes; one per county. This may present a problem at some point...?...? I have one county whereby the clip keeps crashing. I'm trying to clip off contours outside the county boundary whereby the DEMs overlapped across county lines somewhat. I thought maybe combining the features would also help with the clip operation. Cheers, Jerry
... View more
01-31-2017
09:02 AM
|
0
|
0
|
558
|
POST
|
I have a contours feature class. It has many features. I'd like to make one feature so it draws faster. How can I do this via Python? Thanks!
... View more
01-31-2017
08:32 AM
|
0
|
3
|
1692
|
POST
|
How do I georeference an ASCII file into an ArcGIS JS Web API map? I know the extent and spatial reference. I'd like to render the symbology as a red to yellow to green color ramp. Thanks!
// create and add the layer var mil = new MapImageLayer(); map.addLayer(mil); // create an add the actual image var mi = new MapImage({ 'extent': { 'xmin': -8864908, 'ymin': 3885443, 'xmax': -8762763, 'ymax': 3976997}, 'href': 'http://il.water.usgs.gov/_ags60fb0c9554ef42a58e7024d8464a2ecb.png' }); mil.addImage(mi);
... View more
12-09-2016
03:10 PM
|
0
|
0
|
663
|
POST
|
https://community.esri.com/ideas/10513 How do I export an ASCII to PNG with symbology? I need to create a PNG with color ramp from an ASCII to be georeferenced in an ArcGIS JS web app. How do I do this? I was going to create a GP Service to create the PNG, but it appears I cannot do this with Python? What would be the alternative? ArcObjects C# GP Service? Thanks!
... View more
12-09-2016
01:59 PM
|
0
|
0
|
826
|
POST
|
I have an ArcGIS Server installation. I want to host the 'generate' service with my ArcGIS Server instance so I am not relying on ArcGIS Online. Can I do this? If I cannot do this, are there any problems with continuing to use this service for free? Thanks!
... View more
12-09-2016
01:55 PM
|
0
|
1
|
414
|
POST
|
How do I host this service with AGS? Add shapefile | ArcGIS API for JavaScript 3.18 How do I host this service? 'https://www.arcgis.com/sharing/rest/content/features/generate' Thanks!
... View more
12-06-2016
01:53 PM
|
0
|
3
|
1063
|
POST
|
Using arcpy, how do I identify the intersecting rasters within a mosaic dataset from a polygon? Thanks!
... View more
10-11-2016
10:43 AM
|
0
|
0
|
668
|
POST
|
Thanks. I was messing around with the parameters. This is a mistake. I get the same error when adding {overlap_type}: arcpy.SelectLayerByLocation_management('sections_lyr', 'INTERSECT', row[1])
... View more
09-30-2016
06:24 AM
|
0
|
2
|
1684
|
POST
|
See screen shot. Any suggestions? Thanks!!! import arcpy wk=r'C:\Users\Administrator\AppData\Roaming\Esri\Desktop10.3\ArcCatalog\GIS DataCreator.sde' arcpy.env.workspace=wk print arcpy.env.workspace fcCounties = "GIS.DATACREATOR.counties" fieldsCounties = ['OBJECTID_1', 'Shape', 'NAME'] print arcpy.Exists(fcCounties) fcSections = "GIS.DATACREATOR.sections_test" fieldsSections = ['OBJECTID', 'Shape', 'county'] print arcpy.Exists(fcSections) arcpy.MakeFeatureLayer_management(fcSections, 'sections_lyr') arcpy.MakeFeatureLayer_management(fcCounties, 'counties_lyr') with arcpy.da.SearchCursor('counties_lyr', fieldsCounties) as cursor: for row in cursor: print row[1] arcpy.SelectLayerByLocation_management('sections_lyr', row[1]) ---------- Python 2.7.8 (default, Jun 30 2014, 16:08:48) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ================================ RESTART ================================ >>> C:\Users\Administrator\AppData\Roaming\ESRI\Desktop10.3\ArcCatalog\GIS DataCreator.sde True True (-9645043.375313655, 3833831.999483527) Traceback (most recent call last): File "E:\Python\relateCopyCounties.py", line 23, in <module> arcpy.SelectLayerByLocation_management('sections_lyr', row[1]) File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\management.py", line 7359, in SelectLayerByLocation raise e RuntimeError: Object: Error in executing tool >>>
... View more
09-30-2016
04:52 AM
|
0
|
4
|
2606
|
POST
|
The fill is always black for me. The color property does not appear to change the color, i.e. STYLE_VERTICAL. Always black. Is this a known issue? Thanks!
... View more
08-18-2016
12:18 PM
|
0
|
3
|
843
|
Title | Kudos | Posted |
---|---|---|
1 | 05-19-2019 10:17 PM | |
1 | 06-23-2012 10:49 AM | |
1 | 05-11-2017 06:33 AM | |
1 | 03-23-2015 06:16 AM | |
1 | 12-19-2017 12:21 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|