[Geojson] Query

Matt Priour mpriour at kestrelcomputer.com
Thu Dec 13 07:16:08 PST 2012


I'm not sure I understand your question.
Your example is a polygon, not a point. A point is represented like this:

{ "type": "Point", "coordinates": [100.0, 0.0] }

or a feature collection of points:

{ "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"}
       }]
}


Matt Priour





On 12/13/2012 7:23 AM, Michael Ngugi Kimani wrote:
>
> Hallo all,
>
> 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.
>
>
> { "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"}
>        }]
> }
>
> *Respectfully yours,*
> **********************************************
> *Ngugi Kimani M.*
> *P.O. Box 449 - 00520 *
> *Ruai, Kenya.*
> *Tel: +254-721324886 *
> *Email: kimanimike2002 at yahoo.com <mailto:kimanimike2002 at yahoo.com>
> *
> **********************************************
>
>
> _______________________________________________
> Geojson mailing list
> Geojson at lists.geojson.org
> http://lists.geojson.org/listinfo.cgi/geojson-geojson.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.geojson.org/pipermail/geojson-geojson.org/attachments/20121213/bb7edf71/attachment.htm>


More information about the GeoJSON mailing list