[GeoNode-users] geonode 2.8 updatelayers error

Elton Davis Turin Espinoza eturine at uni.pe
Wed May 23 10:45:09 PDT 2018


Hi Andres,

Could you patch your code so that the zoom works?
I have the same problem, please help me.

Hi Alessio,

I found a commit
<https://github.com/GeoNode/geonode/commit/b4b08f345c9655b3d044e7d08938cb59c0b99c8d>that
edits the utils.py and it does not work for me, do you know which other
file is modified?

Can you please tell me about when the Geonode 2.8.1 will be relesead?
I'm looking forward to it soon...

Thank you so much

Elton

2018-04-11 12:29 GMT-05:00 Andres Juarez <albertoandres.juarez at gmail.com>:

> Thanks Alessio
> This solved the problem in "uploadlayers".
>
> The zoom to the layer extension still shows incorrectly.
> Can it be solved in a simple way?
>
> Thank you again!
>
> 2018-04-11 13:10 GMT-03:00 Alessio Fabiani <alessio.fabiani at geo-
> solutions.it>:
>
>> Yep,
>> this issue has been fixed on master branch (future 2.8.1 version).
>>
>> For a quick fix just do
>>
>> vim  /usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py
>>
>> -- go to line  614
>>
>> replace
>>
>>     "srid": resource.srid
>>
>> with
>>
>>     "srid": resource.projection
>>
>>
>> Regards,
>>
>> Alessio Fabiani
>>
>> ==
>> GeoServer Professional Services from the experts! Visit
>> http://goo.gl/it488V for more information.
>> ==
>>
>> Ing. Alessio Fabiani
>>
>> @alfa7691
>> Founder/Technical Lead
>>
>>
>> GeoSolutions S.A.S.
>> Via di Montramito 3/A
>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>> 55054  Massarosa
>> <https://maps.google.com/?q=Via+di+Montramito+3/A+55054+%C2%A0Massarosa&entry=gmail&source=g>
>> (LU)
>> Italy
>> phone: +39 0584 962313
>> fax:     +39 0584 1660272
>> mob:   +39 331 6233686
>>
>> http://www.geo-solutions.it
>> http://twitter.com/geosolutions_it
>>
>> -------------------------------------------------------
>>
>> AVVERTENZE AI SENSI DEL D.Lgs. 196/2003
>>
>> Le informazioni contenute in questo messaggio di posta elettronica e/o
>> nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
>> loro utilizzo è consentito esclusivamente al destinatario del messaggio,
>> per le finalità indicate nel messaggio stesso. Qualora riceviate questo
>> messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
>> darcene notizia via e-mail e di procedere alla distruzione del messaggio
>> stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
>> divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
>> utilizzarlo per finalità diverse, costituisce comportamento contrario ai
>> principi dettati dal D.Lgs. 196/2003.
>>
>> The information in this message and/or attachments, is intended solely
>> for the attention and use of the named addressee(s) and may be confidential
>> or proprietary in nature or covered by the provisions of privacy act
>> (Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
>> Code).Any use not in accord with its purpose, any disclosure, reproduction,
>> copying, distribution, or either dissemination, either whole or partial, is
>> strictly forbidden except previous formal approval of the named
>> addressee(s). If you are not the intended recipient, please contact
>> immediately the sender by telephone, fax or e-mail and delete the
>> information in this message that has been received in error. The sender
>> does not give any warranty or accept liability as the content, accuracy or
>> completeness of sent messages and accepts no responsibility  for changes
>> made after they were sent or for other risks which arise as a result of
>> e-mail transmission, viruses, etc.
>>
>> 2018-04-11 18:02 GMT+02:00 Andres Juarez <albertoandres.juarez at gmail.com>
>> :
>>
>>> Hello everyone
>>>
>>> I just installed stable version 2.8 using APT in Ubuntu 16.04 also newly
>>> installed. Geonode works and I can load layers, edit metadata, etc.
>>> I have found two problems, perhaps related:
>>> 1- When viewing the layer information, the preview takes me to an
>>> erroneous extension, however if I look for the location manually the layer
>>> looks correct. The same happens when creating a map with any layer.
>>>
>>> 2- I have connected in geoserver another postgis database and published
>>> several layers. When executing "updatelayers" it shows me the following
>>> error:
>>>
>>>
>>> Traceback (most recent call last):
>>>   File "/usr/bin/django-admin", line 9, in <module>
>>>     load_entry_point('Django==1.8.19', 'console_scripts',
>>> 'django-admin')()
>>>   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/ma
>>> nagement/commands/updatelayers.py", line 122, in handle
>>>     execute_signals=True)
>>>   File "/usr/local/lib/python2.7/dist-packages/geonode/geoserver/helpers.py",
>>> line 614, in gs_slurp
>>>     "srid": resource.srid
>>> Exception: ('Failed to process ancho_calle',
>>> AttributeError("'FeatureType' object has no attribute 'srid'",))
>>>
>>>
>>> The same happens with the layers loaded by the Geonode interface, it
>>> shows the same error.
>>>
>>> What can I do to solve it?
>>> Greetings and thanks in advance.
>>> --
>>>    Andrés Juarez
>>>
>>> _______________________________________________
>>> geonode-users mailing list
>>> geonode-users at lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/geonode-users
>>>
>>>
>>
>
>
> --
>    Andrés Juarez
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>

-- 
"Este mensaje y sus anexos van dirigidos exclusivamente a la persona o
 
entidad que se muestra como destinatario/s y pueden contener datos 

personales y/o información confidencial, sometida a secreto profesional o
 
cuya divulgación esté prohibida en la legislación
 vigente. Que 
<http://www.ctic.uni.edu.pe/>da prohibida, toda divulgación, reproducción u 
otra acción 
al respecto por parte de personas o entidades  distintas al 

destinatario/s. Si ha recibido este mensaje por error, por favor, 

contáctenos a la siguiente dirección de correo electrónico
 lpdp at uni.edu.pe 
<mailto:lpdp at uni.edu.pe> y proceda a su eliminación.



En cumplimiento a 
lo establecido en la Ley de Protección de Datos 
Personales - Ley N° 29733, 
le informamos que sus datos personales 
obtenidos son almacenados bajo la 
confidencialidad y las medidas de 
seguridad legalmente establecidas y no 
serán cedidos ni
 compartidos con empresas ni entidades ajenas a la 
Universidad Nacional 
de Ingeniería. Si lo desea, usted podrá ejercitar los 
derechos de 
actualización, inclusión, rectificación, supresión u 
oposición, enviando
 un mensaje al correo electrónico anteriormente
 
señalado e indicando en el "Asunto" el derecho que desea ejercer"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20180523/ba41b1e5/attachment-0001.html>


More information about the geonode-users mailing list