[GeoNode-users] how to update all the thumbnails

Federico Gianoli alpacagis at gmail.com
Thu Nov 16 08:22:52 PST 2017


Thanks,

I have removed some layers from geoserver and now the command works fine!

Thanks for your help

Fede

2017-11-16 16:27 GMT+01:00 Paolo Corti <pcorti at gmail.com>:

> Can you correctly access the layer which is causing the problem in GeoNode?
>
> Try to updatelayers just for one layer to see if it works.
> By the way, also saving the layer metadata will update the thumbnail
> (at least in master)
>
> p
>
> On Thu, Nov 16, 2017 at 10:18 AM, Federico Gianoli <alpacagis at gmail.com>
> wrote:
> > Thanks Paolo,
> >
> > I ran "geonode updatelayers" without results.
> >
> > The command give me the following message, should I give another command
> > before to run updatelayers?
> >
> >
> >
> > # geonode updatelayers
> >
> > Inspecting the available layers in GeoServer ...
> > Traceback (most recent call last):
> >   File "/usr/bin/django-admin", line 21, in <module>
> >     management.execute_from_command_line()
> >   File
> > "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line
> > 354, in execute_from_command_line
> >     utility.execute()
> >   File
> > "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py",
> line
> > 346, in execute
> >     self.fetch_command(subcommand).run_from_argv(self.argv)
> >   File "/usr/lib/python2.7/dist-packages/django/core/
> management/base.py",
> > line 394, in run_from_argv
> >     self.execute(*args, **cmd_options)
> >   File "/usr/lib/python2.7/dist-packages/django/core/
> management/base.py",
> > line 445, in execute
> >     output = self.handle(*args, **options)
> >   File
> > "/usr/local/lib/python2.7/dist-packages/geonode/
> geoserver/management/commands/updatelayers.py",
> > line 119, in handle
> >     execute_signals=True)
> >   File
> > "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py",
> line
> > 439, in gs_slurp
> >     resources = [k for k in resources if k.enabled in ["true", True]]
> >   File "/usr/lib/python2.7/dist-packages/geoserver/support.py", line
> 67, in
> > getter
> >     self.fetch()
> >   File "/usr/lib/python2.7/dist-packages/geoserver/support.py", line
> 176, in
> > fetch
> >     self.dom = self.catalog.get_xml(self.href)
> >   File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line
> 214, in
> > get_xml
> >     return parse_or_raise(content)
> >   File "/usr/lib/python2.7/dist-packages/geoserver/catalog.py", line
> 205, in
> > parse_or_raise
> >     raise Exception(msg, e)
> > Exception: ('GeoServer gave non-XML response for [GET
> > http://localhost:8080/geoserver/rest/workspaces/
> geonode/datastores/datastore/featuretypes/salah_aldin_
> wells_iraq_unesco_ll_point.xml]:
> > <featureType>\n  <name>salah_aldin_wells_iraq_unesco_ll_point</name>\n
> > <nativeName>salah_aldin_wells_iraq_unesco_ll_point</nativeName>\n
> > <namespace>\n    <name>geonode</name>\n    <atom:link
> > xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
> > href="http://localhost:8080/geoserver/rest/namespaces/geonode.xml"
> > type="application/xml"/>\n  </namespace>\n
> > <title>salah_aldin_wells_iraq_unesco_ll_point</title>\n  <keywords>\n
> > <string>features</string>\n
> > <string>salah_aldin_wells_iraq_unesco_ll_point</string>\n  </keywords>\n
> > <nativeCRS>GEOGCS["WGS 84", \n  DATUM["World Geodetic
> System
> > 1984", \n    SPHEROID["WGS 84", 6378137.0, 298.257223563,
> > AUTHORITY["EPSG","7030"]], \n
> > AUTHORITY["EPSG","6326"]], \n
> > PRIMEM["Greenwich", 0.0,
> > AUTHORITY["EPSG","8901"]], \n
> UNIT["degree",
> > 0.017453292519943295], \n  AXIS["Geodetic longitude", EAST], \n
> > AXIS["Geodetic latitude", NORTH], \n
> > AUTHORITY["EPSG","4326"]]</nativeCRS>\n
> > <srs>EPSG:4326</srs>\n  <nativeBoundingBox>\n
> > <minx>43.0292000000001</minx>\n    <maxx>44.8967</maxx>\n
> > <miny>33.7583000000001</miny>\n    <maxy>35.2347000000001</maxy>\n
> > <crs>EPSG:4326</crs>\n  </nativeBoundingBox>\n  <latLonBoundingBox>\n
> > <minx>43.0292000000001</minx>\n    <maxx>44.8967</maxx>\n
> > <miny>33.7583000000001</miny>\n    <maxy>35.2347000000001</maxy>\n
> > <crs>GEOGCS["WGS84(DD)", \n  DATUM["WGS84", \n
> > SPHEROID["WGS84", 6378137.0, 298.257223563]], \n
> > PRIMEM["Greenwich", 0.0], \n  UNIT["degree",
> > 0.017453292519943295], \n  AXIS["Geodetic longitude", EAST], \n
> > AXIS["Geodetic latitude", NORTH]]</crs>\n
> </latLonBoundingBox>\n
> > <projectionPolicy>FORCE_DECLARED</projectionPolicy>\n
> > <enabled>true</enabled>\n  <store class="dataStore">\n
> > <name>geonode:datastore</name>\n    <atom:link
> > xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
> > href="http://localhost:8080/geoserver/rest/workspaces/
> geonode/datastores/datastore.xml"
> > type="application/xml"/>\n  </store>\n  <maxFeatures>0</maxFeatures>\n
> > <numDecimals>0</numDecimals>\n
> > <overridingServiceSRS>false</overridingServiceSRS>\n
> > <skipNumberMatched>false</skipNumberMatched>\n
> > <circularArcPresent>false</circularArcPresent>\n  <attributes',
> > ParseError(ExpatError('unclosed token: line 54, column 2',),))
> >
> >
> > 2017-11-16 15:48 GMT+01:00 Paolo Corti <pcorti at gmail.com>:
> >>
> >> Hi Federico
> >> updatelayers will regenerate thumbnails for layers.
> >> Unfortunately there isn't a solution for maps right now. You can only
> >> manually regenerate them by using the "Set thumbnail" button
> >> cheers
> >> p
> >>
> >> On Thu, Nov 16, 2017 at 7:15 AM, Federico Gianoli <alpacagis at gmail.com>
> >> wrote:
> >> > Hi,
> >> > I have, maybe a stupid question.
> >> > I am using GeoNode 2.6.3.
> >> > Is there any way to regenerate all the layers and maps thumbnails?
> >> >
> >> > Thanks
> >> >
> >> > Federico
> >> >
> >> > _______________________________________________
> >> > geonode-users mailing list
> >> > geonode-users at lists.osgeo.org
> >> > https://lists.osgeo.org/mailman/listinfo/geonode-users
> >> >
> >>
> >>
> >>
> >> --
> >> Paolo Corti
> >> Geospatial software developer
> >> web: http://www.paolocorti.net
> >> twitter: @capooti
> >> skype: capooti
> >
> >
>
>
>
> --
> Paolo Corti
> Geospatial software developer
> web: http://www.paolocorti.net
> twitter: @capooti
> skype: capooti
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171116/2bf5076e/attachment.html>


More information about the geonode-users mailing list