i want extract wkt data (only polygon) below json below can't read it. can please should polygon ((50643441 47943921, 01030605 11233944, 37149703 57863113, 76470172 87135344, 50643441 47943921))
data this
{ "result":{ "resultcode":0, "resultinfo":null, "updateinisearchform":null, "subsearchentry":null, "data":"{\"parishcode\":null,\"shapes\":[{\"identifier\":\"2769940\",\"displaytitle\":null,\"layername\":null,\"wkt\":\"polygon ((50643441 47943921, 01030605 11233944, 37149703 57863113, 76470172 87135344, 50643441 47943921))\"}],\"bbox\":\"1111, 2222, 333, 2407664\",\"type\":\"address\",\"srid\":3456}", "surveylabeltables":null } }
got working
have parse string again
var wktdata = json.parse(body.result.data); var polygondata = wktdata.shapes[0].wkt;
Comments
Post a Comment