Hi,

I think I just experienced the same issue.

FYI, in case it helps...

* tried to upload a Shapefile on GeoNode's dev server
* GeoNode reported an error, but the Shapefile made it to GeoServers data-dir
* manually added shapefile-layer in GeoServer
* updatelayers failed with following output

$ django-admin.py updatelayers --settings=geonode.settings
/home/geonode/develop/cspanring/lib/python2.6/site-packages/registration/models.py:4:
 DeprecationWarning: the sha module is deprecated; use the hashlib module 
instead
  import sha
Traceback (most recent call last):
  File "/home/geonode/develop/cspanring/bin/django-admin.py", line 5, in 
<module>
    management.execute_from_command_line()
  File 
"/home/geonode/develop/cspanring/lib/python2.6/site-packages/django/core/management/__init__.py",
 line 429, in execute_from_command_line
    utility.execute()
  File 
"/home/geonode/develop/cspanring/lib/python2.6/site-packages/django/core/management/__init__.py",
 line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File 
"/home/geonode/develop/cspanring/lib/python2.6/site-packages/django/core/management/base.py",
 line 191, in run_from_argv
    self.execute(*args, **options.__dict__)
  File 
"/home/geonode/develop/cspanring/lib/python2.6/site-packages/django/core/management/base.py",
 line 218, in execute
    output = self.handle(*args, **options)
  File 
"/home/geonode/develop/cspanring/src/GeoNodePy/geonode/maps/management/commands/updatelayers.py",
 line 11, in handle
    Layer.objects.slurp()
  File "/home/geonode/develop/cspanring/src/GeoNodePy/geonode/maps/models.py", 
line 579, in slurp
    "uuid": str(uuid.uuid4())
  File 
"/home/geonode/develop/cspanring/lib/python2.6/site-packages/django/db/models/manager.py",
 line 135, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)
  File 
"/home/geonode/develop/cspanring/lib/python2.6/site-packages/django/db/models/query.py",
 line 381, in get_or_create
    raise e
django.db.utils.IntegrityError: maps_layer.date may not be NULL

* layer is listed as option in "maps", but not under "data"

Thanks,

Christian


On Oct 19, 2010, at 9:30 AM, David Winslow wrote:

> Yes, the demo site is still running RC1.  I don't expect to be able to update 
> it before this Friday, when I will update the demo site as part of the 
> process of releasing RC2.
>
> RC2 will include either the patch in question or a variant thereof.  Review 
> is taking place on github - http://github.com/GeoNode/geonode/pulls
>
> You're right, the name field is a bit of a sore point.  We automatically fill 
> it out based on the filename of the data you're uploading, but it's first on 
> the form so not all users are likely to notice that.  On top of that, many 
> parts of the UI use the title instead of the name to identify the layer for 
> users, so the name isn't actually that important.  It is mostly used as a 
> slug and for WFS/WMS clients (which is the reason of the restrictions on its 
> content.)  We'll probably be revisiting the entire upload form before too 
> long.
>
> Ways you can help include:
>       • Try it (and report back). What you're doing now (trying things out 
> and telling us when GeoNode seems broken or poorly designed).
>       • Documentation.  We are using Sphinx to build the manual, but if you 
> aren't comfortable learning the markup you can use your favorite word 
> processor and someone else can do the translation to Sphinx.
>       • Translation.  GeoNode has been written with support for UI 
> translation in mind; however the English translation is the only complete one 
> at this point.  If you are fluent in another language, contributing a 
> translation for the Django user interface would be a great way to help out.  
> Documentation on building translations for Django is available from the 
> Django web site.
> So if you are interested in helping out with GeoNode you're actually off to a 
> pretty good start :)
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> On Tue, Oct 19, 2010 at 6:31 AM, [email protected] 
> <[email protected]> wrote:
> Hi Guido,
> don't know if it's related but RC1 of GeoNode has a problem with
> data upload. This patch [1] solved the problem in my testing server, but
> the issue remains for GeoTIFF data.
> Can you send me your data so I can test it in my server?
>
> Ciao
> Luca
>
> 2010/10/19  <[email protected]>:
> > Hi,
> >
> > Just starting to use GeoNode, and before going through
> > the install, I tried out the demo server, in particular
> > the data upload at http://demo.geonode.org/data/upload
> >
> > I tried to upload a "land use" sahpe file for Port-au-Prince
> > (Haiti) for testing. It has 8 vectors with an ad-hoc land
> > use classification. All loads without problems in QGIS.
> > I do not have the .prj file (with is said to be optional)
> > but data is in EPSG:4326 (lat-lon). Vectors are MULTIPOLYGON
> > type.
> >
> > Upload fails, and I only get "An error occurred while loading
> > the data.". As a sideline, the name field complains about non-
> > character fields (-, space, etc.) which is somewhat awkward
> > for "natural" naming.
> >
> > My prime interest, for the moment, is to test the meta-data
> > tagging, and WMS and WFS fucntionalities, including re-projection
> > and re-formatting. Mid-term, we may be interested to set up
> > internal and external GeoNodes.
> >
> > I read the recent FOSS4G presentations, and am buying into the
> > idea that GeoNode is a step ahead. Documentation is somewhat
> > poorish, though, and community momentum slowly building up.
> > We'd be interested to know how we can contribute (as users, mostly)
> >
> > Guido Lemoine
>
>
>
>
> --
> Luca Casagrande
> http://www.lucacasagrande.net
> twitter: lucacasagrande
>


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