0

I have been working on generate results using InterpolatePoints tools and consume it in our Web Application using these request parameters:

{
  inputLayer: featureCollectionObj,
  field: "POP",
  interpolateOption : 5 or 9,
  numClasses: 10,
  outputName: "output_feature_service_name",
  f: "json"
}

both request using different interpolateOption would return a working feature service, we planned to replace its out-of-the-box UniqueValueRenderer with another Renderer using information in its layer definitions, while interpolateOption : 5 looks nice

"renderer": {
    "uniqueValueInfos": [
        {
            "symbol": {
                ...
            },
            "value": "0",
            "label": "1900.0 - 1929.06458431"
        },
        {
            "symbol": {
                ...
            },
            "value": "1",
            "label": "1929.06458431 - 1944.396144"
        },
        {
            "symbol": {
                ...
            },
            "value": "2",
            "label": "1944.396144 - 1952.48353724"
        },
        {
            "symbol": {
                ...
            },
            "value": "3",
            "label": "1952.48353724 - 1956.74963479"
        },
        {
            "symbol": {
                ...
            },
            "value": "4",
            "label": "1956.74963479 - 1959.0"
        },
        {
            "symbol": {
                ...
            },
            "value": "5",
            "label": "1959.0 - 1961.25036521"
        },
        {
            "symbol": {
                ...
            },
            "value": "6",
            "label": "1961.25036521 - 1965.51646276"
        },
        {
            "symbol": {
                ...
            },
            "value": "7",
            "label": "1965.51646276 - 1973.603856"
        },
        {
            "symbol": {
                ...
            },
            "value": "8",
            "label": "1973.603856 - 1988.93541569"
        },
        {
            "symbol": {
                ...
            },
            "value": "9",
            "label": "1988.93541569 - 2018.0"
        }
    ],
    "field1": "classes",
    "type": "uniqueValue"
}

when interpolateOption : 9, there are some classes (0, 1, 9) missings:

"renderer": {
    "uniqueValueInfos": [
        {
            "symbol": {
                ...
            },
            "value": "2",
            "label": "1944.396144 - 1952.48353724"
        },
        {
            "symbol": {
                ...
            },
            "value": "3",
            "label": "1952.48353724 - 1956.74963479"
        },
        {
            "symbol": {
                ...
            },
            "value": "4",
            "label": "1956.74963479 - 1959.0"
        },
        {
            "symbol": {
                ...
            },
            "value": "5",
            "label": "1959.0 - 1961.25036521"
        },
        {
            "symbol": {
                ...
            },
            "value": "6",
            "label": "1961.25036521 - 1965.51646276"
        },
        {
            "symbol": {
                ...
            },
            "value": "7",
            "label": "1965.51646276 - 1973.603856"
        },
        {
            "symbol": {
                ...
            },
            "value": "8",
            "label": "1973.603856 - 1988.93541569"
        }
    ],
    "field1": "classes",
    "type": "uniqueValue"
}

Is it intentional? e.g. more accurate predictions lead to no values in these classes, hence no drawing info for them. Or I could use drawing info of interpolateOption : 5 instead without losing any accuracy of result with interpolateOption : 9 ???

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.