[ckan-dev] ckan-dev Digest, Vol 97, Issue 10

Aaron McGlinchy McGlinchyA at landcareresearch.co.nz
Tue Nov 20 04:04:43 UTC 2018


Thanks Eric and Andrew.

The code you gave worked Eric
    {% snippet "spatial/snippets/spatial_query.html", default_extent="[[-49.43,160.74], [-32.43,185.91]]" %}

Could the code be modified to cope with this scenario - should I raise an issue?  Meantime maybe the documentation should include this example, noting to add 360 to any -ve longitude values as a workaround.

Cheers
Aaron


-----Original Message-----
From: ckan-dev <ckan-dev-bounces at lists.okfn.org> On Behalf Of ckan-dev-request at lists.okfn.org
Sent: Tuesday, 20 November 2018 1:00 AM
To: ckan-dev at lists.okfn.org
Subject: ckan-dev Digest, Vol 97, Issue 10

Send ckan-dev mailing list submissions to
ckan-dev at lists.okfn.org

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.okfn.org/mailman/listinfo/ckan-dev
or, via email, send a message with subject or body 'help' to
ckan-dev-request at lists.okfn.org

You can reach the person managing the list at
ckan-dev-owner at lists.okfn.org

When replying, please edit your Subject line so it is more specific than "Re: Contents of ckan-dev digest..."


Today's Topics:

   1. Re: Spatial Search widget (Eric Soroos)


----------------------------------------------------------------------

Message: 1
Date: Mon, 19 Nov 2018 10:35:16 +0000
From: Eric Soroos <eric at derilinx.com>
To: CKAN Development Discussions <ckan-dev at lists.okfn.org>, Aaron
McGlinchy <McGlinchyA at landcareresearch.co.nz>
Subject: Re: [ckan-dev] Spatial Search widget
Message-ID: <903DAAA5-64A8-46BA-AF96-EA703B256280 at derilinx.com>
Content-Type: text/plain; charset="us-ascii"

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: https://hes32-ctp.trendmicro.com:443/wis/clicktime/v1/query?url=www.derilinx.com&umid=9150a18d-8e51-4717-be1b-af26c0a59667&auth=404f40417a1e5a405fc5ef4abba8b54d9bae9d41-d0b61c603ad43bd2ee0de8045151b63c44c42da4
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-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev


------------------------------

End of ckan-dev Digest, Vol 97, Issue 10
****************************************


________________________________

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


More information about the ckan-dev mailing list