Re: [gdal-dev] Extracting vector layers from Geospatial PDF

2019-02-09 Thread Rajesvari Parasa
Thanks for sharing this. I was looking just here: https://gdal.org/ogrinfo.html On Sun, Feb 10, 2019 at 1:26 AM Even Rouault wrote: > > I didn't know that *ogrinfo takes config options*. This is quite > > interesting because the document of ogrinfo doesn't mention this. > > It is in the

Re: [gdal-dev] Extracting vector layers from Geospatial PDF

2019-02-09 Thread Even Rouault
> I didn't know that *ogrinfo takes config options*. This is quite > interesting because the document of ogrinfo doesn't mention this. It is in the general section: https://gdal.org/ogr_utilities.html -- Spatialys - Geospatial professional services http://www.spatialys.com

Re: [gdal-dev] Extracting vector layers from Geospatial PDF

2019-02-09 Thread Tobias Wendorff
Am Sa, 9.02.2019, 20:47 schrieb Rajesvari Parasa: > > I didn't know that *ogrinfo takes config options*. This is quite > interesting because the document of ogrinfo doesn't mention this. It does. Please also check this: https://github.com/OSGeo/gdal/issues/1282 Did a huge test, since I'm also

Re: [gdal-dev] Extracting vector layers from Geospatial PDF

2019-02-09 Thread Rajesvari Parasa
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

Re: [gdal-dev] Extracting vector layers from Geospatial PDF

2019-02-06 Thread Michael Patrick
> > > This must be a redundant question but I really haven't figured out a way > to do this. I can export into a tiff but that's not desirable. > There are a variety of potential difficulties that can make this problematic. 1. PDF Version and compliance of the PDF file itself. 2. The lineage of

Re: [gdal-dev] Extracting vector layers from Geospatial PDF

2019-02-06 Thread Tobias Wendorff
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

[gdal-dev] Extracting vector layers from Geospatial PDF

2019-02-06 Thread Rajesvari Parasa
Hi, This must be a redundant question but I really haven't figured out a way to do this. I can export into a tiff but that's not desirable. I am using gdal 2.5 and built it from source and enabled poppler. But when I use ogrinfo to read the file, I get 'unable to read the data source with