<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Just use something like ogr2ogr to do that:<div><br></div><div><a href="http://www.gdal.org/ogr/drv_geojson.html">http://www.gdal.org/ogr/drv_geojson.html</a></div><div><br></div><div>Best regards,</div><div>Bart</div><div><br></div><div><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; ">-- <br>Bart van den Eijnden<br>OSGIS - <a href="http://osgis.nl">http://osgis.nl</a></span>

</div>
<br><div><div>On Dec 13, 2012, at 4:25 PM, Michael Ngugi Kimani <<a href="mailto:kimanimike2002@yahoo.com">kimanimike2002@yahoo.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color:; background-color:; font-family:arial, helvetica, sans-serif;font-size:10pt">Thanks for the reply.<br><br>Using you example indicated below, is there a way of getting the values of the point i.e the Lat, Long without manually entering the values like <br><pre class="yiv101445035literal-block">[100.0, 0.0] and so on. This is when am reading a shape file stored in postgis and it doesn't have a column for X and Y.</pre><div><span><br></span></div><div> </div><div><b><font face="times new roman"></font></b><font face="tahoma, new york, times, serif"> </font></div><div><font face="tahoma, new york, times, serif"> </font></div><div><b></b><font face="tahoma, new york, times, serif" size="2"> </font></div><div><b><font face="tahoma, new york, times, serif" size="2">Respectfully yours,</font></b></div><div><b></b><font face="tahoma, new york, times, serif" size="2"> </font></div><div><b><font face="tahoma,
 new york, times, serif" size="2">********************************************</font></b></div><div><b></b><font face="tahoma, new york, times, serif" size="2"> </font></div><div><b><font face="tahoma, new york, times, serif" size="2">Ngugi Kimani M.</font></b></div><div align="left"><b><font face="tahoma, new york, times, serif" size="2">P.O. Box 449 - 00520 </font></b></div><div align="left"><b><font face="tahoma, new york, times, serif" size="2">Ruai, Kenya.</font></b></div><div align="left"><b><font face="tahoma, new york, times, serif" size="2">Tel: +254-721324886 </font></b></div><div align="left"><b><font face="tahoma, new york, times, serif" size="2">Email: </font><a rel="nofollow" target="_blank" href="mailto:kimanimike2002@yahoo.com"><font face="tahoma, new york, times, serif" size="2">kimanimike2002@yahoo.com</font></a><br></b></div><div align="left"><font face="tahoma, new york, times, serif" size="2"> </font></div><div dir="ltr"><b><font face="tahoma, new york, times, serif" size="2">********************************************</font></b></div><div><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Matt Priour <<a href="mailto:mpriour@kestrelcomputer.com">mpriour@kestrelcomputer.com</a>><br> <b><span style="font-weight: bold;">To:</span></b> <a href="mailto:geojson@lists.geojson.org">geojson@lists.geojson.org</a> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, December 13, 2012 6:16 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Geojson] Query<br> </font> </div> <br><div id="yiv101445035">
  

    
  
  <div>
    I'm not sure I understand your question.<br>
    Your example is a polygon, not a point. A point is represented like
    this:<br>
    <br>
    { "type": "Point", "coordinates": [100.0, 0.0] }<br>
    <br>
    or a feature collection of points:<br>
    <br>
    <pre class="yiv101445035literal-block">{ "type": "FeatureCollection",
  "features": [
    { "type": "Feature1",
      "geometry": { "type": "Point", "coordinates": [100.0, 0.0] },
      "properties": {"prop0": "value0"}
      },
{ "type": "Feature2",
      "geometry": { "type": "Point", "coordinates": [90.0, 60.0] },
      "properties": {"prop0": "value1", "foo":"bar"}
      }]
}

