Select to view content in your preferred language

CIMSpatialMapSeries' margin values not being applied?

813
1
Jump to solution
10-21-2024 09:03 AM
Labels (2)
ODWC_GIS
Frequent Contributor

I'm almost done with a script that'll export shortened links to each feature in an Experience Builder App, but I'm stuck at an unusual point.

My methodology involves ArcGIS Pro and the programmatic creation of a Spatial Map Series, and the derivative URL Parameters for an ExB hyperlink therefrom.

It appears that the only way to create a Spatial Map Series from ArcPy is to call the "CIM Spatial Map Series Object and populate its properties."  I appear to be having issues with the Map Extent parameters, specifically, setting them to anything other than Percentage.

  • extentOptions
  • marginType
  • marginUnits
  • margin

SMS GUI Tool Options.png

 The Usual GUI Spatial Map Series' Tool clearly reflects the CIM Options for marginType (Percent, MapUnits, or PageUnits).  But any attempt on my part to specify anything other than Percent in the CIM just gets ignored.

    Attempting This (4-mile margin according to the MapUnits):

CIM code error.PNG

 Results in this:

CIM SMS Result.PNG

A 4 Percent Margin.

This has got to be User Error.  Anyone reading this have any ideas?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
ODWC_GIS
Frequent Contributor

I found it.  Wish I could delete the question now.  It was my specified wkid of the projection, which was not correct at all.  Me intending to use "Miles" requires the use of: 

'uwkid': 9093 

 apparently.  I feel like this one came out of left field, and I don't know where exactly it comes from: LinearUnitId (arcgis.com)

 

View solution in original post

0 Kudos
1 Reply
ODWC_GIS
Frequent Contributor

I found it.  Wish I could delete the question now.  It was my specified wkid of the projection, which was not correct at all.  Me intending to use "Miles" requires the use of: 

'uwkid': 9093 

 apparently.  I feel like this one came out of left field, and I don't know where exactly it comes from: LinearUnitId (arcgis.com)

 

0 Kudos