Skip to main content
Question

Convert serialized graphic to shape

  • April 22, 2015
  • 1 reply
  • 8 views

Forum|alt.badge.img
We have serialized graphic stored on our database and we need to covert it to shape file , I used geomotry replacer but none of geometry encoder works   . Below is the same code

 

 

[

 

    {

 

        "stype": "solid",

 

        "ssize": 1,

 

        "sradius": 1,

 

        "scolor": 0,

 

        "stypename": "SFS",

 

        "salpha": 0.5,

 

        "garray": [

 

            {

 

                "x": 54.36774826717463,

 

                "y": 24.45024020254503,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            },

 

            {

 

                "x": 54.36831933781603,

 

                "y": 24.45027827392112,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            },

 

            {

 

                "x": 54.36832885566005,

 

                "y": 24.449888042316164,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            },

 

            {

 

                "x": 54.36780537423877,

 

                "y": 24.44987852447214,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            },

 

            {

 

                "x": 54.36774826717463,

 

                "y": 24.45024020254503,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            }

 

        ],

 

        "swidth": 2,

 

        "scolorb": 0,

 

        "gtype": "P",

 

        "salphab": 0.5,

 

        "gsr": 4326,

 

        "initialExtent": {

 

            "xmin": 54.361133365578425,

 

            "ymin": 24.445633566037742,

 

            "xmax": 54.3794076261032,

 

            "ymax": 24.455446463225783,

 

            "spatialReference": {

 

                "wkid": 4326

 

            }

 

        },

 

        "stext": ""

 

    },

 

    {

 

        "stype": "solid",

 

        "ssize": 1,

 

        "sradius": 1,

 

        "scolor": 0,

 

        "stypename": "SFS",

 

        "salpha": 0.5,

 

        "garray": [

 

            {

 

                "x": 54.36852873038455,

 

                "y": 24.450259238233073,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            },

 

            {

 

                "x": 54.36917594377813,

 

                "y": 24.45030682745319,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            },

 

            {

 

                "x": 54.36922353299825,

 

                "y": 24.44981189956398,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            },

 

            {

 

                "x": 54.36860487313673,

 

                "y": 24.449802381719955,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            },

 

            {

 

                "x": 54.36852873038455,

 

                "y": 24.450259238233073,

 

                "spatialReference": {

 

                    "wkid": 4326

 

                }

 

            }

 

        ],

 

        "swidth": 2,

 

        "scolorb": 0,

 

        "gtype": "P",

 

        "salphab": 0.5,

 

        "gsr": 4326,

 

        "initialExtent": {

 

            "xmin": 54.361133365578425,

 

            "ymin": 24.445633566037742,

 

            "xmax": 54.3794076261032,

 

            "ymax": 24.455446463225783,

 

            "spatialReference": {

 

                "wkid": 4326

 

            }

 

        },

 

        "stext": ""

 

    }

 

]

1 reply

david_r
Evangelist
  • April 23, 2015
Hi,

 

 

there are several ways to serialize geometries with JSON, which one was used here?

 

 

If none of the standards schemas were used (ESRI or OGC), you might have to deserialize it yourself, using the JSON-Transformers in FME.

 

 

David

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings