Using GDAL translate in Pythonwin


I want GDAL translate in Pythonwin to process some GeoPDFs to GeoTiffs. I can’t call up GDAL module in Pywin. I used the OSGeo4 installer for original GDAL install and can leverage GDAL properly from the OSGeo4W.bat file.

My Python and Pywin are from an install of Arc 10.2.2. I created a PythonPath User variable and added C:Python27ArcGIS10.2;C:Python27ArcGIS10.2Lib;C:Python27ArcGIS10.2DLLs;C:Python27ArcGIS10.2Liblib-tk;C:OSGeo4W;C:OSGeo4Wlib;C:OSGeo4Wlibtk8.5;C:OSGeo4Wbin

After a reboot I still can’t call up the OSgeo/GDAL module.

While I would like to use GDAL commands in Pythonwin, I have also tried the work around

os.system("gdal_translate -of GTiff " + sourcefile + " " + destinationfile)

which is launching cmd prompts but not processing the files.

Can someone help with sorting out the GDAL module in Pywin or to clue me in on why the os.system command is not calling up GDAL translate.

Is it possible to export GeoPDF from QGIS?


Is there any plugin for QGIS which would help me in exporting the map document as a GeoPDF ?

Historical U.S.G.S. Georeferencing


I have downloaded a historical USGS map that is suppose to be a geoPDF. My understanding is that QGIS cannot directly read geoPDF’s. I have not had any luck in converting it to a geoTIF in order to bring into QGIS.

  1. Has anyone had any success in doing this? Is there another way that
    someone knows to use the geoPDF with QGIS.

  2. I converted the geoPDF to a TIF and attempted to use the
    georeferencer plug-in. Everytime I try doing it te results are not
    correct.Georeferender screenshot Georeferencer result

Cropping and transforming geoPDF with GDALwarp


I got some great advice on how to transform a geoPDF to a geoTIF on this post, which used the available downloads from this site. I would like to take it a little further and not only convert, but remove the border of historical USGS maps in order to be able to tile them in QGIS. Being a basic GIS user, I get lost in the “coding” involved to implement these practices.

How can I convert and crop historical USGS maps so they can be tiled in QGIS?

Thank you in advance for the insight.

How do I remove the orthoimage layer from the new USGS geospatial PDF topo maps


I would like to remove the orthoimage layer from a USGS topo geoPDF map. I have Adobe Acrobat Pro 9, but can’t find a way to delete a layer. I’ve tried setting the layer to “Never export”, then exporting the pdf, but the image is still there (and in the process I have somehow deleted the geo-referencing info.)

Thanks

QGIS – Export PDF map with georeferenced data [duplicate]


This question already has an answer here:

GeoPDF Support in GDAL


I installed OSGeo4W using a Windows installer… it contains GDAL 1.7.3. I can’t get GDAL to recognize PDF as a file type using commands in MSYS shell. Does this version of GDAL not support PDFs? If not, what do I need to do to add support to PDFs for GDAL?

Is it possible to georeference an existing, un-georeferenced pdf?


I was wondering if there was anyway to georeference a pdf directly without first converting it to an image. I have access to ArcGIS 10.1 but haven’t been able to find any information that would indicate it is possible. I am willing to try other open source software if they have a solution.

Thanks!

Edit: I receive site plans in PDF form, often generated from AutoCAD. Currently I save the pdf as a jpg to import into ArcMap, geo-reference it and then digitize things like building footprints. I’m just wondering if there is a way to skip the conversion to jpg step.

Question and Answer is proudly powered by WordPress.
Theme "The Fundamentals of Graphic Design" by Arjuna
Icons by FamFamFam