Hot answers tagged

17

Let me quote Andreas on the mailing list (Status Feb 05, 2012): "no - GeoPDF is not yet supported in QGIS. If you want such a feature in QGIS, please consider sponsoring the GDAL/OGR library to include support for this format. See http://www.gdal.org/ogr/ and supported formats: http://www.gdal.org/ogr/ogr_formats.html QGIS is using the ...


15

You have 2 options: 1) Using PyQGIS + OS library: [Must run QGIS as Administrator to rename files] import os #needed to replace filenames layer = iface.activeLayer() #get selected layer selection = layer.selectedFeatures() iface.activeLayer().selectAll() for feature in selection: if os.path.exists(feature['source']): os.rename(feature['...


14

A short guide on producing a multi layered pdf from Qgis - Mar 2015 https://lists.osgeo.org/pipermail/qgis-user/2015-March/031206.html Below is a paraphrased version of the link above: From QGIS composer, save your map as SVG and tick the option "Export map layers as svg groups" when you have pressed save. Open the SVG file in Scribus open source desktop ...


12

I'm going to answer this but you should really do a quick search first before asking something like this, or at least have a look though the manuals at: http://www.qgis.org/en/documentation/manuals.html If you want a PDF you need to first create a composer window, File->New Print Composer... Once you have a new print composer you can add a map (Layer-&...


10

here in my office the solution for press quality maps is to export 300x300px tiff images from print composer. We export only the "core" of the map with the grid and the scale bar. Then in OpenOffice (or LibreOffice) we make the layout and them put the image and print. Very nice results even in A0 maps. Obs: 4gb of RAM helps a lot. Obs2: Since Openoffice don'...


9

Saving this in a Python file and using it in the --code arg should do what you need: from PyQt4.QtCore import * from PyQt4.QtGui import * import os from qgis.core import * from qgis.gui import * from qgis.utils import iface for comp in iface.activeComposers(): print comp folder = r"C:\temp" title = "testing" printer = QPrinter() ...


9

If you want to export to PDF then you will need to create a composer window first. 'File'-> 'New Print Composer'. Once you have done this and have a new print composer then you can add a map. The final step is to export the composer to PDF 'File'-> 'Export to PDF'. The print composer is where you can add your map legend, north arrow, scale, title, etc. You ...


8

Bap, right clicking on a QGIS composer map item only locks its position, not the layers displayed within the map item. To lock the layers displayed, you must enable the "Lock layers for map item" check box in the map item properties panel:


8

A new PDF to TIFF tool has been added to ArcGIS 10.3 for Desktop: Exports an existing PDF file to a Tagged Image File Format (TIFF). If the PDF has georeference information, the TIFF can be a GeoTIFF. These TIFFs can be used as a source for heads-up digitizing and viewing in ArcMap. Both GeoPDF and ISO standards of georeferenced PDFs are supported....


8

It should not be too hard to achieve this by converting the PDF to an image format (say Tiff) and georeferencing that image and projecting it in the same projection as the data you are overlaying. You will not be 100% accurate but with care you can get a good result. A few random thoughts: As seems typical with so many maps, there are no graticules or ...


8

It will possibly be a bit of testing to find what works best for you. Try adjusting your DPI down until it produces a better file size but still readable, or adjust the Raster quality down slightly. Then combine these two acceptable settings and determine if the file size is small enough yet readable. My settings are set to 200dpi and image quality to ...


7

Most of the GIS packages I have used have excellent mapping tools. I can produce very good maps with QGIS for instance. So that's an option, if you can't run to the cost of ArcGIS. Yes it is a little more fiddly to get the exact result you want but excellent maps are perfectly possible. I am able to produce large maps with QGIS - but you have to ...


7

I have had issues with exports running very slowly when I'm using very large dataset, like a PLSS survey grid for an entire state. You might try clipping any extra data out to minimize the amount of geometry that arcmap has to deal with. If you clip any very large or complex layers that you have to be as small as possible it will likely help arcmap ...


7

Negative. Adobe Acrobat or Professional is not the program to achieve what you are trying to do. PDF's are meant to be sheets of paper on your screen, that's why they are hard to edit and reproduce. I've done a similar thing with Zoomify, but that doesn't change the layers based on zoom level. Really I think you need a web application to do this. If you ...


7

