Hi Ando, On Mon, Sep 12, 2011 at 3:43 AM, Andrew Jeffrey <[email protected]> wrote: > Hi, > > First of all great job on GeoNode 1.1-RC1 that install process is much easier > and I think the documentation of the install process has improved as well - > Makes the install easier for linux noobs like myself…..thanks!
Great. Three cheers for all the hard work that Ariel and David have done to get this release out! > I have a question regarding the use of an existing PostGIS DB with Geonode. > We currently have a PostGIS enable DB at work, and this is the point of truth > for our spatial datasets. However the clients and web apps we use don't > provide the collaboration and metadata management that GeoNode package does. > Can I tap into an existing PostGIS install with GeoNode? Is it as easy as > changing the details in the local_settiings.py, and creating the associated > user in my existing database? Or am I being a little to simplistic? Not simplistic at all. The way to do this is to (as you mention) setup your local_settings.py with the credentials to your existing database and run django-admin.py syncdb --settings=geonode.settings with the virtualenv activated ... this will create a set of new tables in this database for GeoNode. Then you need to login to the GeoServer admin UI and register your PostGIS database as a store and configure each of the layers that you want to use with GeoNode. This can be laborious if you have alot of layers and I think it would be a good addition to geonode to have a management command that does this sort of thing using gsconfig.py. Then you need to run the management command that 'syncs' the layer records from GeoServers config to GeoNode and GeoNetworks (django-admin.py updatelayers --settings=geonode.settings). IIRC, all of the layers will be owned by the admin user and have public permissions. You can change the permissions in the GeoNode UI. From there you should be good to go. NOTE: Ive done this on a small scale in the past and ran into issues doing it with a lot (200+ layers) but recall that the errors I ran into during updatelayers have been solved since then. Please report any issues you run into back to the list and we can try to diagnose and solve them with you. > Thanks > Ando Thank you! and good luck. Jeffrey Johnson ------------------- Software Developer OpenGeo - http://opengeo.org Enterprise support for the open source geospatial stack. m: +1760089488 i:jj0hns0n @:jj0hns0n s:j3ffr3yj0hns0n
