Skip to main content

Questions tagged [cartographic-information-model]

Use for questions about the Cartographic Information Model (CIM) of the ArcGIS platform

Filter by
Sorted by
Tagged with
1 vote
0 answers
18 views

How to remove the square border coming in Balloon callout in ArcGIS Pro SDK

I have written C# code in ArcGIS Pro SDK for balloon callout and everything works fine. The only issue is I am getting square border between the points. How can I disable it? if (geometry is Polyline ...
peter's user avatar
  • 111
1 vote
0 answers
41 views

Legend label rounding with Python in ArcGIS Pro

In a legend of feature layer, I would like to format the subtitle so that it doesn't print the full number, but rounds the category limits to 2 decimal places. I want to implement the format shown in ...
GisT's user avatar
  • 91
3 votes
1 answer
126 views

Using page query with python

I am trying to automate a process in ArcGIS pro using python. In this process I create several maps using a map series. I use a page query to filter my data based on the map series page name. I can't ...
GIS's user avatar
  • 53
0 votes
0 answers
60 views

SCP. Error: Information [4]: Select a raster, raster not loaded

I have problem with the complement of SCP. I try to classified but in the moment to select the training input it doesn´t work. It showed me this message: Information [4]: Select a raster, raster not ...
Robert Brito Matamoros's user avatar
0 votes
1 answer
105 views

How to use CIM in Python to enable time?

I'm trying to automate with Arcpy enabling time for the layers in my Drawing order but can't figure it out. From digging I've found that the only way to do it is through CIM but there's limited ...
Davec433's user avatar
0 votes
0 answers
78 views

UniqueValueRenderer will not write polygons to the map

I'm attempting to apply symbology to a polygons layer. It does set symbology to the layer, but the actual info is stuck in . What is wrong in my code? T = "19N" R = "5E" TWP = &...
Daniel's user avatar
  • 81
3 votes
3 answers
512 views

Changing active definition query for multiple layers in group layer using ArcPy in ArcGIS Pro

I am using ArcGIS Pro 3.x. I'm trying to make a script to automate changing the definition query for multiple layers in a group layer in Pro. The definition query is essentially just using a project ...
liso_maps's user avatar
  • 103
0 votes
0 answers
70 views

ArcPy cartography.ConvertLabelsToGraphics runs in the Python window in ArcGIS Pro, but fails to run from script/ToolBox

I am trying to run the code below to convert labels into Graphics. The code works fine when I run it in the Python window in ArcGIS Pro 3.1.0. However, when I place it the same code that create the ...
XDev's user avatar
  • 11
1 vote
1 answer
194 views

How iterate with cim.featureTable.fieldDescriptions?

I have the next code: #Importar librerías necesarias import arcpy import pandas as pd #Obtiene el Mapa activo aprx = arcpy.mp.ArcGISProject("CURRENT") current_map = aprx.activeMap ...
Andrea Piedrahita's user avatar
1 vote
0 answers
99 views

Source layer not recognized in tableFrame element of ArcGIS Pro Layout

I created a map series layout in ArcGIS Pro, and try to update it from a Python toolbox, using Cartographic Information Model (CIM). Each time the toolbox is running, the layer used to display ...
Juliette Lapeyre's user avatar
0 votes
1 answer
91 views

Using CIM Maplex to include feature weights and never remove unplaced labels [closed]

I'm using ArcGIS Pro 2.9. I've been trying to add feature weights and to include unplaced labels to a feature class, yet my understanding of the CIM engine seems to be lacking. My code below doesn't ...
Daniel's user avatar
  • 81
0 votes
1 answer
167 views

Save CIMTableFrameField to JSON with Arcpy

I am trying to automatically update a layout table frame with a layer previously created from a model. I am using CIM toolset. I am able to look for the table frame element and choose the layer to use ...
Juliette Lapeyre's user avatar
2 votes
1 answer
707 views

Adding new MapFrame to Existing Layout using arcpy and ArcGIS Pro

