[GeoNode-devel] Excluding remote layers from Download Map feature?

Simone Dalmasso simone.dalmasso at gmail.com
Wed Aug 31 00:49:16 PDT 2016


Hi Craig,

it looks reasonable to me (not sure if the "continue" is necessary or it
would break if there are more than one remote service). Could you go on
with a PR?

2016-08-30 3:39 GMT+02:00 Craig Stephenson <crstephenson at alaska.edu>:

> Hi All,
>
> My colleagues and I discovered that an exception is produced if you add a
> remote layer (via the Remote Services feature) to a map, then try to
> download the map by going to:
>
> Download Map -> Download Data Layers -> Start downloading this map
>
> We modified GeoNode to skip over Remote Services layers like this:
>
> https://github.com/ua-snap/geonode/commit/c23d8d19b65328901145a5d74e12f9
> 8f4aa0e537
>
> Is this a reasonable fix? And if so, should I submit this as a PR to your
> project?
>
> Some context: I had tried making a map with a Shapefile layer, a GeoTIFF
> layer, and a Remote Services layer. The j_layer["service"] value for each
> shows up as:
>
> Shapefile: WFS
> GeoTIFF: WCS
> Remote Services: None
>
> Which is why I'm performing this check:
>
> if j_layer["service"] is None
>
> Or would it be better to do something like this?
>
> if j_layer["service"] is not "WFS" and j_layer["service"] is not "WCS"
>
> Thanks,
> Craig
>
> _______________________________________________
> geonode-devel mailing list
> geonode-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-devel
>
>


-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-devel/attachments/20160831/a68adf63/attachment.html>


More information about the geonode-devel mailing list