Opened 8 years ago
Closed 6 years ago
#3246 closed enhancement (fixed)
r.in.srtm: patch to support SRTM water bodies import (SWBD)
Reported by: | stjo | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.0 |
Component: | Python | Version: | svn-releasebranch72 |
Keywords: | r.in.srtm | Cc: | |
CPU: | Unspecified | Platform: | All |
Description
I developed an enhancement for r.in.srtm to import SRTM water bodies in the .raw format and .raw.zip format, e.g. from https://dds.cr.usgs.gov/srtm/version2_1/SWBD/ Internally, it uses r.in.bin and is activated by the flag 'w' for 'water'.
Maybe someone can check my changes and take a look if my python coding Style is ok. :)
Attachments (2)
Change History (19)
by , 8 years ago
Attachment: | r.in.srtm.diff added |
---|
comment:1 by , 8 years ago
I updated the patch, but I'm not able to test it because there are no raw files in https://dds.cr.usgs.gov/srtm/version2_1/SWBD/. In the zip files there are only shapefile.
follow-up: 6 comment:2 by , 8 years ago
I'm really sorry for the wrong link.
If you still want to test my changes, the correct link is: https://e4ftl01.cr.usgs.gov/SRTM/SRTMSWBD.003/2000.02.11/
comment:3 by , 8 years ago
Milestone: | 7.2.1 → 7.2.2 |
---|
comment:4 by , 7 years ago
Milestone: | 7.2.2 → 7.4.0 |
---|
All enhancement tickets should be assigned to 7.4 milestone.
comment:6 by , 7 years ago
Replying to stjo:
I'm really sorry for the wrong link.
If you still want to test my changes, the correct link is: https://e4ftl01.cr.usgs.gov/SRTM/SRTMSWBD.003/2000.02.11/
Sorry I cannot access again to this link. It seems it requires special permission, I already authorized LP DAAC on my account.
follow-up: 9 comment:8 by , 7 years ago
GDAL doesn't support this format by default, reading a little bit more about the data it seems that is is only the line coast and they also provide shapefile for this dataset https://lta.cr.usgs.gov/srtm_water_body_dataset
I think the shapefile is more useful than raster, if you really need raster you can rasterize the vector.
comment:9 by , 7 years ago
Replying to lucadelu:
I think the shapefile is more useful than raster, if you really need raster you can rasterize the vector.
I think the idea is that their raster mask precisely matches what was used in the processing chain. to reach that with self-rasterized vector maps may lead to slightly different results.
comment:11 by , 7 years ago
Support for opening SRTM SWBD in GDAL added per https://github.com/OSGeo/gdal/commit/a85292c5af40a48bf5b68ca36712b286ff2a95fb
comment:12 by , 6 years ago
Milestone: | 7.4.1 → 7.4.2 |
---|
comment:14 by , 6 years ago
Milestone: | 7.4.2 → 7.6.0 |
---|
All enhancement tickets should be assigned to 7.6 milestone.
comment:15 by , 6 years ago
Replying to neteler:
Is this ticket done?
Yes, to me it seems done. Maybe one more test could useful
comment:17 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
enhancement patch