Yes, you can make Geospatial PDF from QGIS raster maps to Avenza PDF map. If you have vector layers you can save the QGIS map to an Image (Projects > Save as Image...). Use this image as input in a Geospatial PDF convertion from menu Raster > Convertion > Translate (Convert Format)... Upload PDF to Avenza PDF Maps. I use Android, don't know the dark side ...


7

I have not used this in more than 15 years but ArcPress still seems to be part of ArcGIS for Desktop: The ArcPress printer engine is designed to make printing large, complex maps possible on printers that may not have sufficient resources to process these maps. It can also help when printing maps that the Windows printer engine is unable to process. ...


7

First try. Thanks to PyQGIS, we can call the Maps Printer plugin's functions to achieve what you want! So, having such plugin installed, adjust your own settings in Your settings section of the following code snippet. Open a new QGIS project and run the code in the QGIS Python console. from PyQt4.QtCore import QFileInfo # Your settings projectPaths = ['/...


7

Try setting the thickness of the borders of the polygons a bit smaller, in millimeter and maybe change the join style. If you set it too high and on bevel or rounded, the rounded factor you can set in the layer properties can be seen. You can also choose to remove the borders of your polygons (style "no-pen") To make sure what will be the rendered layer, ...


7

This exact feature has not be implemented yet for the composer. However, you can export layered pdf from the canvas. You might want to follow the feature request as you will find some tips on the subject : https://issues.qgis.org/issues/9362 See for example : As GDAL 1.10 supports GeoPDF (See http://www.gdal.org/frmt_pdf.html), one can export a PDF with ...


6

I think there is an ongoing bug with the Windows version of QGIS where it rasterizes the map before creating a PDF, so you'll likely get poor, bloated PDFs. I think it's a Qt issue because I fixed the code a while back and it works on Ubuntu... One process I have used in the past is to install a PostScript printer driver (doesn't matter which, an HP colour ...


6

Considering the fact that you are exporting some raster data as well; the best technique, IMHO, is to NOT use the ArcGIS PDF exporter at all but rather export to a high resolution TIFF instead and then convert the tiff using Adobe Acrobat Pro renderer to PDF. (Important note: this only works well with TIFF) You can tweak the rendering options in Adobe if ...


6

You are describing the exact functionality of Data-Driven Pages (DDP), a built-in feature of ArcGIS. You can implement them either in a Python script or in ArcMap. If you've never used them before, I'd experiment with them in ArcMap first to get an idea of what you can do with them. From the sound of it, you should be able to do what you need without getting ...


6

A PDF file has a controlled page size that can be used by the reader app (Adobe Reader or similar) to output a set page size when printed. Image files such as TIFF, PNG, BMP etc., are not a page at all, they're a picture/photo. Their size is dependant on the resolution and dimensions of the image in pixels, not a set page size. While I believe you ...


6

It looks like it is working properly. Try right-clicking a layer, then zoom to layer extent for you to view it on the map canvas to the right.


5

At cost yes, http://mappingcenter.esri.com/index.cfm?fa=ask.answers&q=2237 TerraGo's ArcMap extension lets you both write and read GeoPDF files http://www.terragotech.com/products/terrago-publisher/publisher-for-arcgis


5

I'm using the same versions of the software as you are, installed the same way. I exported a simple map, about 10 sq miles worth of 2012 NAIP orthophoto in Mr Sid format, and a simple square vector layer on top of it. The process took a few minutes, and Composer was reported as Not Responding in Composer's title bar, but eventually the process did finish ...


5

I suggest expending effort cutting down the drawing time of the mxd rather than focusing on the python export process. There's some information about that here: Esri KB 34043 - HowTo: Improve printing or exporting performance


5

Your problem is that you use pass which will do nothing, but jumps to the next code row. Do it like this: for mxd in arcpy.ListFiles("*.mxd"): mapdoc = arcpy.mapping.MapDocument(r"D:\desktop\Project\\" + mxd) if 'project2' not in mxd and 'project3' not in mxd: arcpy.mapping.ExportToPDF(mapdoc, r"D:\desktop\Project\out\\"+os.path.basename(...


5

Make sure you have the option "Embed All Document Fonts" checked.


5

Instead of showing the points with a size of 0, you can filter them out. In the graduated style (or any type of style), instead of choosing the val column, use the expression if (val>0, val,null) which will style only the points having a positive value. Since the points are filtered-out, make sure that the 1st point size is now greater than zero! The ...


Only top voted, non community-wiki answers of a minimum length are eligible