Hot answers tagged

6

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 ...


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, ...


4

Looks like GeoJSON file, You can view it by copy pasting the feature in geojson.io. Save the file with the .JSON extension instead of the .txt and you should be able to use it.


4

FeatureClassToFeatureClass_conversion is the equivalent tool for the ArcGIS desktop export data function. It almost never is a good idea to use ObjectId as a user reference. Why don't you generate a user id column which you know will be consistent through data exports?object Ids within a gdb are given in reference to other features in feature classes stored ...


3

I want to come at this from a different direction and show you how you can test the logic in each of the answers by using purely Python rather than ArcPy. I may or may not have copied/understood each of their logics but I don't think that matters because what I am trying to show is how you can test them, and in particular experiment with yours. mxdList = ...


2

It appears you need to use arcpy.mapping.MapDocument import arcpy, os Workspace = "J:\\IrrigatedLands" arcpy.env.workspace = Workspace mxdList = arcpy.ListFiles("*.mxd") i = 0 for mxd in mxdList: i += 1 outmxd = arcpy.mapping.MapDocument(Workspace + "\\" + mxd) gifname = Workspace + "\\IrrigatedLands_temp_{}.gif".format(i) ...


2

There are several options available that you can control the settings to create/export your PDF file that impacts the file size. Resolution - Higher values usually produce sharper images. However, this can also substantially increase the file size and processing time. Output Image Quality - For maps with raster data or transparent vector layers, ...


2

For the first part of your question, you could use a Custom script in your model to fetch and write the raster statistics to a csv. This would replace your Step 4. Raster Layer Statistics. To do this, go to Processing Toolbox > Scripts > Tools > Create new script and copy the following (note: change the path of the text_file_path): ##Raster statistics=name ...


1

That's data in GeoJSON format. You can use it for example in the free GIS suite QGIS.


1

The solution to the problem is to use the RGB rendering by setting the property below. rle2.Force2RGB = true; For some reason the exported raster file has to be RGB. The second thing - once I imported the produced raster to ArcMap the colors where wrong. This is because ArcMap applies some default renderer properties to the raster. To overcome this ...


1

The problem also has to do with printer selection. My rulers were missing too and the MXD wouldn't export. I noticed that ArcGIS was trying to reference printer drivers we no longer have and as a consequence the paper settings were greyed out. I set the MXD to the new printer in the Page and Print Setup dialog and I was able to set the paper size again, then ...



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