POST
|
That actually makes perfect sense. Thanks! I had thought about a code similar to the one you wrote, not exactly, but decided to go with the one I originally posted. I don't know why really, I guess I thought it would be simpler and cause less headache. We see how that turned out. Anyway, I will try it tomorrow morning and see how it works out. It looks like just the ticket. I sure do appreciate the help.
... View more
09-10-2017
07:59 PM
|
0
|
2
|
1823
|
POST
|
A link to your blog post was one of the first I came across on my search for answers actually. I bookmarked it for future use, because I am sure it will come in handy...... many more times than once. Thanks for posting that blog, it really does help!
... View more
09-09-2017
02:54 PM
|
1
|
0
|
1823
|
POST
|
Unfortunately I had already tried that. That was actually what I was thinking was wrong. The 1600 x1200 parameters for height and width do not matter. I just did that for the sake of some legibility when zooming on the jpeg. I am trying to work within a set end file size of all exported jpegs in mind. I thought that a higher resolution would help me achieve that. Eventually these images will get stitched into one for an offline map, and I can make the 1600x1200 work for my purpose (maybe), I would just like help understanding why it is not, so I can grow my python "skills" (I say that loosely) and understanding even more.
... View more
09-09-2017
12:44 PM
|
0
|
1
|
1823
|
POST
|
Im still pretty new to Python, pretty much an infant. I put together a script for bulk exporting DDP to .jpg with world file, and it works fine, except for one problem. the resolution only exports at the default, 96 dpi. When I put an interger in the resolution, it doesnt change from 96 dpi.I would like it to be a little higher. Everything I have seen in others scripts, it seems to work fine and it matches the syntax of ExportToJpeg? I have checked over many options from different answers, including making it a constant, different spacing, etc., etc. My question is what am I missing? The script is as follows: ...import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd)[0] for pageNum in range(1, mxd.dataDrivenPages.pageCount + 1): mxd.dataDrivenPages.currentPageID = pageNum arcpy.mapping.ExportToJPEG(mxd, r"C:\Insert\File\Path\Here\{}.jpg".format(pageNum), df, df_export_width=1600, df_export_height=1200, resolution=300, world_file=True) del mxd Thanks for any help!
... View more
09-08-2017
11:07 AM
|
0
|
8
|
3574
|
Title | Kudos | Posted |
---|---|---|
1 | 09-09-2017 02:54 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|