AnsweredAssumed Answered

JSON To Features does not obey symbology

Question asked by arcsukul on Sep 29, 2015
Latest reply on Sep 30, 2015 by arcsukul

Hi guys so i am using the **JSON to features** tool in the ArcMap conversion toolbox and i cannot seem to get the symbology right.

 

This JSON i am using is a GPFeatureRecordSetLayer which i have written to a .json file

 

    {

        "displayFieldName": "pointFeature",

        "hasM": false,

        "hasZ": false,

        "geometryType": "esriGeometryPoint",

        "spatialReference": {

            "wkid": 102100,

            "latestWkid": 3857

        },

        "fields": [

            {

                "name": "OBJECTID",

                "type": "esriFieldTypeOID",

                "alias": "OBJECTID"

            },

            ...

        ],

        "features": [

            {

                "geometry": {

                    "type": "point",

                    "x": 19865753.933378372,

                    "y": -2051854.6857393598,

                    "spatialReference": {

                        "wkid": 102100,

                        "latestWkid": 3857

                    }

                },

                "symbol": {

                    "color": {

                        "r": 0,

                        "g": 0,

                        "b": 0,

                        "a": 0.001176470588235294

                    },

                    "size": 13.333333333333332,

                    "type": "simplemarkersymbol",

                    "style": "circle",

                    "outline": {

                        "color": {

                            "r": 0,

                            "g": 255,

                            "b": 255,

                            "a": 1

                        },

                        "width": 2.6666666666666665,

                        "type": "simplelinesymbol",

                        "style": "solid"

                    },

                    "xoffset": 0,

                    "yoffset": 0

                },

                "attributes": {

                    "OBJECTID": "4131",

                    ...

                   

                }

            }

        ],

        "exceededTransferLimit": true

    }

 

When i run the **Features to JSON** tool on the generated features i get this JSON string which totally skips any symbology information.

 

    {

        "displayFieldName": "pointFeatures",

        "fieldAliases": {

            "OBJECTID": "OBJECTID"

        },

        "geometryType": "esriGeometryPoint",

        "spatialReference": {

            "wkid": 102100,

            "latestWkid": 3587

        },

        "fields": [

            {

                "name": "OBJECTID",

                "type": "esriFieldTypeOID",

                "alias": "OBJECTID"

            },

            ...

        ],

        "features": [

            {

                "attributes": {

                    "OBJECTID": "4131",

                    ...

                },

                "geometry": {

                    "x": 19865753.933378372,

                    "y": -2051854.6857393598

                }

            }

        ]

    }

 

Everything else works fine. Is this a known limitation?

Outcomes