[GeoNode-users] A problem about Geoserver connection_parameters

Alessio Fabiani alessio.fabiani at geo-solutions.it
Wed Aug 2 01:00:45 PDT 2017


Hi,
currently GeoNode does not fully support the management of other workspaces
(or schemas). In many parts of the code, there's the assumption that every
dataset has been imported on "geonode" schema.

This will require development work at a certain point. Please open an issue
on github for that in order to keep track.

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
55054  Massarosa (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.

On Wed, Aug 2, 2017 at 9:49 AM, dugaoming <897998829 at qq.com> wrote:

> Hi.
> Thanks for your help ,i find the code about how to import the shapefile
> into postgis successfully. But now i met another problem.In
> geoserver/helper.py,
>
> ds.connection_parameters.update(
>         {'validate connections': 'true',
>          'max connections': '10',
>          'min connections': '1',
>          'fetch size': '1000',
>          'host': db['HOST'],
>          'port': db['PORT'] if isinstance(
>              db['PORT'], basestring) else str(db['PORT']) or '5432',
>          'database': db['NAME'],
>          'user': db['USER'],
>          'passwd': db['PASSWORD'],
>          'dbtype': db_engine,
>          'schema': 'myschema2',
>          }
>     )
>
> This code is about configuration of connection parameters in geoserver.In
> order to import shapefile into a specific schema in postgis , i added a new parameter
>   --'schema' . It works .But when i  changed the 'myschema2' to
> 'myschema3'(this schema has been built in my datebase before), the file
> didn't be imported into 'myschema3'. The file still was imported into
> 'myschema2'
> When i checked the website of geoserver, i found the parameter of schema
> unchanged too.  It seems that these parameters can't be changed by changing
> in code. BUT they can be changed when i change them in website.
> Maybe i have made some mistakes. I hope you can give me some advice.
> Thank you so much!
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20170802/7417ca1f/attachment.html>


More information about the geonode-users mailing list