POST
|
Since this took me much longer to figure out than I care to admit: The sample provided by TigerWoulds results in a copy of the inputGDB within a zipped folder of the same name. If you want to create a zipped copy without that nesting then remove gdbName + '\\' + from the line myzip.write(os.path.join(gdbFile, f), gdbName + '\\' + os.path.basename(f))
... View more
06-15-2023
01:03 PM
|
0
|
0
|
419
|
POST
|
Would need to modify the script a wee bit from 2.x to 3.x if you want it in Pro... https://gis.stackexchange.com/questions/54029/how-to-apply-the-four-colors-theorem-in-a-polygon-map-in-arcgis-arctoolbox-autom
... View more
02-18-2022
09:30 AM
|
0
|
0
|
283
|
POST
|
User beware. Repointing to the new folder does work. However, if you then delete the survey through Connect the new folder and everything in it will be deleted. I thought I was being smart by moving the survey form into the same folder as the target feature service. Lets keep everything related to this project in the same place, right? I had a need to delete my survey and that folder along with the target feature service a now gone. I see that there is an idea submitted to allow pointing to an existing folder. The behavior I described might make you think twice about using that option if it were ever implemented.
... View more
12-01-2021
09:21 AM
|
3
|
0
|
543
|
POST
|
https://desktop.arcgis.com/en/arcmap/10.3/map/page-layouts/working-with-legends.htm#ESRI_SECTION1_A18659170776412BB18111DF0E3B8225
... View more
05-07-2021
10:20 AM
|
0
|
0
|
1108
|
POST
|
On version 2.7.1 - map series dynamic text based on attribution changes the displayed value in the layout as I flip through the pages in Pro BUT it picks one value and only displays that one value when I export the pages to pdf. If I export one page of the map series at a time the resulting pdf has the correct attribute value used in the dynamic text. Exporting all pages at once causes this problem. Good to know a "workaround" but this largely defeats the purpose of a map series, at least if you require attribute based dynamic text
... View more
02-16-2021
02:16 PM
|
2
|
1
|
1927
|
POST
|
Posted this at https://community.esri.com/t5/arcgis-pro-questions/arcpro-2-6-export-pdf-issue/m-p/1021991#M36681. Figure it should be here too: FYI - received this from ESRI 1/22/2021. No ETA on fix but at least we know that they know. One key takeaway from the suggested workarounds - export to PDF (and other types) work in arcpy, so one solution is to script your export as its only currently broken when you go through UI. "I’m sorry you are having trouble exporting your layouts. Esri is aware of an issue with exporting lines on a layout in ArcGIS Pro 2.7. This is a top priority issue being actively investigated, and a fix should be available in an upcoming service pack release. You can track the bug here: https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzNjM2NA==. This related GeoNet thread has some workarounds people have used to export their layouts while awaiting a fix: https://community.esri.com/t5/arcgis-pro-questions/exported-map-missing-lines-version-pro-v2-7/td-p/.... If you think you have a different bug, I encourage you to reach out to our Support Service Analysts. They have the tools and training to diagnose your issue and either provide an immediate fix or send the issue to the development team as a bug. You can reach our Support Services department at 1-888-377-4575, Monday–Friday, 5:00 a.m.–5:00 p.m. PST, or http://support.esri.com/contact-tech-support."
... View more
02-03-2021
10:31 AM
|
1
|
0
|
3125
|
POST
|
FYI - received this from ESRI 1/22/2021. No ETA on fix but at least we know that they know. One key takeaway from the suggested workarounds - export to PDF (and other types) work in arcpy, so one solution is to script your export as its only currently broken when you go through UI. "I’m sorry you are having trouble exporting your layouts. Esri is aware of an issue with exporting lines on a layout in ArcGIS Pro 2.7. This is a top priority issue being actively investigated, and a fix should be available in an upcoming service pack release. You can track the bug here: https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDEzNjM2NA==. This related GeoNet thread has some workarounds people have used to export their layouts while awaiting a fix: https://community.esri.com/t5/arcgis-pro-questions/exported-map-missing-lines-version-pro-v2-7/td-p/1011329. If you think you have a different bug, I encourage you to reach out to our Support Service Analysts. They have the tools and training to diagnose your issue and either provide an immediate fix or send the issue to the development team as a bug. You can reach our Support Services department at 1-888-377-4575, Monday–Friday, 5:00 a.m.–5:00 p.m. PST, or http://support.esri.com/contact-tech-support."
... View more
02-01-2021
07:16 AM
|
0
|
0
|
1171
|
POST
|
Looks like more export (pdf, jpeg, png, others?) issues at 2.7. I've had multiple users (myself included) verify that the export, although "successful", drops elements of the layout. The resulting file opens in a viewer but layout elements (boxes that frame the legend, title, overall framing) are missing.
... View more
01-12-2021
12:52 PM
|
0
|
1
|
1293
|
POST
|
Looks like more export (pdf, jpeg, png, others?) issues at 2.7. I've had multiple users verify that the export, although "successful", drops elements of the layout.
... View more
01-12-2021
12:48 PM
|
0
|
2
|
3239
|
POST
|
This seemed to work. It changed the def query without the duplication. Note that you have to change two CIM properties to get this to change without duplication AND to make the new query the 'active' query. # sorry for bad indents; I don't know how to format this here # batch change (all maps in project) definition query for a specified layer # optional param - specify which map you want to target, default is that it does all of them def batch_change_definition_query(layer_name, definition_query, my_map = None): aprx = arcpy.mp.ArcGISProject("CURRENT") for map in aprx.listMaps(my_map): for layer in map.listLayers(): if layer.name == layer_name: cim_layer = layer.getDefinition('V2') cim_layer.featureTable.definitionFilterChoices[0].definitionExpression = definition_query cim_layer.featureTable.definitionExpression = definition_query layer.setDefinition(cim_layer)
... View more
11-30-2020
03:20 PM
|
0
|
3
|
5005
|
POST
|
Agreed. We need to be able to manage layer visibility at the Layout level without it affecting the source Map. I try to establish consistent symbology and layer definitions at the project level. In many cases all layers could exist in a single map. If I could have 12 different layouts that all referenced this one map then it sure would make managing symbology consistency easier. Currently, with 12 maps for 12 layouts, managing consistent symbology and definitions is a nightmare.
... View more
09-02-2020
02:58 PM
|
8
|
3
|
6563
|
POST
|
This did the trick. Thank you. It is still odd to me that 'type' is an available property if I look at the lyrx (ie json) file in a text editor but is not exposed in the CIM model. Oh well. This is what finally worked such that it prints the thematic field only if the appropriate renderer type is being used (your suggestion with slight modification): aprx = arcpy.mp.ArcGISProject("CURRENT") for map in aprx.listMaps(): for layer in map.listLayers(): cim_lyr = layer.getDefinition('V2') if hasattr(cim_lyr.renderer, 'fields'): print("--- ---Thematic Field: " + str(cim_lyr.renderer.fields[0]))
... View more
09-02-2020
11:12 AM
|
2
|
0
|
1665
|
POST
|
I am working with CIM layer definitions a bit. For a layer, I am wanting to get the field that the symbol thematic is based on (layerDefinitions.renderer.fields). However, some renderer types have the fields property while some don't. CIMUniqueValueRenderer has the fields property while CIMSimpleRenderer does not. If I try to access fields on a feature class that uses CIMSimpleRenderer I get an error. However, I cannot access the type property that I can plainly see in the json through the python therefore I cannot create logic around renderer type. aprx = arcpy.mp.ArcGISProject("CURRENT") for map in aprx.listMaps(): for layer in map.listLayers(): cim_lyr = layer.getDefinition('V2') if cim_lyr.renderer.fields is not None: # this is obviously not working #if cim_lyr.renderer.type == blah: # this is what I would think I should be able to do print("--- ---Thematic Field: " + str(cim_lyr.renderer.fields[0])) Error if I plug in a feature class with the wrong type: AttributeError: 'CIMSimpleRenderer' object has no attribute 'fields' So, the object obviously knows its type per the error and per the json entry but does not offer me any good way of accessing its type through the CIM object model that I have found. How would I go about this?
... View more
09-01-2020
12:38 PM
|
2
|
5
|
1690
|
IDEA
|
At the very least, have drawing order reflect the order in the legend. Lack of this functionality makes half of my layers un-usable as services. Currently, the only way to reproduce my Pro symbology would be to subset each thematic category that each layer has, create services from them all, then order them myself in the web map. That is a tedious amount of work for something so simple in Pro.
... View more
04-10-2020
08:50 PM
|
0
|
0
|
1703
|
Title | Kudos | Posted |
---|---|---|
3 | 12-01-2021 09:21 AM | |
2 | 09-02-2020 11:12 AM | |
2 | 09-01-2020 12:38 PM | |
2 | 02-16-2021 02:16 PM | |
1 | 02-03-2021 10:31 AM |
Online Status |
Offline
|
Date Last Visited |
06-19-2023
03:50 PM
|