title: Python convert WKT polygon to row wise points
body: <pre><code>"POLYGON ((12 13,22 23,16 17,22 24))",101,Something,100000
  "POLYGON ((10 12,40 42,46 34,16 24,88 22,33 24,18 20 ))",102,another,200000
  </code></pre>
  
  <p>How can I get something like below in a csv file:</p>
  
  <p>UID(like 101,102 etc) represents an unique identifier for each polygon.</p>
  
  <pre><code>UID#1,County,population,Point#1_Lat,Point#1_Long
  UID#1,County,population,Point#2_Lat,Point#2_Long
  UID#1,County,population,Point#3_Lat,Point#3_Long
  UID#1,County,population,Point#n_Lat,Point#n_Long
  
  UID#2,County,population,Point#1_Lat,Point#1_Long
  UID#2,County,population,Point#2_Lat,Point#2_Long
  UID#2,County,population,Point#3_Lat,Point#3_Long
  UID#2,County,population,Point#n_Lat,Point#n_Long
  </code></pre>