[GeoJSON] New, improved polygons
Jason Birch
jb-geojson at jasonbirch.com
Tue Apr 24 23:45:52 PDT 2007
Martin Daly wrote:
> Who's in the smoke-filled room now, eh?
Heh. IRC doesn't require username/password or $$$ for entry... just a
willingness to accept somewhat lower productivity ;)
> The 'holes' (plural) in your example was more of a 'hole' (singular).
> How do we do 'holes' with just an array of arrays?
I think that was my initial oversight. Allan's final corrected version
looked something like:
"geometry": {
"type": "Polygon",
"crs": "EPSG:4326",
"coordinates": [[0.0,0.0],[1.0,0.0],[1.0,1.0],[0.0,1.0],[0.0,0.0]]
"holes": [
[[0.25,0.25],[0.75,0.25],[0.75,0.75],[0.25,0.75],[0.25,0.25]],
[[0.1,0.1],[0.1,0.2],[0.2,0.2],[0.1,0.1]]
]
}
Jason
More information about the GeoJSON
mailing list