使用GDAL将GeoPDF转换为GeoTIFF的USGS方法无法按所述方法工作。我的代码中缺少什么吗?尝试提取到轮廓层。
这些是USGS的指示:https://viewer.nationalmap.gov/tools/rasterconversion/geopdf-gdal-conversion.html
这是我的代码:
gdal_translate geo.pdf contours.tif -of GTiff
--config GDAL_PDF_LAYERS "Map_Frame.Contours.Contour_Features"
这些是层次
Metadata (LAYERS):
LAYER_00_NAME=Map_Collar
LAYER_01_NAME=Map_Collar.Map_Elements
LAYER_02_NAME=Map_Frame
LAYER_03_NAME=Map_Frame.Projection_and_Grids
LAYER_04_NAME=Map_Frame.Projection_and_Grids.Projection_Coordinate_Values
LAYER_05_NAME=Map_Frame.Projection_and_Grids.Geographic_and_Grid_Ticks
LAYER_06_NAME=Map_Frame.Projection_and_Grids.Projection_Line_Mask
LAYER_07_NAME=Map_Frame.Projection_and_Grids.Grid_Lines
LAYER_08_NAME=Map_Frame.Geographic_Names
LAYER_09_NAME=Map_Frame.Geographic_Names.Geographic_Names
LAYER_10_NAME=Map_Frame.Boundaries
LAYER_11_NAME=Map_Frame.Boundaries.Boundary_Names
LAYER_12_NAME=Map_Frame.Boundaries.Boundaries
LAYER_13_NAME=Map_Frame.Transportation
LAYER_14_NAME=Map_Frame.Transportation.Road_Names_and_Shields
LAYER_15_NAME=Map_Frame.Transportation.Roads
LAYER_16_NAME=Map_Frame.Transportation.Airport_Names
LAYER_17_NAME=Map_Frame.Transportation.Airports
LAYER_18_NAME=Map_Frame.Hydrography
LAYER_19_NAME=Map_Frame.Hydrography.Hydrographic_Names
LAYER_20_NAME=Map_Frame.Hydrography.Hydrographic_Features
LAYER_21_NAME=Map_Frame.Contours
LAYER_22_NAME=Map_Frame.Contours.Contour_Names
LAYER_23_NAME=Map_Frame.Contours.Contour_Features
LAYER_24_NAME=Images
LAYER_25_NAME=Images.Orthoimage
导出仅导致正射影像被导出,这不是我选择的图层之一。执行上述操作时未发现任何错误。