Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add suport for raster files #142

Closed
ingenieroariel opened this issue Jan 24, 2012 · 2 comments
Closed

Add suport for raster files #142

ingenieroariel opened this issue Jan 24, 2012 · 2 comments
Assignees

Comments

@ingenieroariel
Copy link

When uploading a raster file to Mapstory, the following error comes out:

Unexpected error during upload: Could not save the layer flood, there was an upload error: ('Server error', 500, 'No input stream for the provided source')

The same file uploads correctly to the latest master branch of GeoNode.

Here is a snippet of the log output from GeoNode:

[Tue Jan 24 12:53:26 2012] [error] >>> Step 4. Starting upload of [/tmp/tmpMN_1AK/Estimated risk index for flood hazard1.tif] to GeoServer...
[Tue Jan 24 12:53:26 2012] [error] Error during upload
[Tue Jan 24 12:53:26 2012] [error] Traceback (most recent call last):
[Tue Jan 24 12:53:26 2012] [error]   File "/var/lib/geonode/src/GeoNodePy/geonode/maps/upload.py", line 87, in save
[Tue Jan 24 12:53:26 2012] [error]     import_session = uploader.upload(base_file)
[Tue Jan 24 12:53:26 2012] [error]   File "/var/lib/geonode/src/gsuploader.py/src/gsuploader/uploader.py", line 52, in upload
[Tue Jan 24 12:53:26 2012] [error]     session.upload_task(files)
[Tue Jan 24 12:53:26 2012] [error]   File "/var/lib/geonode/src/gsuploader.py/src/gsuploader/api.py", line 252, in upload_task
[Tue Jan 24 12:53:26 2012] [error]     resp = self._client().post_multipart(url, files)
[Tue Jan 24 12:53:26 2012] [error]   File "/var/lib/geonode/src/gsuploader.py/src/gsuploader/uploader.py", line 165, in post_multipart
[Tue Jan 24 12:53:26 2012] [error]     'Content-Type' : 'multipart/form-data; boundary=%s' % BOUNDARY
[Tue Jan 24 12:53:26 2012] [error]   File "/var/lib/geonode/src/gsuploader.py/src/gsuploader/uploader.py", line 110, in _request
[Tue Jan 24 12:53:26 2012] [error]     raise Exception('Server error',content)
[Tue Jan 24 12:53:26 2012] [error] Exception: ('Server error', 'No input stream for the provided source')
@ingenieroariel
Copy link
Author

Adding the file manually via GeoServer and then running updatelayers is a tested workaround.

@ghost ghost assigned ischneider Feb 14, 2012
@ischneider
Copy link
Member

Closing as #669 covers this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants