[ckan-dev] Spatial extent

Aaron McGlinchy McGlinchyA at landcareresearch.co.nz
Tue Aug 5 22:47:31 UTC 2014


Hi,

                I'm having trouble specifying the spatial extent for a dataset (around New Zealand in the southern hemisphere, hence -ve latitudes).



West bounding longitude             165.3214

East bounding longitude               179.3214

North bounding latitude               -34.7248

South bounding latitude               -46.7248



Which gives co-ordinates of a box at:

165.3214, -34.7248           179.3214, -34.7248





165.3214, -46.7248           179.3214, -46.7248


If I put in an extra field 'spatial' with value { "type": "Polygon","coordinates": [ [ [165.3214, -34.7248],[179.3214, -34.7248],[179.3214, -46.7248],[165.3214, -46.7248],[165.3214, -34.7248] ] ] }

I get an error.



The example I followed (in Italy) { "type": "Polygon","coordinates": [ [ [12.0384, 41.9723],[12.773, 42.1604],[12.6824, 41.8092], [12.2957, 41.7967], [12.0384, 41.9723] ] ] }

works fine.



Is there some trick to this e.g. the order of the co-ordinates?



Thanks

Aaron





________________________________

Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140805/e3ed976a/attachment-0002.html>


More information about the ckan-dev mailing list