Dear all,

I would like to translate a GeoPDF into Geotiff.
Furthermore, I  would like to select the image area, given by the neatline.

Image samples are available on "FSTopo Map Products
<https://data.fs.usda.gov/geodata/rastergateway/states-regions/states.php>"
site.
Typical gdalinfo gives :

gdalinfo Boulder_400010515_FSTopo.pdf
Driver: PDF/Geospatial PDF
Files: Boulder_400010515_FSTopo.pdf
Size is 3262, 4050
...
Metadata:
  CREATION_DATE=D:20230213221000Z
  CREATOR=Esri ArcSOC 10.8.1.14362
  NEATLINE=POLYGON ((467455.095191925 4427281.84826825,467455.105581267
4442204.97588751,479233.89727774 4442204.58886474,479234.013428373
4427281.65662041,467455.095191925 4427281.84826825))


I searched various sites for information and ended with the following
commands :

gdalinfo Boulder_400010515_FSTopo.pdf|grep NEATLINE | awk -F= '{print
"id,WKT\n1,\"" $2 "\""}' > Neatline.csv
gdalwarp -of GTIFF -cutline Neatline.csv -crop_to_cutline
Boulder_400010515_FSTopo.pdf Boulder_400010515_FSTopo.pdf.tif


*My question :*
Is there a way to gdal_translate / gdalwarp the PDF file without EXPLICITLY
extracting the neatline ?

I tried to use the "*-oo NEATLINE=something*" option :
gdal_translate -of GTiff -oo NEATLINE="POLYGON ((467455.095191925
4427281.84826825,467455.105581267 4442204.97588751,479233.89727774
4442204.58886474,479234.013428373 4427281.65662041,467455.095191925
4427281.84826825)) Boulder_400010515_FSTopo.pdf
Boulder_400010515_FSTopo.pdf.tif

The option is ignored.

Philippe
The information in this e-mail is confidential. The contents may not be 
disclosed or used by anyone other than the addressee. Access to this e-mail by 
anyone else is unauthorised.
If you are not the intended recipient, please notify Airbus immediately and 
delete this e-mail.
Airbus cannot accept any responsibility for the accuracy or completeness of 
this e-mail as it has been sent over public networks. If you have any concerns 
over the content of this message or its Accuracy or Integrity, please contact 
Airbus immediately.
All outgoing e-mails from Airbus are checked using regularly updated virus 
scanning software but you should take whatever measures you deem to be 
appropriate to ensure that this message and any attachments are virus free.
_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to