I am attempting to add a new MapFrame to an existing Layout Object in an ArcGIS Pro Project; import arcpy aprx = arcpy.mp.ArcGISProject("CURRENT") layout = aprx.listLayouts("LayoutOne&...
Rose's user avatar
  • 315
1 vote
1 answer
176 views

Python CIM raster symbology edits don't appear in Symbology window

I want to set the symbology across multiple rasters to use custom min/max values. The following script is working as intended, and the raster displays correctly. However, the Symbology window does ...
Brennan's user avatar
  • 648
0 votes
1 answer
227 views

Automate adding symbol size expression for all layers ArcGIS Pro

I have many layers on a map. I need to write an Arcade expression in the symbol size expression box, but I need to do it in all the layers. I do not want to do that one by one. I wanted to create a ...
Juliana's user avatar
  • 31
2 votes
2 answers
538 views

Increasing Sample Size for Symbology with arcpy.mp and CIM

I am closing in on finishing a script for some map production in ArcGIS Pro 2.9 and one of my last steps is to increase the sample size of the layer being symbolized, then apply a color ramp, and ...
Phil Shutler's user avatar
2 votes
0 answers
227 views

Set Label to pre-defined text symbol from gallery ArcPy and CIM

In ArcPy (ArcGIS Pro 2.5), I am looking to set a label symbol to a pre-defined text style from the gallery. I'm hoping I can do something like this: lblClass.visible = "True" lyr....
PapaC's user avatar
  • 21
4 votes
1 answer
790 views

Setting Halo property of label using ArcPy and CIM

I don't know how to set halo property in Python. I try it by CIM (code below) but I don't know, what line "lc.textSymbol.symbol.haloSymbol" should contain. Can you advise me how to achieve ...
anyryg's user avatar
  • 153
1 vote
1 answer
73 views

How to use CIMWFSServiceConnection in ArcGIS Pro

Does anyone know how to add a WFS service to a map using the CIMWFSServiceConnection class? The WMS and WMTS equivalents work perfect, but when using CIMWFSServiceConnection, the layer that's added to ...
Berend's user avatar
  • 4,757
1 vote
1 answer
479 views

Label placement over other features and labels in ArcGIS Pro

I need place labels regardless of collisions with other layers. I use ArcPy and CIM. I need to place the label in the center of the polygon. At the same time, I need it not to change its position or ...
anyryg's user avatar
  • 153
0 votes
1 answer
1k views

Update Query on Query layer in ArcGIS Pro

While updating query on query layer in ArcMap is nightmare process, it seems with ArcGIS Pro this could possibly be better using Python CIM Access. I have tried following code and it works in the way ...
Miro's user avatar
  • 9,774
1 vote
1 answer
287 views

ESRI JS API - CIMSymbol with text from graphic attribute

The following sample shows a great use of the CIMSymbol in the ESRI JS API. https://developers.arcgis.com/javascript/latest/sample-code/cim-symbols/index.html Is it possible to set the textString ...
Tim's user avatar
  • 31
4 votes
1 answer
978 views

What is arcpy.cim?

In the help for ArcGIS Pro 2.4's Python CIM access there is "Example 3: Modify layer symbology" which has this code: # Reference a project, map, and layer using arcpy.mp p = arcpy.mp.ArcGISProject('...
PolyGeo's user avatar
  • 65.2k
1 vote
1 answer
1k views

Viewing ArcGIS Pro layer as JSON to illustrate CIM (Cartographic Information Model)

In order to work with the Cartographic Information Model (CIM) from ArcPy with ArcGIS Pro I am interested in viewing the JSON for a particular layer. In a YouTube video from Esri's 2019 Developer ...
PolyGeo's user avatar
  • 65.2k
0 votes
2 answers
1k views

Altering graticule intervals logically in varying map scales using ArcPy and/or Data Driven Pages?

This question appears on many sites and I was wondering if there was a script that is now available that resolves it? My workarounds have been to create multiple mxd's that just hold the same scale ...
GeorgeC's user avatar
  • 8,238