|
POST
|
No new large syntax changes this time around, just new functions.
... View more
06-04-2012
12:14 PM
|
0
|
0
|
452
|
|
POST
|
Nice! Glad you got something working. 10.1 server will be 64 bit out of the box.
... View more
05-24-2012
12:05 PM
|
0
|
0
|
2886
|
|
POST
|
If you're running out of memory, you're sort of out of luck because internally integers are already stored as space-efficiently as possible. You might want to consider some other key-value store, such as anydbm or even setting up a Redis server and talking to that from python.
... View more
05-23-2012
10:59 AM
|
0
|
0
|
2886
|
|
POST
|
Use the print statement, not the AddMessage functuion, for writing directly to the Python window. AddMessage is for running within geoprocessing tools, not for pushing text to the window of your Python interpreter.
... View more
05-16-2012
02:24 PM
|
0
|
0
|
2542
|
|
POST
|
I presume this is in reference to the capitalization scheme of the arcpy APIs. In this regard, no. It would break all existing scripts. The scheme, while not PEP-8 compliant, acts as a bridge between the naming and capitalization scheme of older scripting APIs such as the old Dispatch object. The rules are as follows: All top-level functions and classes are CapitalizedLikeThis All class methods and properties are capitalizedLikeThis Constants are PRESENTED_AS_ALL_CAPS_STRINGS As a long-time Python developer I appreciate the desire to follow PEP 8, but as the ArcGIS system is quite a bit larger and encompassing a lot more than just a single Python API, there are motivating factors that make more sense with a bit of compromise with regard to the rest of the stack. It has its own style guide that may not match 1:1 with PEP 8, but it does make sense in ArcGIS and arcpy is internally consistent in its naming.
... View more
05-13-2012
01:58 AM
|
0
|
0
|
646
|
|
POST
|
While Ruby is nice in a lot of ways, there is absolutely no plan of making Ruby an equal with Python in the ArcGIS stack. It would occupy the exact same space in the ArcGIS system, meaning there are two competing solutions to the exact same problem. We've put quite a bit of effort into improving the Python APIs over the last few versions to make them feel more native, and not just the old Dispatch way of handling things. To do so on Ruby as well would make scripting downright scizophrenic: making a clean Ruby API is a totally different set of motivating factors when compared to a Python API, so not only would arcpy and its Ruby equivalent be independent implementations and designs of one another, but knowing one would in no way imply that you could translate it to the other. And most importantly, Ruby lacks the interoperability and scientific computing backing that Python does: for instance, NumPy and the related buffer protocol for exchanging binary data do not have direct Ruby equivalents.
... View more
05-13-2012
01:49 AM
|
0
|
0
|
1085
|
|
POST
|
No, it is significantly beyond the scope of GP message logging. The framework doesn't assume a terminal display as its target for messages, they can live in log files on a window or linux server, lines in a text file, elements in the results window in Desktop, etc. Formatted text is more the realm of an output parameter. Consider returning an HTML or RTF document report if that's your goal.
... View more
05-10-2012
12:09 PM
|
0
|
0
|
1667
|
|
POST
|
The only formatting is a product of the type of message it is -- AddError and AddWarning give red and orange text in the window, but this is not in any way a formatting engine -- the colors vary to flag what TYPE of message they are.
... View more
05-10-2012
11:12 AM
|
0
|
0
|
1667
|
|
POST
|
Not in 10.0. In 10.1, you can use GetSelectedTOCLayerOrDataFrame.
... View more
05-10-2012
07:18 AM
|
0
|
0
|
1309
|
|
POST
|
You can use arcpy.GetParameterAsText(0).replace('\\n', '\r\n') to get the proper line breaks.
... View more
04-26-2012
01:15 AM
|
0
|
0
|
498
|
|
POST
|
Yeah, you can't use BufferType as that's the class and not the instance of the class that's used, you have to use the value of the combo box's ID as a variable name. So if its ID is defined as MyNewAddin_addin.somecombobox in the wizard, you'll use somecombobox.value .
... View more
04-24-2012
01:54 PM
|
0
|
0
|
961
|
|
POST
|
If you run the tool out of process, you can use editbin to enable /LARGEADDRESSAWARE on python.exe so that a script running on the 32 bit python.exe will still get some memory space expansion benefit. Server on 10.1 is 64 bit, along with its own 64 bit Python install, so that's also an option across the board on Windows and Linux. There may be other means for running GP tools from desktop in a full 64 bit execution environment not too much later down the road, though I suggest going the server route for the time being.
... View more
04-24-2012
12:05 PM
|
0
|
0
|
1225
|
|
POST
|
You're not missing anything, that's what you get in Linux. The Python entry point to the system is a tweaked Python interpreter using libwine, not the system's /usr/bin/python.
... View more
04-24-2012
11:01 AM
|
0
|
0
|
1225
|
|
POST
|
Could you post your script? How to get the value of the combobox depends on the context in which you're fetching it.
... View more
04-24-2012
08:58 AM
|
0
|
0
|
961
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-26-2012 02:46 AM | |
| 2 | 01-06-2011 08:22 AM | |
| 1 | 03-25-2014 12:18 PM | |
| 1 | 08-12-2014 09:36 AM | |
| 1 | 03-31-2010 08:56 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|