Example: Add Strain Map
Last update: 17.07.2025Proto Request Example
The image property dimensions were obtained from the image .properties file
under the CCA _METADATA folder after aligning the layer interactively.
{
"project": "Tutorial Project",
"strainMapFiles": [
{
"strainMapFile": "v252\\sherlock\\tutorial\\StrainMaps\\StrainMap.csv",
"fileComment": "test comment",
"headerRowCount": 0,
"referenceIDColumn": "SolidID",
"strainColumn": "PCB Strain",
"strainUnits": "µε",
"cca": [
"Main Board"
],
"numericFormat": "English",
"fileType": 0
},
{
"strainMapFile": "v252\\sherlock\\tutorial\\StrainMaps\\TutorialStrainMap-BOT.jpg",
"fileComment": "test comment",
"cca": [
"Main Board"
],
"fileType": 2,
"imageFile": {
"coordinateUnits": "in",
"boardBounds": [
{
"vertexX": -3.7464000000000004,
"vertexY": -2.2525
},
{
"vertexX": 3.746400000000001,
"vertexY": -2.2370759615384617
},
{
"vertexX": 3.746400000000001,
"vertexY": 2.2343759615384617
},
{
"vertexX": -3.7464000000000004,
"vertexY": 2.2488
}
],
"imageBounds": {
"imageX": -5.020737315246,
"imageY": -2.2660262062839065,
"imageH": 5.30825048949089,
"imageW": 10.225039886616724
},
"legendBounds": {
"legendX": -4.881167037861916,
"legendY": 2.5084326923076925,
"legendH": 0.33175288461538466,
"legendW": 9.728958574610246
},
"legendOrientation": 0,
"minStrain": 9.16,
"maxStrain": 1680.1,
"strainUnits": "µε"
}
}
]
}
Python Example
For a Python example, refer to the online PySherlock Reference.