[ckan-dev] Spatial Search widget
Eric Soroos
eric at derilinx.com
Mon Nov 19 10:35:16 UTC 2018
Your syntax here looks right, but I suspect that you've got an issue with the +- 180 degree line.
> {% snippet "spatial/snippets/spatial_query.html", default_extent="[[-49.43,160.74], [-32.43,-174.09]]" %}
Try this:
{% snippet "spatial/snippets/spatial_query.html", default_extent="[[-49.43,160.74], [-32.43,185.91]]" %}
eric
> On Nov 19, 2018, at 4:25 AM, Aaron McGlinchy <McGlinchyA at landcareresearch.co.nz> wrote:
>
> HI, were trying to follow the documentation at http://docs.ckan.org/projects/ckanext-spatial/en/latest/spatial-search.html#spatial-search-widget <http://docs.ckan.org/projects/ckanext-spatial/en/latest/spatial-search.html#spatial-search-widget> to specify the extent displayed on the spatial search widget.
>
> We want it to be zoomed in around New Zealand where the majority of our data is from. For the life of us we can't get a correct map image to appear.
>
> We got coordinates for our bounding box from http://boundingbox.klokantech.com/ <http://boundingbox.klokantech.com/>, and tried a few different boxes.
> e.g. coordinates: 'westlimit=160.74; southlimit=-49.43; eastlimit=-174.09; northlimit=-32.43
> => extent : {% snippet "spatial/snippets/spatial_query.html", default_extent="[[-49.43,160.74], [-32.43,-174.09]]" %}
>
> Tried another in GeoJson format:
> {% snippet "spatial/snippets/spatial_query.html", default_extent="{ \"type\": \"Polygon\", \"coordinates\": [ [ [82.7, 31.6],[-137.8, 31.6],[-137.8, -72.5],[82.7, -72.5],[82.7, 31.6] ] ]}" %}
>
> Neither work. Can anyone give me code snippet to specify a box around NZ?
> <image003.jpg>
>
> 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 <http://www.landcareresearch.co.nz/>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org <mailto:ckan-dev at lists.okfn.org>
> https://lists.okfn.org/mailman/listinfo/ckan-dev <https://lists.okfn.org/mailman/listinfo/ckan-dev>
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev <https://lists.okfn.org/mailman/options/ckan-dev>
Eric Soroos, Senior Developer
Derilinx - Linked & Open Data Solutions
Web: www.derilinx.com
Email: eric at derilinx.com
Address: 11/12 Baggot Court, Dublin 2, D02 F891
Tel: +353 (0)1 254 4316
Mob: +353 (0)83 8730257
Twitter: @derilinx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20181119/948da7b8/attachment-0002.html>
More information about the ckan-dev
mailing list