How to parse the text file containing polygon data


#1

I have a text file that contains area of the polygon and its coordinates as below,

“55.072961234914” “POLYGON ((144.91847149290282 -37.82102042581555 144.9184710702594 -37.82103546876034 144.91847387489355 -37.821035518344125 144.91847664534268 -37.8210392
1074811 144.91847736740857 -37.821039510085285 144.91847764986886 -37.821040090925685 144.91847832085008 -37.82104148067487 144.9184810390378 -37.82104553712812 144.91848204
091647 -37.82104918024178 144.9184808187448 -37.82105277141973 144.9184775637076 -37.82105698631368 144.9184769279993 -37.82105810153562 144.9184767766591 -37.82105863595655
144.9184760686597 -37.821059736382885 144.91847402787417 -37.82106557502149 144.91847378286758 -37.82106705761816 144.9184728984183 -37.82106934356637 144.91847192245723 -3
7.82107153057051 144.9184700579991 -37.82107149760829 144.918469916409 -37.821076537143384 144.91846817408876 -37.82107915217143 144.91846479406 -37.82108041623159 144.91841
346468252 -37.82107950875275 144.9184131701477 -37.821079398108736 144.9184098929603 -37.821074939762646 144.91840926295865 -37.82107354713292 144.91840755396262 -37.8210722
6699741 144.9184031848833 -37.82107133184044 144.91840190435036 -37.82107117763021 144.91840192920222 -37.82107029312204 144.9183979834095 -37.821070223361005 144.9183962646
3351 -37.82106973608079 144.9183923944924 -37.82106871241837 144.91838743870701 -37.82106553108865 144.9183868610425 -37.821064095226845 144.9183852071477 -37.82105895365666
144.91838455453134 -37.82105703164102 144.91838448178115 -37.82105646712443 144.91838380230837 -37.82105525835948 144.91838084243386 -37.82105103001368 144.9183798299733 -3
7.82104816802529 144.918379871579 -37.82104668723972 144.91838120446238 -37.82104388654277 144.91838576199015 -37.82103920624617 144.91838623349742 -37.821038840597424 144.9
183862937334 -37.821038475787944 144.91838756578696 -37.82103711228051 144.9183901889269 -37.82103403881182 144.91839158670197 -37.82103406352438 144.9183916227904 -37.82103
277909601 144.9183961881631 -37.82102963903478 144.91839652359138 -37.821028941152456 144.91839742806525 -37.82102832812776 144.91839927602982 -37.8210251877849 144.91840319
45686 -37.82102525706402 144.91840341084477 -37.821017559500945 144.9184039060919 -37.821016631942655 144.91840830891346 -37.82101256530925 144.91840901425797 -37.8210118424
2601 144.91840909730985 -37.821011716829574 144.9184092568876 -37.82101165747024 144.91840954979392 -37.821011623898514 144.91841812401898 -37.82100998847113 144.91842067147
851 -37.82100972981558 144.91842364527605 -37.82100974273987 144.9184288204264 -37.821009644989154 144.91843203381003 -37.821009662149024 144.91843734548894 -37.821007495025
086 144.9184384940822 -37.821007290940685 144.91844349919086 -37.82100592674469 144.91844699500362 -37.8210062832309 144.91845112444895 -37.82100652836032 144.91845483100207
-37.82100694534569 144.91845968182142 -37.82100884876211 144.91846460617688 -37.82101282526504 144.91846517580535 -37.82101349589226 144.91846599338643 -37.82101399427405 1
44.91847055959124 -37.821018223981426 144.91847149290282 -37.82102042581555))”

how to parse this file to get polygon.