|
POST
|
If you are projecting to GCS the output xy coordinates would be in degrees, so if you want to set it to an exact value you could use 1-arc-second, which is at about 30m in length over most of the earth. 1/3600 = 0.000278 degrees so that would be a good value to use to preserve the resolution. and not drop data cells. These data are usually handled in a projected coordinate system so that area calculations are accurate. Why are you converting this to GCS?
... View more
03-16-2021
01:07 PM
|
1
|
1
|
4807
|
|
POST
|
One thing to keep in mind is that when you run any tool on a layer or table vies it only applies to the selected set of rows. So if the polygon code that is "filling values" is working on a layer, you can apply a selection to the layer or table view before executing your script.
... View more
03-15-2021
07:02 PM
|
0
|
1
|
2920
|
|
POST
|
May I ask, what is your use case for using the .NET SDK? I'm asking because it is such a big jump (especially if you aren't already a .NET expert) from scripting. The SDK is normally used only if you must mess with the UI, interact with the display, work with data in non-standard ways, or modify symbology in ways not supported in arcpy.mp + CIM. There's some great stuff on the Esri Academy for example: Beginning Pro Customization (video) ArcGIS Pro Dev Fundamentals (Learning Plan) Hope this helps you out.
... View more
03-15-2021
05:36 PM
|
0
|
0
|
1893
|
|
POST
|
I looked this up, this is not about extensions. You don't have permissions to do analysis on your student account. This is normally set up using a user role. The organization's administrator needs to assign you a role that includes the analysis capability. This burns credits so some admins don't include analysis in their default roles. Try to contact your ArcGIS Online administrator using the Contact Us link at the bottom of the arcgis.com page after you have logged in to your organization. Dan gets a negative kudo - ArcMap is so 2000. 😏
... View more
03-15-2021
05:16 PM
|
1
|
0
|
1264
|
|
POST
|
I would also look at the symbology you are using on your maps, especially if messing with resolution settings is not helping. (By the way, a little secret tip to try: I have found that dpi exports in a factor 72 for PDF/AI are more efficient because the exported coordinates are in points.) A good way to test the complexity of your symbology and labeling is analyze the map for export to a web map.
... View more
03-15-2021
05:06 PM
|
2
|
0
|
2386
|
|
POST
|
Good Great news, the ArcGIS Pro dev team is working on this. Thank you @JeffBarrette Esri Case #02746274 - arcpy.mapping symbology.excludedValues issue
... View more
03-04-2021
01:54 PM
|
0
|
0
|
1808
|
|
POST
|
I have been fortunate to have ELA licenses my career that include Advanced, but I am a big fan of XTools Pro, an add-on for ArcMap and Pro. There are free and trial versions and they both include a lot of Standard and Advanced functionality.
... View more
02-24-2021
09:30 AM
|
2
|
0
|
2209
|
|
DOC
|
There are currently two supported ArcGIS Desktop application environments. ArcMap ArcGIS Pro Release First release (8.0): 1999 (10.0): 2010 "ArcGIS Desktop 10x" First release: 2015 "Pro" Development Cycle ArcMap Continued Support (2026) Python 2.7 support and ArcMap end-of-life (on the plus side, will not change) Ongoing development Frequent updates UI is stable (2.5+) RAM 32-bit (4GB RAM limit), background geoprocessing (32-bit, 64-bit optional) Native 64-bit, geoprocessing in its own thread (everything is in the background in Pro!) Graphics hardware support Graphics adapter hardware acceleration supported Full support of external graphics adapter graphic processing unit (GPU) acceleration; external GPU processing supported for some tools User Interface Windows OLE/COM (toolbars, wizards) Windows WPF app (ribbons, windows, panes) Graphics canvas Standard Windows WMF graphics engine, tied to windows printer drivers Esri high-performance graphics engine (same as ArcGIS Enterprise/Online) Adobe CS support Legacy Adobe Illustrator .ai export Enhanced PDF export, also ArcGIS Maps for Adobe Creative Cloud extension AGOL support Online features added in (but quite functional) Developed for "WebGIS" from beginning, full AGOL/Portal integration, mobile apps Desktop applications ArcMap, ArcCatalog, ArcScene, ArcGlobe apps ArcGIS Pro (single desktop app, Map, Scene, Catalog views) Licensing Single-use and Concurrent-use licensing Named user (AGOL or Portal login), (Single-use, Concurrent-use licensing available too) Legacy formats Access to many legacy formats (.mdb, coverage [read-only], .e00 [import]) Coverages, .e00 personal GDB (.mdb) not supported (except through Data Interoperability ext) Scripting Python 2.7, large module stack .tbx (ModelBuilder, Python, +R), Python toolbox (.pyt) Python 3.x, large module stack, + Anaconda .tbx (ModelBuilder, Python, R), Python toolbox (.pyt), new toolbox coming at 2.8 Development and available tools ArcObjects .NET SDK, .NET+Python add-ins. Lots of legacy software built on this platform exists: e.g. HEC-GeoRas, ArcHydro, ArcSWAT, etc. Because of .NET dependencies, some add-ons are supported at older versions, (10.5, 10.6 etc) ArcGIS Pro .NET SDK, .NET add-ins. New tools are currently being built on the ArcGIS Pro platform and SDK. For example: ArcHydro in ArcGIS Pro Simple networks Geometric network Utility network (requires ArcSDE) Trace network (supports file GDB)
... View more
02-23-2021
07:50 AM
|
15
|
10
|
22783
|
|
DOC
|
ArcMap 8.x was released in 2000. (I was there in the beta class with Jorge that summer in Redlands!) My point of including that date was that the ArcObjects framework, the ArcMap display canvas, the geodatabase ... all those things are based on OLE/COM "Windows NT" technology as it existed back at the turn of the century...
... View more
02-23-2021
07:20 AM
|
0
|
0
|
22164
|
|
POST
|
This is a job for the Calculate Value tool in ModelBuilder! Create a Model variable Side of type Double, insert the Calculate Value tool and use this expression: CalculateValue Expression: (%Side%)**2 * (3 * (3**0.5))/2 Set Output Type to Double and connect it to the Generate Tessellation tool!
... View more
02-20-2021
10:18 PM
|
0
|
0
|
2842
|
|
POST
|
Trying to get implement an ArcMap (arcpy.mapping) to ArcGIS Pro 2.7 Here's what I have in ArcMap: fringe_shades = os.path.join(os.path.dirname(__file__),
"lyr", "Fringe{}.lyr".format(cycles))
outlyr = arcpy.mapping.Layer(fringe_shades)
pth = os.path.dirname(rast.catalogPath)
outlyr.replaceDataSource(pth, "NONE", os.path.basename(rast.catalogPath))
outlyr.symbology.excludedValues = ex_str
outlyr.symbology.reclassify()
outlyr.name = results
# add to map
mxd = arcpy.mapping.MapDocument("CURRENT")
arcpy.mapping.AddLayer(mxd.activeDataFrame, outlyr)
arcpy.RefreshActiveView() I can't see a way to apply an exclusion and reclassify in arcpy.mp. Here's what I have so far. I don't seem to be able to add my layer to map like I did in ArcMap as I m.addLayer doesn't seem to let me add a geoprocessing layer object to my map. So I'm adding it using the GP environment. outlyr = arcpy.MakeRasterLayer_management(rast.catalogPath, results)
fringe_shades = os.path.join(os.path.dirname(__file__),
"lyrx", "Fringe{}.lyrx".format(cycles))
outlyr = arcpy.ApplySymbologyFromLayer_management(outlyr, fringe_shades, None, "UPDATE")
parameters[5].value = outlyr
arcpy.SetParameterAsText(5, outlyr) It seems like I should be able to use the arcpy.mp.Layerfile() class to access a Layer object, but I don't seem to have anything like the .reclassify() method. The ApplySymbologyFromLayer tool works with a geoprocessing layer object, applying new data ranges, but then I can't exclusions and reclassify. I had to write a separate tool to apply exclusions after I added the raster layer tot he map using CIM access -- but I can't reclassify, just turn the pixels off by setting the exclusion values: # use CIM to set exclusion ranges
p = arcpy.mp.ArcGISProject("CURRENT")
m = p.activeMap
ly = m.listLayers(parameters[0].valueAsText)[0]
lyc = ly.getDefinition('V2')
lyc.colorizer.exclusionRanges = [-.0001, .0001]
ly.setDefinition(lyc) This works for me, but wish I could figure out how to do it in the main tool.
... View more
02-20-2021
01:20 PM
|
0
|
1
|
1933
|
|
POST
|
Here's a new way to do it, appropriate for the age of Python notebooks! Run this code in an interactive window or Python notebook: gperr = []
for k in range(120000):
try:
dsc = arcpy.GetIDMessage(k)
if dsc:
gperr.append("{:6d} {}".format(k, dsc))
except:
pass
for k in range(999998,1000000,1):
try:
dsc = arcpy.GetIDMessage(k)
if dsc:
gperr.append("{:6d} {}".format(k, dsc))
except:
pass
def gpfind(txt="parameter", maxrec=100, use_regex=False):
"""Search for geoprocessing error code IDs"""
import re
rtxt = txt
if not use_regex:
# simple case-insensitive search supporting *
rtxt = "{}".format(txt.replace("*",".*"))
elist = [e for e in gperr if re.search(rtxt,e,re.I)]
if len(elist) > maxrec or len(elist) == 0:
print("{} gp errors match '{}'".format(len(elist), txt))
else:
print("\n".join(elist)) Then you can do this: >>> gpfind("map extent")
87779 DataFrameObject: Error in setting map extent
>>> gpfind("parameter")
138 gp error messages match 'parameter'
>>> gpfind("*invalid value*")
216 Cannot execute Pivot Table--invalid value field name
60412 The value provided was an invalid value for an identifier authority.
>>> gpfind("*invalid*value*")
216 Cannot execute Pivot Table--invalid value field name
738 At least one statistical result was invalid (NaN). Please check the VIF values to determine whether near perfect multicollinearity is present.
1165 Features with invalid date/time values (only includes first 30): %1 = %2.
60412 The value provided was an invalid value for an identifier authority.
60436 A logon request contained an invalid logon type value.
61246 The string contains an invalid X500 name attribute key, oid, value or delimiter.
... View more
02-20-2021
10:51 AM
|
1
|
0
|
7185
|
|
DOC
|
Are there plans to provide training materials and tutorial to learn the trace network? I ran across the videos here and they were VERY helpful, but they are aimed at people familiar with the ArcMap geometric network. Especially would like to see a tutorial of how to load NHD into the trace network. Thanks for this space!
... View more
02-14-2021
12:15 PM
|
0
|
0
|
7355
|
|
POST
|
Au contraire, I believe the coded domain is working exactly as it should!
... View more
02-14-2021
08:39 AM
|
0
|
0
|
3547
|
|
POST
|
Just a reminder: OP is working in ArcMap 10.6. But, thank you, that new environment setting is useful! Why I hang out here, you always learn something. Snap I didn't see there were answers already - still getting used to the new interface.
... View more
02-14-2021
08:37 AM
|
1
|
0
|
3551
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-11-2021 01:26 PM | |
| 5 | 12-10-2021 04:58 PM | |
| 1 | 02-27-2017 09:30 AM | |
| 2 | 12-04-2023 01:05 PM | |
| 1 | 04-12-2016 10:17 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-19-2024
12:10 AM
|