|
POST
|
I think you just need quotes: exp = "str(!Segment_Code!).zfill(6)"
arcpy.CalculateField_management(outCrash, exp, "PYTHON") Sorry to be a pest with this simple task, but still not working. Appears that is is treating the expression as the field.......confused. It now returns the following error: ERROR 000728: Field str(!Segment_Code!).zfill(6) does not exist within table Failed to execute (CalculateField).
... View more
05-02-2012
01:49 PM
|
0
|
0
|
2513
|
|
POST
|
Calculator Expression: str(!Segment_Code!).zfill(6) Thanks Darren. It's now returning a syntax error.......invalid syntax on the exp=.... line. exp = str(!Segment_Code!).zfill(6)
arcpy.CalculateField_management(outCrash, exp, "PYTHON")
... View more
05-02-2012
12:51 PM
|
0
|
0
|
2513
|
|
POST
|
I am trying to calculate a field value so that I pad 0's to the existing values to a max width of 6 chars. Being a python newbie, I'm a little shaky with coding. I've started with the following code and getting nowhere. Any help/direction is appreciated arcpy.CalculateField_management(outCrash, "Segment_Code", !Segment_Code!.ljust(!Segment_Code!,6,0), "PYTHON") Michael Miller
... View more
05-02-2012
11:45 AM
|
0
|
8
|
6522
|
|
POST
|
Here's an example of something close to what I do. Each sheet is it's own table.
import arcpy, os
arcpy.env.workspace = r"C:\GIS\xlsxTest"
outPath = r"C:\GIS\xlsxTest\output"
fileList = arcpy.ListFiles("*.xlsx")
for file in fileList:
arcpy.env.workspace = os.path.join(r"C:\GIS\xlsxTest", file)
tabList = arcpy.ListTables()
# Convert excel to DBF
tabNum = 0
for tab in tabList:
tabNum += 1
arcpy.TableToTable_conversion(tab, outPath, "Table"+tabNum+".dbf") Thanks Matthew, that gets me over the hump. Michael
... View more
05-01-2012
10:53 AM
|
0
|
0
|
1000
|
|
POST
|
What is the proper method of accessing excel files using Python? I'm using the below code and it returns the following error message: ERROR 000732: Input Rows: Dataset 2005.xlsx does not exist or is not supported Failed to execute (TableToTable). import arcpy import os arcpy.env.overwriteOutput = 1 arcpy.env.workspace = r"\\itdhq1apt50\GIS_Data\Test_MM\KellyRawCrash" for file in arcpy.ListFiles("*.xlsx"): outBase, outExt = os.path.splitext(file) outCrash = "Crash" + outBase print file print outCrash arcpy.TableToTable_conversion(file, gdb_loc, outCrash) Michael Miller
... View more
05-01-2012
10:22 AM
|
0
|
2
|
1826
|
|
POST
|
I am simply trying to make point shapefiles from x,y data. It doesn't seem to work, perhaps I am doing it incorrectly. Please check the image below it fully illustrates the issue I am having. [ATTACH=CONFIG]13683[/ATTACH] Thank you You sure you're using your x and y values correctly in the input??
... View more
04-19-2012
01:46 PM
|
0
|
0
|
3145
|
|
POST
|
The popups only identify the top-most layer that is being displayed. So even though your symbology for the boundaries (feature layers) may be hollow or transparent, these features are blocking your popups from identifying the dynamic layers. That's why they don't work when your feature layers are turned on. One way I've worked around this is to use the rsheitlin Identify Widget. You set which layers to identify and it will return all the results it encounters, not just the top-most. You can download it here: http://www.arcgis.com/home/item.html?id=39cf66d58c234279ba728c50461a1a89 Polygons can also cause this issue and prevent your Popups to not function if the feature you're clicking on is inside a polygon.
... View more
04-18-2012
10:32 AM
|
0
|
0
|
591
|
|
POST
|
I'm using the "Make Route Event Layer" inside a model and it is generating empty layers. When I do the same exact thing in ArcMap, it generates a populated layer. Any ideas on why this might be taking place? Michael Miller
... View more
03-29-2012
10:22 AM
|
1
|
0
|
2167
|
|
POST
|
you need do only widget: I have made a soe for this functionality. http://resources.arcgis.com/gallery/file/arcobjects-net-api/details?entryID=46F00F42-1422-2418-7F40-F039E02AA2F7 Cool. I'll look into using this in a widget. Thank you for posting your code. Michael
... View more
03-29-2012
06:40 AM
|
0
|
0
|
1715
|
|
POST
|
Josh, Try using "FeatureServer" instead of "MapServer" in your config file. You will also need to check "Feature Access" under Capabilities tab when you publish the service. You should be able to use those layers to edit in your app. Michael
... View more
03-23-2012
11:27 AM
|
0
|
0
|
678
|
|
POST
|
Afternoon all, Anyone know if there has been any work done on a widget that functions like the dynamic segmentation "Identify Route Location" tool in ArcMap? I have some users who would like to be able to click on a route and identify the measure for that location. I'm rather new to Flex and am just starting to jump into writing code. Any ideas or help would be much appreciated. Michael Miller
... View more
03-08-2012
11:02 AM
|
0
|
20
|
7049
|
|
POST
|
Ok see attached file. I map drives all day long. I know that when i want to send someone inside the company a email i must send them a direct link.. I dont understand what i am missing.. It should look something like this...... [ATTACH=CONFIG]12235[/ATTACH] Michael Miller
... View more
02-24-2012
12:47 PM
|
0
|
0
|
2332
|
|
POST
|
Hi, Is there a way to group feature layers together in the TOC Widget? Thanks, Mark You can group them in your map document (.MXD) before publishing. Michael Miller
... View more
02-23-2012
10:06 AM
|
0
|
0
|
437
|
|
POST
|
We have a bunch of scale dependent highway shield labels we have set up in the Map Document that we would like to display using the map service in the Flex Viewer 2.5. They do not display when the map service instance is added to the Flex Viewer. I've tried converting the labels to annotation, but that does not appear to be working either. Is this possible? Any help or direction is greatly appreciated. Michael Miller
... View more
01-19-2012
12:03 PM
|
0
|
11
|
4158
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-29-2012 10:22 AM | |
| 2 | 09-17-2018 05:38 AM | |
| 1 | 03-23-2016 06:25 AM | |
| 1 | 06-30-2016 09:13 AM | |
| 1 | 11-23-2015 08:40 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|