Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there python code to parse a geoPDF file to get the projection and image data? a geoPDF2KML tool?

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?

like image 572
b_dev Avatar asked Dec 05 '25 20:12

b_dev


1 Answers

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 
like image 53
b_dev Avatar answered Dec 08 '25 10:12

b_dev



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!