|
POST
|
Hi All, I'm currently attempting to develop an addin that creates a KML from a layer within arcmap, and then opens that KML. All seems to be going well except that every time the tool runs it crashes arcmap. I am aware that this is because i am using the "os.startfile()" command. What possible workaround can i use to get this file to open at the end of my script. Thanks, Ben *Not a python expert by any means
... View more
06-05-2015
07:38 AM
|
1
|
5
|
5773
|
|
POST
|
Well that is certainly unfortunate. Looks like i'll have to code in to turn off those two fields before exporting.
... View more
03-09-2015
08:27 AM
|
0
|
0
|
771
|
|
POST
|
Hello All, I have written a script that takes an input,runs a couple of geoprocesses, exports to an excel sheet, and then runs a couple of manipulations on the excel sheet. I have tried to make it so that by the time you are at the stage where your excel spreadsheet has been created the spreadsheet fields will always look the same no matter how many fields in the input. This allows me to easily manipulate the excel spreadsheet. The one problem i am running into involves my dissolve step. I have it set up so that Dissolve is run on two fields. When my input is a shapefile and dissolve is run the output is a shapefile with those 2 fields. However, if my input is a gdb layer my output will contain those 2 fields with the addition of the Shape_Area / Shape_Length Fields. Does anyone know why Shape_Area / Shape_Length are automatically added when using a gdb but not when using a shapefile? Thanks, Ben
... View more
03-09-2015
07:56 AM
|
0
|
2
|
3323
|
|
POST
|
I have created a tool in model builder that has 2 inputs, a feature and a soils layer. The tool Buffers the input feature, clips the soils layer to the buffered feature, and then erases the area of the input feature, leaving only the buffered area. From here it further manipulates the buffered area. I want to know if its possible within model builder to make the erase process within my tool optional. Ideally there would be a checkbox saying "erase input feature", if the button was checked it would run as stated above, but if it wasnt checked it would completely ignore the erase process and continue with the rest of the model. I know this can be done using if-then logic but i would like to know if there are any tools within modelbuilder that can help me with what i want. Thanks, Ben
... View more
01-20-2015
06:00 AM
|
0
|
2
|
6841
|
|
POST
|
i have created a python tool to use within arcmap that outputs an excel file. I would like to make an addition to the tool so that somewhere in the output excel file is a line that states "the sum of row x is __". The current front runner idea is to use the xlutils module to do this. However, this tool will be shared with others who do not have this module. I know that you can put the module in the addin folder to that it is installed when the script runs but how to do this is a bit cloudy to me. If anyone could shed some light on this subject or has any other ideas as to accomplishing my goal without the use of the xlutils modele it would be greatly appreciated.
... View more
01-12-2015
10:30 AM
|
0
|
1
|
4410
|
|
POST
|
I am having a bit of a problem with what seems like should be a simple field calculator expression. I have a table with about 50 rows and a column with acres for each row. I've created a new column called Percent_Acres (Double) and im looking to calculate the percent each feature makes up of the total acres. I want an expression equal to this Percent_Acres = Acres / Total Acres. Normally this would be easy to do and i would just look up the field statistics for the sum. However this calculation is part of a model that will be automated so i need an expression that will automatically calculate the columns sum while in the field calculator. It appears that i am having a problem with iterating through each row to add up to the total. I have tried numerous expressions and each time i get the same result telling me that "typeerror float object is not iterable" " Any advise on this topic would be greatly appreciated Thanks, Ben
... View more
01-07-2015
10:22 AM
|
3
|
10
|
18908
|
|
POST
|
I'm trying to populate a field with an already defined area but only if the Updat_HYGR variable is = to 'A' i have a column with letters A-D (Updat_HYGR), a Column with areas in sqmi (Sq_Miles) and a new column A_SqMi that i only want populated with the area if the Updat_HYGRP = 'A' i just started using python but my statement looks like this def Reclass(A_SqMi): if (Updat_HYGR == 'A'): return Sq_Miles Reclass(!A_SqMi!) Any help would be appreciated
... View more
06-18-2014
04:39 AM
|
0
|
2
|
827
|
|
POST
|
From what it sounds like, you want a profile graph. Go to customize -> Toolbars -> and turn on 3D analyst Make sure the DEM or whatever you are pulling elevation from is set as your target layer. Click the interpolate line button, draw your line, the click the profile graph button. Presto! Hope this is what you needed
... View more
06-13-2014
11:48 AM
|
0
|
0
|
338
|
|
POST
|
I have two LAS datasets, one for all point one just with ground. I am using these two dataset in order to create a tree canopy height raster which in turn will allow me to identify areas where communication towers and Water towers exist. (since they stick out above the canopy and exhibit high values.) I am converting the LAS to multipoint (and then point to raster) in order to create a raster grid containing only 1st return points with the maximum point within each cell becoming the cell value. I have attempted to use LAS dataset to raster but i cant seem to figure out the combination of right settings, every time i run this tool it displays a raster similar to this, no clue why. Thanks for the help. I'd also like to state that i was able to complete this process with other smaller LAS datasets in the past [ATTACH=CONFIG]34334[/ATTACH]
... View more
06-04-2014
06:39 AM
|
0
|
0
|
907
|
|
POST
|
I am having a problem when using LAS to multipoint. When looking at my LAS dataset, points occupy all of the cells which outline the 50 .las files in my LAS dataset. However, when i convert to multipoint, points only occupy the first two columns (about 15 of 50 cells) of my dataset. MY first assumption is that there may be a limit on the number of points when covnerting to multipoint, is this so? [ATTACH=CONFIG]34311[/ATTACH]
... View more
06-03-2014
11:18 AM
|
0
|
2
|
3729
|
|
POST
|
Fill is an iterative process meaning once the program has filled all of the sinks it will then check for new sinks that have been created by the process of filling the old sinks and continue to fill in this fashion until all sinks are filled. When you identify sinks it only identifies the first round of sinks which are often smaller sinks subset within larger sinks. It is for this reason that when you run identify sinks it only shows sinks that are a few pixels in size. If you really want to see the larger sinks try running fill with a small z value to rid yourself of the smaller sinks and then run identify sinks on the new grid.
... View more
05-27-2014
12:04 PM
|
0
|
0
|
567
|
|
POST
|
I have a Lidar (.las) dataset and would like to calculate or find the average point spacing of the file. The metadata does have a value but the value is based off of the entire dataset and i am just using a clipped portion which believe to have a higher density of points than the dataset on average. What is the best way to go about doing this?
... View more
05-27-2014
10:52 AM
|
0
|
0
|
1971
|
|
POST
|
I have been doing some of the python training from ESRI and i am running into a problem with one of the scripts they are having me use. The script is directly from the training page. From my understanding the reason that this won't work is that mapDoc isnt defined. Is it the training that has an error in it? The script updates layer files for a map. >>> path = r"C:\Users\mittler_b\Desktop\Misc\MapScripting10_0\Maps\\" ... arcpy.env.workspace = path ... sourceLyr = arcpy.mapping.Layer(r"C:\Users\mittler_b\Desktop\Misc\MapScripting10_0\NewParks.lyr") ... for mapdoc in arcpy.ListFiles("*.mxd"): ... print mapDoc ... mxd = arcpy.mapping.MapDocument(path + mapDoc) ... for df in arcpy.mapping.ListDataFrame(mxd): ... updateLyr = arcpy.mapping.ListLayers(mxd, "Parks", df)[0] ... arcpy.mapping.UpdateLayer(df, updateLyr, sourceLyr) ... mxd.save()
... View more
04-23-2014
06:33 AM
|
0
|
1
|
1021
|
|
POST
|
I found that for my purpose HEC-GeoRAS was superior in every way. it allows you to draw a polyline shapefile (accompanied with a stream line) and then simply click on an area and it will display a cross-section profile.
... View more
04-16-2014
04:51 PM
|
0
|
0
|
856
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-15-2016 06:32 AM | |
| 2 | 09-04-2025 06:07 AM | |
| 1 | 04-09-2020 10:09 AM | |
| 1 | 02-27-2025 11:29 AM | |
| 2 | 10-16-2024 10:42 AM |
| Online Status |
Offline
|
| Date Last Visited |
Saturday
|