[gdal-dev] ogr2ogr: Unable to open datasource [SVG, PDF] with the following drivers
Even Rouault
even.rouault at mines-paris.org
Wed May 28 13:27:33 PDT 2014
Le mercredi 28 mai 2014 22:10:51, klo uo a écrit :
> Hi,
>
> I have vector data in PDF format, which I tried to georeference with
> org2ogr -gcp feature and output basic Shapefile, but program complains that
> it's unable to read the PDF file, which I confirm as valid by processing it
> with ghostscript.
>
> I then converted PDF to SVG and confirmed that SVG is well-formed and valid
> XML, but again ogr2ogr complains about it.
>
> Finally by converting initial PDF to DXF, ogr2ogr was able to complete the
> task.
>
> I want to avoid converting PDF to other format and especially to DXF which
> makes the process slow, so I'm hoping for advice. I can provide the test
> files if necessary. Thanks.
Could you provide the test file ? The PDF vector reader has some limitations,
and works best with "structured" PDF.
As far as SVG is concerned, the SVG reader is also currently limited to a
particular formation of SVG : http://gdal.org/drv_svg.html
Even
--
Geospatial professional services
http://even.rouault.free.fr/services.html
More information about the gdal-dev
mailing list