File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -297,7 +297,9 @@ bool CoordinateOperation::isPROJInstantiable(
297
297
}
298
298
for (const auto &gridDesc :
299
299
gridsNeeded (databaseContext, considerKnownGridsAsAvailable)) {
300
- if (!gridDesc.available ) {
300
+ // Grid name starting with @ are considered as optional.
301
+ if (!gridDesc.available &&
302
+ (gridDesc.shortName .empty () || gridDesc.shortName [0 ] != ' @' )) {
301
303
return false ;
302
304
}
303
305
}
Original file line number Diff line number Diff line change @@ -1247,6 +1247,13 @@ echo 39 -3 0 | PROJ_DISPLAY_PROGRAM_NAME=NO PROJ_DATA=tmp_dir PROJ_DEBUG=2 $EXE
1247
1247
1248
1248
rm -rf tmp_dir
1249
1249
1250
+ echo "##############################################################" >> ${OUT}
1251
+ echo "Test cs2cs grid missing with @gridname" >> ${OUT}
1252
+
1253
+ $EXE +proj=longlat +datum=WGS84 +units=m +geoidgrids=@i_dont_exist.tif +vunits=m +no_defs +type=crs +to EPSG:4979 >> ${OUT} <<EOF
1254
+ 2 49 0
1255
+ EOF
1256
+
1250
1257
echo "##############################################################" >> ${OUT}
1251
1258
echo "Test Similarity Transformation (example from EPSG Guidance Note 7.2)" >> ${OUT}
1252
1259
#
Original file line number Diff line number Diff line change @@ -607,6 +607,9 @@ cannot initialize transformation
607
607
cause: File not found or invalid
608
608
program abnormally terminated
609
609
##############################################################
610
+ Test cs2cs grid missing with @gridname
611
+ 49dN 2dE 0.000
612
+ ##############################################################
610
613
Test Similarity Transformation (example from EPSG Guidance Note 7.2)
611
614
300000 4500000 299905.060 4499796.515 0.000
612
615
##############################################################
You can’t perform that action at this time.
0 commit comments