Skip to content

Commit

Permalink
Move NITF data files to frmts/nitf/data
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 16, 2024
1 parent be9e61c commit b718220
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,6 @@ jobs:
- name: Run xmllint checks
run: |
xmllint --schema ./data/nitf_spec.xsd ./data/nitf_spec.xml --noout
xmllint --schema ./frmts/nitf/data/nitf_spec.xsd ./frmts/nitf/data/nitf_spec.xml --noout
xmllint --schema ./ogr/ogrsf_frmts/vdv/data/vdv452.xsd ./ogr/ogrsf_frmts/vdv/data/vdv452.xml --noout
xmllint --schema ./ogr/ogrsf_frmts/gmlas/data/gmlasconf.xsd ./ogr/ogrsf_frmts/gmlas/data/gmlasconf.xml --noout
9 changes: 9 additions & 0 deletions frmts/nitf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ add_gdal_driver(
"NOT GDAL_USE_JPEG_INTERNAL\\\;NOT GDAL_USE_JPEG12_INTERNAL\\\;NOT GDAL_USE_TIFF_INTERNAL"
)

set(GDAL_DATA_FILES
${CMAKE_CURRENT_SOURCE_DIR}/data/nitf_spec.xml
${CMAKE_CURRENT_SOURCE_DIR}/data/nitf_spec.xsd
)
set_property(
TARGET ${GDAL_LIB_TARGET_NAME}
APPEND
PROPERTY RESOURCE "${GDAL_DATA_FILES}")

if(NOT TARGET gdal_NITF)
return()
endif()
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions gdal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -668,8 +668,6 @@ set(GDAL_DATA_FILES
data/gt_datum.csv
data/gt_ellips.csv
data/netcdf_config.xsd
data/nitf_spec.xml
data/nitf_spec.xsd
data/ogrvrt.xsd
data/ogrinfo_output.schema.json
data/ozi_datum.csv
Expand Down

0 comments on commit b718220

Please sign in to comment.