[ckan-dev] Proxy Limits in Spatial Extension

Adrià Mercader adria.mercader at okfn.org
Fri Jan 24 18:57:18 UTC 2014


Hi William,

The GeoJSON preview uses the resource proxy extension, which
unfortunately seems to have the file size limit hardcoded:

https://github.com/okfn/ckan/blob/master/ckanext/resourceproxy/controller.py#L11

It should be straight forward to make this configurable, if you are up
for sending a pull request have a look at [1] to see how to get the
value from a config option.
If not no worries! Create an issue on our repo and someone will pick
it up eventually: https://github.com/okfn/ckan/issues

Cheers,

Adrià

[1] https://github.com/okfn/ckan/blob/master/ckan/lib/uploader.py#L57

On 21 January 2014 20:01, William Morris <wboykinm at geosprocket.com> wrote:
> What are the limits of the GeoJSON preview function in the spatial
> extension? I've got some datasets to preview just fine with many
> features:
>
> http://data.geosprocket.org/dataset/cadastral-data/resource/999bdfa0-7a5a-42c1-80a9-080483bd9075
> (~1MB),
>
> While others - not really all that much larger - throw a 500 error:
>
> http://data.geosprocket.org/dataset/cadastral-data/resource/57c76bc0-715b-43b5-a289-95ec67195eed
> (~2MB)
>
> I realize that there are basic limits to vectors in leaflet, but even
> github will preview leaflet vectors up to 10MB. Is there any way to
> boost this limit in CKAN's spatial extension?
>
> Thanks!
>
>
> ----------
> William Morris | Cartographer
> (802)-870-0880 | geosprocket.io | GeoSprocket LLC, Burlington VT
> _______________________________________________
> 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



More information about the ckan-dev mailing list