|
POST
|
I had this same problem in Portal with a straightforward map image service of a raster, and the solution to remove the transparency also solved it. Thank you!
... View more
09-09-2021
09:10 AM
|
1
|
0
|
4398
|
|
POST
|
Is it possible to set the 'sample size' property of graduated symbology programmatically? The GraduatedSymbolsRenderer does not have any advanced symbology parameters, but I need to increase the default sample size from 10,000 to 1M in a Python script. I would like to avoid having to calculate the 'Natural Breaks' but if need be can anyone recommend a reference? Thank you in advance!
... View more
04-26-2021
12:40 PM
|
2
|
2
|
1855
|
|
POST
|
I resolved my problem which was due to my using the server URL reported by listing the servers after connecting to the portal: print("Connecting to {}".format(portal)) gis = GIS(portal, user, password) server = gis.admin.servers.list()[0] The URL reported in the 'server' variable had appended the server manager designation to the URL - once this was removed it was fine. Near always it is the simplest things over which we trip...*sigh*
... View more
04-20-2021
10:17 AM
|
0
|
0
|
4288
|
|
POST
|
Similarly, I receive this error when attempting to export a layout to a PAGX file. AttributeError: 'Layout' object has no attribute 'exportToPAGX'
... View more
03-30-2021
08:25 AM
|
0
|
0
|
2374
|
|
POST
|
I am using ArcGIS Pro v2.5.1 and am unable to export a 'mapx' file form the console. When calling the method as described under the help documentation for 'Map' with the line: aprx = arcpy.mp.ArcGIS Project('CURRENT') m = aprx.activeMap m.exportToMAPX('Template.mapx') I receive the following error: Traceback (most recent call last): File "<string>", line 3, in <module> AttributeError: 'Map' object has no attribute 'exportToMAPX' Any advice or redirection to resources would be much appreciated!
... View more
03-27-2021
09:45 PM
|
0
|
1
|
2380
|
|
POST
|
I am having the same issue when trying to overwrite a hosted Map Image Service; it is tripping up on the function to export the draft Service Definition (see error output below). I've confirmed the server is of type 'FEDERATED_SERVER'. Has anyone else found a solution or workaround? File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\sharing.py", line 66, in exportToSDDraft return _convertArcObjectToPythonObject(self._arc_object.exportToSDDraft(out_sddraft,self)) ValueError: Target server is not a federated server or is inaccessible.
... View more
03-15-2021
04:37 PM
|
1
|
1
|
4323
|
|
IDEA
|
Could you implement a default setting for joining tables on a "NEAR_FID" field name (the result of a NEAR analysis) such that the default field on the join table is "OBJECTID"?
... View more
06-14-2019
02:32 PM
|
1
|
0
|
571
|
|
POST
|
Can someone please explain the definitive rationale behind the distinction between data types as GP* and DE*? The majority of Python Toolbox parameter data types are prefixed with either "GP" or "DE", which I presume stand for 'geoprocessing object' and 'data element'. An illustrative example is the GPLayer and DELayer; the former refers to a geoprocessing layer object while the latter refers to a layer file representing a unit of data (aka data element). The distinction between data types is intuitive in some instances as in this 'layer' example but seems idiosyncratic in others. e.g. Why is a workspace identified as "DE"? Why not a GPWorkspace as a workspace refers to the container in which geoprocessing functions take place? Why "DETool" and not "GPTool"? Why is a server connection identified as DE data element and not a GP geoprocessing object? I ask because I have little recall and can't keep them straight in my head and am tired of revisiting the data type help pages whenever I create a new parameter. :S
... View more
05-25-2019
10:18 PM
|
1
|
1
|
2151
|
|
POST
|
Hi again Curtis, thanks! The tool's workflow copied an MXD, updated data sources of layers and refreshed table values drawn from data driven feature class attributes. I was initially losing the manually set numeric field formats, but that was due to my order of operations. I'll update the discussion post with the final findings!
... View more
05-10-2019
10:51 AM
|
0
|
0
|
3561
|
|
POST
|
Hi Joe, I'm not sure what you've attempted but dictionaries are indeed cool. I haven't tested this but give this a whirl: for key, value in year2018.items(): # Iterate through each key,value pair in the dictionary
in_features = in_feature_class # Identify the input feature class
out_feature_class = out_path + "_" + key # Identify the filepath output appending the key to identify it
where_clause = "Month = '" + str(value[0]) + "' AND Year = '" + str(value[1]) + "'"
arcpy.Select_analysis(in_features, out_feature_class, where_clause)
... View more
05-06-2019
03:05 PM
|
1
|
5
|
3781
|
|
POST
|
Thanks Curtis! As you clearly described, despite setting and saving the Feature Layer field property to display the thousand separators, when I update the Layer's data source the Layer's field properties return to the default without the separators.
... View more
05-02-2019
04:25 PM
|
0
|
0
|
3561
|
|
POST
|
Many thanks to both of you, Dan and Curtis! It is helpful to know both these things!
... View more
05-02-2019
02:41 PM
|
0
|
0
|
3561
|
|
POST
|
*** UPDATE May 10, 2019. Findings so far confirm there is no programmatic access to the Numeric Field Display Properties (e.g. Pad with zeroes, Show thousands separators, etc). There is an open IDEAS topic for this functionality. Until implemented, the workaround is to access the property in a saved layer file and applied to a feature layer. An example is provided by Curtis Price below. *** I know how to manually format numeric fields as described under Formatting numeric fields in tables. But I would like to access and script the functionality to display numeric fields with thousand separators in a Python Toolbox tool. Is this possible? The number display format properties listed in the screen capture below aren't exposed via Field properties, Table views or any other objects I have researched.
... View more
05-01-2019
10:47 AM
|
0
|
8
|
4283
|
|
POST
|
While I am familiar with Python script tools I am now starting to work with the Python Toolbox. When trying to run a newly created tool I am met with the Error Message Window: 'There was a problem getting the CLSID for the embedded control. The embedded control cannot be displayed.' Can someone explain the issue and how I can resolve the error? Thank you so much! Y *** UPDATE - The problem disappeared after reworking the script but I still have no idea as to what caused the error nor what resolved it :S
... View more
04-29-2019
09:47 AM
|
0
|
0
|
647
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-17-2023 08:28 AM | |
| 1 | 04-04-2025 06:49 PM | |
| 1 | 12-05-2024 11:01 AM | |
| 2 | 01-17-2024 10:20 AM | |
| 1 | 09-09-2021 09:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
09-23-2025
04:09 PM
|