[gdal-dev] GeoPDF and neatline
Even Rouault
even.rouault at spatialys.com
Fri Nov 17 08:13:27 PST 2023
Hi,
>
> _My question :_
> Is there a way to gdal_translate / gdalwarp the PDF file without
> EXPLICITLY extracting the neatline ?
No. Your above method is the nominal one.
>
> 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
This won't work. As documented, this must be a name of a "Measure" PDF
object. This is in the case of a PDF with multiple georeferenced areas
(like US with an Alaska or Hawaai inset map). And by itself, this will
not crop the raster, but just expose the pointed Measure as the NEATLINE
metadata.
Even
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20231117/074d044d/attachment.htm>
More information about the gdal-dev
mailing list