Skip to main content
Question

Convert serialized graphic to shape

  • April 22, 2015
  • 1 reply
  • 22 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": ""

 

    }

 

]
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

david_r
Celebrity
  • 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