FYI. Data categories are also on our roadmap and I'll definitely check out 
Harvard's code once I get to it, which should be within the next 2-3 weeks I 
assume. Maybe there is some opportunity to share resources among GeoNode users?

Christian

From: [email protected] [mailto:[email protected]] On Behalf Of David 
Winslow
Sent: Friday, February 11, 2011 10:22 AM
To: [email protected]
Subject: Re: [geonode] Creating new tables in development.db

On Thu, Feb 10, 2011 at 10:00 PM, Smitha V <[email protected]> wrote:
We want to customize GeoNode to our organization's specifications. We want to 
categorize data. Also while displaying, we want to group it into folders based 
on the category. So, i want to add a field to the layer table which specifies 
the category (like agriculture, population etc). But i am not able to add a new 
column to the table. Can someone help me out which this?

GeoNode uses Django's "model" framework to interact with databases.  I'd 
recommend working your way through this tutorial: 
http://docs.djangoproject.com/en/1.2/intro/ to learn about using it.  The 
tutorial should take less than an hour if you are familiar with Python already, 
and it will also help you to learn about adding and customizing pages in 
Django/GeoNode.

There is already a 'category' field on Layers which you may be able to adapt to 
your needs.  I know the folks at Harvard Worldmap have done so already so they 
may be able to provide some pointers (or you can peruse their code on github.)

We want to customize search. We want to perform search based on edit distances. 
To achieve this, i need to add a new table(containing a list of words) with 
which the search is performed. I am facing problem in adding a  new table to 
the database. Can i get some guidance on this?

The tutorial I linked above will also help you to add new tables.  Currently 
data search is delegated out to the CSW service in GeoNode so you will either 
need to reimplement the search code in Python/Django or customize GeoNetwork to 
use edit distance for search.


--
Regards
Smitha V
MT2009149
IIITB

--
David Winslow
OpenGeo - http://opengeo.org/


Please be advised that the Massachusetts Secretary of State considers e-mail to 
be a public record, and therefore subject to the Massachusetts Public Records 
Law, M.G.L. c. 66 ยง 10.

Reply via email to