Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Add NITF Raster Support #39

Closed

Conversation

sarasafavi
Copy link

Previously, osgeo-importer assumed all rasters were GeoTIFFs; a check for a tiff-specific metadata property was the "is this a raster?" gatekeeper. This caused import of rasters without that property (e.g., NITF) to fail. With this change, all rasters with a supported driver in the environment's GDAL installation can be imported.

As the NITF driver is compiled by default in GDAL installations, it's present in all our environments and safe to add to the default extensions whitelist here. Custom environments with additional non-default drivers like JPEG2000 can add extensions to the whitelist in their own settings.

Note this will fail CI until the new NITF test file is added to the S3 bucket; request for that is pending

Remove unnecessary mutable default value as arg

minor line-length fixes for readability

test name change -- geotiff is not all rasters
Remove GeoTIFF-only metadata property check, add universal check for
vector vs raster data type

GetMetaDataItem('AREA_OR_POINT') is only guaranteed to exist on GeoTIFF
files; a check for this property on e.g., NITF files will fail
@ghost
Copy link

ghost commented Oct 28, 2016

Clean PR, code's pretty clean, code doesn't look like it should break anything, doesn't seem to break anything in practice, and NITF upload works for me. 👍 when CI passes (and I know we have had recent CI problems and CI won't pass until the test data is in the S3 bucket).

@jj0hns0n
Copy link

I will be uploading the data to the test bucket here pretty quick. You can
also ask @garnertb to do it now

On Friday, October 28, 2016, Sasha Hart notifications@github.com wrote:

Clean PR, code's pretty clean, code doesn't look like it should break
anything, doesn't seem to break anything in practice, and NITF upload works
for me. 👍 when CI passes (and I know we have had recent CI problems and
CI won't pass until the test data is in the S3 bucket).


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#39 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAe43hLjXgPdpOYce4z73RuXriTyiVfvks5q4kRrgaJpZM4Kju-s
.

@ghost
Copy link

ghost commented Oct 31, 2016

Closing due to repo move. GeoNode#47

@ghost ghost closed this Oct 31, 2016
@ghost ghost mentioned this pull request Oct 31, 2016
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants