|
POST
|
Note there are no more system-based .prj file in v10.1 anymore (!!!!) But you can manufacture one via the SR's exportToString() method and then write it to a file. Had not noticed that. There are so many bugs introduced to the new python, I only utilize 10.1 version for capabilities that are not in 10.0 version (at least for the commands that work.. (Like updatecursor is now reserved for Enterprise SDE users only.....)). I see you can copy the v10.0 prj files over and use them if you like. Was easier for me than to exportToString() method as I didn't need code 😮 R_
... View more
06-05-2013
03:54 PM
|
0
|
0
|
3677
|
|
POST
|
One option would be to open the *.prj file (just a text file) and extract that from there (PARAMETER["Latitude_Of_Origin",45.33333333333334]PARAMETER["Latitude_Of_Origin",45.33333333333334]) for my WKID. R_ I see this is more or less the same that Shaun mentioned above except he gets it from the sr object, not the file (not sure if one is faster), but the match code is pretty much the same.
... View more
06-05-2013
03:34 PM
|
0
|
0
|
3677
|
|
POST
|
I have not tried this with python, however, there is/was a bug in the Set Data Source(s) in ArcGIS. Don't know if it applies to the arcpy tool as well, but, if your data is UNC pathed, the Set Data Source does not work correctly. Not anywhere I can test to see if they have fixed this yet, but thought I'd throw it out there in case you are using UNC paths, R_
... View more
06-05-2013
03:31 PM
|
0
|
0
|
2336
|
|
POST
|
Not sure what the format of you table is, but is sounds like it is actually a FGDB table. According to the help docs here: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//005s0000002n000000 The input must be a feature layer a table view or a raster layer that has an attribute table; it cannot be a feature class or table. Perhaps you just need to makeTableView first, then join to that? R_
... View more
06-05-2013
03:22 PM
|
0
|
0
|
2221
|
|
POST
|
1.) How does VBA still work? I know 10.0 still supports it but you need the VBA extension. (A pain to get the authorization code)... 10.1 and beyond no longer supports VBA...supposedly. Dan I just contacted the customer care center and they authorized the VBA, then downloaded the authorizations from the customer care portal. Pretty painless actually, R_
... View more
06-05-2013
01:53 PM
|
0
|
0
|
436
|
|
POST
|
If you just want to display based on more than one attribute, does the Categories, Unique values, many fields option not work? Also, you can create a style file and have it automatically assign symbology based on the categories in the styles file. See here for the options: http://resources.arcgis.com/en/help/main/10.1/index.html#/Drawing_a_layer_using_categories/00s50000003m000000/ R_
... View more
06-05-2013
01:25 PM
|
0
|
0
|
3665
|
|
POST
|
If you table is just a standard row/column table and the table2table isn't working, maybe something like this?
import arcpy
arcpy.CreateTable_management(temp_gdb, "temp_table", "D:\\temp.gdb\\template_table", "") ## use template table with column headings to create new empty table
with da.InsertCursor(temp_table,['FIELD1', FIELD2']) as insert: ## if the column names match the table, should just insert right in.
for row in ODCM_Table:
insert.insertRow(row)
del row
del insert
Also, sometimes when table2table doesn't work, you can use copyRows to get the same thing. R_
... View more
06-05-2013
01:08 PM
|
0
|
0
|
3216
|
|
POST
|
My understanding is that at 10.1 you can only read and run VBA code, but you cannot edit or create new VBA code. At 10.2 it should be gone if ESRI follows through with the game plan they laid out over 3 years ago. VBA is deprecated because Microsoft abandoned it and won't sell any more licenses. ESRI is using up licenses they purchased years ago (probably when they partnered with Microsoft for a time). This is not true. I am able to create and run VBA code in my 10.1 project. The big difference is that you can no longer store VBA in the Normal.mxt and must be stored in the project itself. (which really sucks as I have some VBA that I like to have available by default.) R_
... View more
06-05-2013
01:00 PM
|
0
|
0
|
2808
|
|
POST
|
Doesn't actualy "disable" the link, the thread shows how to not display that field in the popup window if the field is null so there will be no link to click on. However, the this is the same place you would modify code if you wanted blank links to still show, but say something else. Something similar to:
if !(formattedAttributes[fieldInfo.fieldName]){
formattedAttributes[fieldInfo.fieldName] = " No Link Available"
}
R_
... View more
06-05-2013
10:29 AM
|
0
|
0
|
1037
|
|
POST
|
If using source code, that is fairly simple in the popuprendererskin. see here: http://forums.arcgis.com/threads/67874-Popup-3.0-hide-field-if-value-null?highlight=popup+hide+null R_
... View more
06-05-2013
09:42 AM
|
0
|
0
|
1037
|
|
POST
|
I don't do spatial searches, so can't really test, but I see in version 3.0.14, he added the "add to current selection" option. Does the spatial search with buffer not support this, or can they be "added" to the initial selection? R_
... View more
06-05-2013
08:24 AM
|
0
|
0
|
572
|
|
POST
|
In the ArcGIS 10.1 version (it is different for previous versions, but not sure which version you are running), I have had issues trying to associate it with python.exe. Might be because I have both 32 and 64 bit versions installed. However, this is what I had to do to get a python file associated with the "correct" python version to get it to run (associate with python.exe didn't work for me). So, to make it work, this is what I did: Go into Windows Explorer and right-click on a python file and select properties. Click General tab, and you will see the Type of file: Py File (.py) and the Opens with: *.exe Click the Change button, then click Browse and navigate to C:\Python27\ArcGIS10.1\Lib\idlelib\idle.bat and select that file. (in version 10.0, I have to navigate to C:\Python26\pythonw.exe to get it to work *note, not python.exe, but pythonw.exe) Select OK to everything, and in the end, it should look like this v10.1: [ATTACH=CONFIG]25016[/ATTACH] or this v10.0: [ATTACH=CONFIG]25018[/ATTACH] This will associate the .py files with the built in python batch file that opens with the correct version of python. When I set it up this way, if I double click a .py file, or select it from a .bat file or scheduled task, it will run it directly with the 32 bit version of python. R_
... View more
06-05-2013
08:08 AM
|
0
|
0
|
2588
|
|
POST
|
In that case, it looks like Robert has put you on the right track. R_
... View more
06-05-2013
07:50 AM
|
0
|
0
|
1836
|
|
POST
|
the hurricane map looks like it is consuming a feed with the track data so the line is pre-rendered. Are you looking for a way to make a service that updates itself when the points of the line change (like from an event theme) or actually having someone enter two coordinates in the flexviewer, and having it draw the line? R_
... View more
06-04-2013
05:01 PM
|
0
|
0
|
1836
|
|
POST
|
Looking good. If you build a rendering, then hide it, then build it again, you will get the TOC null values error. If you pan/zoom some before re-rendering, the error does not pop up. After this, in your Layers button, the spinner never stops "Loading Layers". Other than that, nice job. I not only like the renderer, but the layout in general. R_
... View more
06-04-2013
04:54 PM
|
0
|
0
|
2099
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2026 04:00 PM | |
| 1 | 09-14-2022 07:53 AM | |
| 1 | 09-14-2022 08:23 AM | |
| 1 | 05-21-2026 08:53 AM | |
| 1 | 05-14-2026 04:28 PM |
| Online Status |
Online
|
| Date Last Visited |
Wednesday
|