-
Notifications
You must be signed in to change notification settings - Fork 3
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
Incorrect download of rasters #20
Comments
Examples of layers that have recurring issue: http://www.geonode-gfdrrlab.org/layers/hazard%3Ass_muis_rp0050m Note that KML, PDF, PNG, JPEG appear to be downloading as intended. |
WCS error message for http://54.229.171.111/layers/hazard:ss_muis_rp0050m:
|
Problem with data, also witnessed when harvesting from TH, see GFDRR/thinkhazard#754 |
The Labs GeoNode is now on version 2.6, but this issue is still happening.
returns the following exception:
@afabiani can you please help us debugging and fixing the issue? The user should be able to click on |
Hi, the GetCoverage request is wrong. If it has been automatically generated by GeoNode, this could be a side-effect of this bug on GeoNode I will need to double check in order to understand why this is happening. |
I am also having problems downloading data. When trying to download SWIO data (COM, MAD, MUS, SEY, Zanzibar) I get the following error message:
|
Dear all, As soon as the PR has been revised and merged, we can envisage to do a backport to GeoNode 2.6.1 (which, if I'm not wrong, should be the one you are currently using). Nevertheless, in your specific case the Download Links have been already written into the DB. In order to fix your existing data you would need to modify them either manually or by writing a simple Python script that does the job for you. Long story short, for all WCS links you should either invert the coords x0,y0,x1,y2 with x0,x1,y1,y2 or, in case you need the whole dataset to be downloaded, remove the bbox params at all. As an instance you could simplify the download link for http://www.geonode-gfdrrlab.org/layers/hazard%3Aswio_com_500_cf from the current one to the following one: WARNING: Allowing people to download full res images without restrictions to the BBOX is dangerous. They can easily perform a DDOS attack to your server and also completely fill your HD space. In order to avoid that, you should set limits to the GeoServer OWS Services (see the following links for details) |
Following query should fix download link in database : UPDATE base_resourcebase SET csw_anytext = regexp_replace(csw_anytext,
'(b|Bb|Box)=(-?\d+.?\d+)(,|\%2C)(-?\d+.?\d+)(,|\%2C)(-?\d+.?\d+)(,|\%2C)(-?\d+.?\d+)', -- pattern text
E'\\1=\\2\\3\\6\\5\\4\\7\\8', -- replacement text
'g')-- flags |
Nice SQL query :-) |
@afabiani I backport your PR our 2.6 branch with : https://github.com/camptocamp/labs_geonode/pull/7 I try to fix link stored in DB by updating Additionally, I test on: EPSG is set to 4326 but all parameters of bbox are above 90:
|
Links behind "Download layer" are stored in UPDATE base_link SET url = regexp_replace(url,'(b|Bb|Box)=(-?\d+.?\d+)(,|\%2C)(-?\d+.?\d+)(,|\%2C)(-?\d+.?\d+)(,|\%2C)(-?\d+.?\d+)',E'\\1=\\2\\3\\6\\5\\4\\7\\8','g'); Already applied on geonode int server So third link on this layer : |
Image
The issue should be fixed now. |
Can we close this one ? |
When attempting to download rasters, such as this layer, there is an issue where the file download becomes much larger than the original file size. @vdeparday believes it may be a result of the default WCS request. Thoughts? |
actually looks like the rendering is fine (just somehow this layer does not show coastal flood in this area which seems to be wrong but the rendering is fine. However, the WCS request does not work. |
Bounding box issue seems to have resurfaced: Example layer |
Can you open a different issue for this one ? |
The layer was uploaded on 2017-08-15, which is 15 days after we applied the above SQL fix on the db. |
Hi all, Are listed four while there should be only two. Other than this, the bbox specified there seem to be wrong in both cases. For sure on GeoNode side there's place for improvements on this. There are not consistency checks at all. We should envisage to improve the methods generating those WCS download links It is odd anyway that those values do not match any of the ones specified for the layer spatial extent I can actually download the GeoTIFF at full resolution by using the link here However, the resolution is huge. See CoverageDescription link here How big is the original Tiff? |
This remains a priority issue to solve after the v2.8 upgrade |
I thought they a direct download link had been implemented to avoid going through the WCS that hasn't been working in most cases. @afabiani and @cgiovando was it included in the 2.8 release. |
@afabiani and @cgiovando could we get an answer asap ? We could also almost remove the other option almost as it seems like it is never working. |
@pvalsecc Please could you look at this one, running the manage command and checking it works? Alessio advises below: As a test for new upload: I uploaded a new .tif layer uploaded and this seems to work, offering download options for GeoTiif, GZIP and original layer as zip file, which contains the original .tif + .sld files. https://www.geonode-gfdrrlab.org/layers/hazard:gpw_v4_population_density_2015_ca |
I tried to run |
We are based on this commit: 2ea8bc6 |
I see it on production version: e.g. It is still confusing to see the other formats, and some users may click on those initially, but at least the original data link is there. |
#11 keeps the issue open that there are multiple options - to be removed. |
Some TIFs not downloading as correct format - default to wcs
See previous comments
GeoNode#129
GeoNode#1485
@ErikKBethke Please add links to some layers that this occurred on
The text was updated successfully, but these errors were encountered: