title: how to insert polygon to PostGIS using JDBC
body: <p>I am getting polygon as a set of points. (text or JSON representation)</p>
  
  <p>I need to do the following:</p>
  
  <p>1) insert polygon to PostGIS using JDBC</p>
  
  <p>2) I am getting an object coordinate ( point ) and I need to check if this point inside polygons or not.</p>
  
  <p>I saw different examples but I didn't find any which is using JDBC ( Java ).</p>
  
  <p>Can you please share the simple java snippet or pointing me to already an existing example.</p>
  
  <p>Note polygon in my case is not a cycle</p>
  
  <p>Thanks
  Oleg.</p>