title: Convert Postgis MultiPoligon Object to GeoJson
body: <p>I work with postgis and I have library for java to select data.now I want to convert this data to Geojson because Geoext need GeoJson Object to display data .Can anybody help me?</p>
  
  <pre><code>ResultSet resultSet = s.executeQuery("select * from a1");
  while (resultSet.next()) {
      PGgeometry mp = (PGgeometry) resultSet.getObject("geom");
      MultiPolygon mp1 = (MultiPolygon) mp.getGeometry();
     //TODO
  }
  </code></pre>
  
  <p>}</p>