POST
|
Posted in the raster and imagery forum, but my question has a lot to do with Python. Any help appreciated! http://forums.arcgis.com/threads/100454-Exporting-GeoTIFF-aerials-from-Bing-Maps-layer
... View more
01-13-2014
05:37 AM
|
0
|
0
|
358
|
POST
|
I work for a civil engineering firm that primarily does site design and land development. My company only has bits and pieces of aerial photography for the 3 most popular counties we typically work in. Therefore, I want to extract imagery from the Bing Maps layer using python so we have a complete set. The kicker is that the exports must be TIFFs and must have the world file so when it's brought into AutoCAD it will project to the right place. Has anyone tried to do this before? I'm using Python and having relative success, but its not perfect. I use a combination of the following functions. arcpy.mapping.MapDocument arcpy.mapping.ListDataFrames dataframe.scale extent.XMin extent.YMin panToExtent arcpy.mapping.ExportToTIFF I have two big issues: 1. I do not know how to set my dataframe to an exact scale that I want. I understand that I can set dataframe.scale to 24000, but when I check out the exported TIF it is completely different. I feel like there is some conversion going on in the dataframe class when I set this particular scale parameter. 2. I do not know how to set the exact starting position of the dataframe. For instance, it would be great to just throw my program an x,y location and scale and then it begins to build tiles around itself to the desired size. Thoughts?!
... View more
01-13-2014
05:22 AM
|
2
|
1
|
3869
|
POST
|
Dictionaries are definitely the way to go. Little confusing at first, but I promise you'll be better off after its all said and done.
... View more
02-19-2013
04:54 AM
|
0
|
0
|
714
|
POST
|
Update: Had sort of an epiphany the other day and noticed that if you changed the prj, geometry, flow, or plan files to a text file then they are perfectly legible to read in as input cards. Never really thought it about like this, but I guess that's how the HEC-RAS program works. Probably just reads in these input cards, and searches for keywords to store the appropriate input values in the right variables. Reading input lines from a text file and storing info in different variables when keywords are flagged isn't difficult. But the shear amount of different keywords and variables is crazy I feel. With this is in mind, I emailed the ACOE to see if I could get their source code for reading the input files only. No response yet. It also crossed my mind that maybe I could file a request under the Freedom of Information Act. I don't think I'd be able to get the "brains" of the HEC-RAS program, but I feel receiving code that reads the input files and stores it into its separate variables would be game.
... View more
02-19-2013
04:43 AM
|
0
|
0
|
2280
|
POST
|
I work with hundreds of HEC-RAS models, and typically I would open each one up to copy/paste a user-defined output table to a spreadsheet. Then use some Visual Basic to manipulate to a way I want it - so time consuming! Well, I've been making small programs with Python for the last few months and I want to experiment with HEC-RAS and see what I can figure out. So my question is how do I go about extracting cross section data from a HEC-RAS model? Is there a HEC-RAS python module I don't know about? Do I have to 'hack' into the HEC-RAS program or .SDF export file? I've always thought how incredible it would be to automate an export process, and I feel like there's got to be a way. Any help or suggestions to lead me the right way is greatly appreciated.
... View more
02-08-2013
05:16 AM
|
0
|
2
|
7480
|
POST
|
I too recently upgraded to 10.0 and spent a couple hours trying to figure out why my toolbar customizations wouldn't stay put. I can't remember exactly what I did, but I know it had to do with unchecking a certain option in the Customize window. Check out Customize -> Customize Mode... -> Options tab. There you will see an option 'Create new toolbars and menus in the document' and 'Save all customizations to the document'. I had to play around with this and the toolbar positioning before I finally got it looking right. Not sure if this answers your question, but I hope it steers you in the right direction.
... View more
11-28-2012
04:08 AM
|
0
|
0
|
210
|
Title | Kudos | Posted |
---|---|---|
2 | 01-13-2014 05:22 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|