I want to organize lots of geoPDF files so they can easily viewed overlayed onto Google Maps and Google Earth.
My 1st step, I think, is to convert the geoPDF to a jpg type image which then needs matching lat,long information.
Is there python code to parse a geoPDF file to get the projection and image data?
A geoPDF2KML tool?
Steps I used on ubuntu system that has python (python already part of Unbuntu) 1. download and install poppler 2. download and install proj4 3. download and install gdal
poppler$./configure --enable-xpdf-headers --prefix=/usr/local/include/poppler" then the usual "$make" and "$make install"
poppler$make
poppler$sudo make install
sudo apt-get install proj4
gdal$./configure --with-static-proj4=/usr/local/lib --with-threads --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-gif=internal --with-png=internal --with-libz=internal --with-poppler=/usr/local/include/poppler --with-python
gdal$make
gdal$sudo make install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With