Hi Tobias,

Thank you for suggesting this. I used the config option and my geospatial
content was intact. Here's the command:
ogrinfo ELU_PD_08_03.pdf --config OGR_PDF_READ_NON_STRUCTURED YES

it lists all relevant layers. Copy the name of the layer (say "Layername")
you want to write in shapefile and then:

ogr2ogr –f “ESRI Shapefile” footprint.shp ELU_PD_08_03.pdf Layername
--config OGR_PDF_READ_NON_STRUCTURED YES


I didn't know that *ogrinfo takes config options*. This is quite
interesting because the document of ogrinfo doesn't mention this.

Thanks again!

On Thu, Feb 7, 2019 at 1:20 AM Tobias Wendorff <
[email protected]> wrote:

> Hi there,
>
> Am Mi, 6.02.2019, 17:58 schrieb Rajesvari Parasa:
> > to try: ogr2ogr -f sqlite out.sqlite in.pdf
> > But since ogr doesn't recognize my PDF, I can't use this.
>
> I had to use "--config OGR_PDF_READ_NON_STRUCTURED YES" to make it
> read my PDFs, but I think, this will destroy your Geospatial content.
>
> I've just read it in non-structured and georeferenced it using
> ground control points:
>
> ogr2ogr -progress -a_srs EPSG:3857 -gcp ... output.geojson input.pdf
> --config OGR_PDF_READ_NON_STRUCTURED YES -NLT polygon
>
> Perhaps this helps :/
>
> Best regards,
> Tobias
>
>
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to