</pre>
    <br>
    <big>Matt Priour</big><br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <div class="yiv101445035moz-cite-prefix">On 12/13/2012 7:23 AM, Michael Ngugi
      Kimani wrote:<br>
    </div>
    <blockquote type="cite">
      <div style="font-family:arial, helvetica, sans-serif;font-size:10pt;">
        <div><span><br>
          </span></div>
        <div> 
          <div><span>Hallo all,</span></div>
          <div style="font-size: 13.3333px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><br>
            <span></span></div>
          <div style="font-size: 13.3333px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span>Using

              the example below of displaying  point is there a way of
              reading the coordinates automatically since getting the
              coordinates of several polygon might be alot of work.<br>
            </span></div>
          <div style="font-size: 13.3333px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><br>
            <span></span></div>
          <div style="font-size: 13.3333px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><br>
          </div>
          <pre class="yiv101445035literal-block">{ "type": "FeatureCollection",
  "features": [
    { "type": "Feature",
      "geometry": {"type": "Polygon", "coordinates": [ [100.0, 0.0], [101.0, 0.0], [101.0, 1.0],
             [100.0, 1.0], [100.0, 0.0] ]
           ]},
      "properties": {"prop0": "value0"}
      }]
}
</pre>
          <div style="font-size: 13.3333px; font-family: arial, helvetica, sans-serif; background-color: transparent; font-style: normal; "><span><br>
            </span></div>
        </div>
        <div><font face="tahoma, new york, times, serif"> </font></div>
        <div><font face="tahoma, new york, times, serif"> </font></div>
        <div><font face="tahoma, new york, times, serif" size="2"> </font></div>
        <div><b><font face="tahoma, new york, times, serif" size="2">Respectfully
              yours,</font></b></div>
        <div><font face="tahoma, new york, times, serif" size="2"> </font></div>
        <div><b><font face="tahoma, new york, times, serif" size="2">********************************************</font></b></div>
        <div><font face="tahoma, new york, times, serif" size="2"> </font></div>
        <div><b><font face="tahoma, new york, times, serif" size="2">Ngugi
              Kimani M.</font></b></div>
        <div align="left"><b><font face="tahoma, new york,
              times, serif" size="2">P.O. Box 449 - 00520 </font></b></div>
        <div align="left"><b><font face="tahoma, new york,
              times, serif" size="2">Ruai, Kenya.</font></b></div>
        <div align="left"><b><font face="tahoma, new york,
              times, serif" size="2">Tel: +254-721324886 </font></b></div>
        <div align="left"><b><font face="tahoma, new york,
              times, serif" size="2">Email: </font><a rel="nofollow" ymailto="mailto:kimanimike2002@yahoo.com" target="_blank" href="mailto:kimanimike2002@yahoo.com"><font face="tahoma, new york, times, serif" size="2">kimanimike2002@yahoo.com</font></a><br>
          </b></div>
        <div align="left"><font face="tahoma, new york, times,
            serif" size="2"> </font></div>
        <div dir="ltr"><b><font face="tahoma, new york, times,
              serif" size="2">********************************************</font></b></div>
      </div>
      <br>
      <fieldset class="yiv101445035mimeAttachmentHeader"></fieldset>
      <br>
      <pre>_______________________________________________
Geojson mailing list
<a rel="nofollow" class="yiv101445035moz-txt-link-abbreviated" ymailto="mailto:Geojson@lists.geojson.org" target="_blank" href="mailto:Geojson@lists.geojson.org">Geojson@lists.geojson.org</a>
<a rel="nofollow" class="yiv101445035moz-txt-link-freetext" target="_blank" href="http://lists.geojson.org/listinfo.cgi/geojson-geojson.org">http://lists.geojson.org/listinfo.cgi/geojson-geojson.org</a>
</pre>
    </blockquote>
    <br>
  </div>

</div><br>_______________________________________________<br>Geojson mailing list<br><a ymailto="mailto:Geojson@lists.geojson.org" href="mailto:Geojson@lists.geojson.org">Geojson@lists.geojson.org</a><br><a href="http://lists.geojson.org/listinfo.cgi/geojson-geojson.org" target="_blank">http://lists.geojson.org/listinfo.cgi/geojson-geojson.org</a><br><br><br> </div> </div> </blockquote></div>   </div></div>_______________________________________________<br>Geojson mailing list<br><a href="mailto:Geojson@lists.geojson.org">Geojson@lists.geojson.org</a><br>http://lists.geojson.org/listinfo.cgi/geojson-geojson.org<br></blockquote></div><br></div></body></html>