851 reputation
617
bio website
location Durham, NH
age
visits member for 3 years, 6 months
seen May 5 at 0:01

Jul
2
awarded  Curious
Jan
7
awarded  Yearling
Nov
29
awarded  Popular Question
Nov
21
awarded  Popular Question
Nov
18
comment In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
... that is, of course, the setter, getter, and deleter attributes. Sorry.
Nov
18
comment In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
Exactly what I was after. Very cool! BTW, I was also getting 'can't set attribute' errors with the initializing of instance attributes, because I was using the older Python 2.5 property decorator syntax with fget and fset as inner functions, which doesn't use the newer setattr, getattr, and delattr attributes. I guess I have some catching up to do.
Nov
18
accepted In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
Nov
18
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
Yes, a combination of arcpy and ArcObjects was the final solution. I agree about doing things in .NET, but that is a whole different level of effort, and frankly I am not really up on .NET language and syntax. I think if I were to go with .NET, I would myself do it in C#. I used to do a lot of GIS automation and extension in VB 6, but the syntax has changed so much since then. For now I am pretty much just doing automation scripting, and the Python/comtypes combination is pretty quick and slick for accessing ArcObjects.
Nov
18
asked In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
Nov
13
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
UPDATE: Creating and setting the new spatial reference through arcpy.mapping is certainly a good solution -- very fussy in ArcObjects; however, one of the other things I have to do to each new MXD is change the page settings. Unbelievably, you can't do that with arcpy/arcpy.mapping(!!!). This has been a serious oversight in arcpy for years. I knew about it before but had forgotten. Now I am painfully reminded. Oh well, back to ArcObjects after all.
Nov
13
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
Thanks, again. Now that I have asked the question in my comment above, I see that arcpy.mapping is probably going to be the answer to that one, too. I am embarrassed at my serious lapse in pre-question research ability. Oh well, live and learn. I shall strive to do better in the future. Best regards.
Nov
13
accepted In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
Nov
13
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
Hmmm ... well ... Looks like I may have over-engineered it. Thnak you for the perspective check. I thought I had looked at arcpy.mapping thoroughly, and I rejected it for the ArcObjects route. Now, the question for me is "How do I create a new, custom spatial reference to assign to the DataFrame using your method above?" I will not have an existing feature class from which to copy the spatial reference.
Nov
12
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
@Hornbydd - I have now posted the code that you requested. Pretty simple stuff. I just don't know where is the best place to start in the object model. (Sorry. I was on a different computer and could only login with a different account. user23896 is me.)
Nov
12
asked In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
Nov
12
comment Is there a way to execute FME transformers from a PythonCaller script in an FME workspace?
@alexgleith - I have been able to use some substantial chunks of the original script as is in Python Callers, but still, much dicing of the script has been required to get the same functionality within the strictly feature-centered workflow of FME. That said, there certainly are a lot of very cool transformers!
Nov
12
revised Is there a way to execute FME transformers from a PythonCaller script in an FME workspace?
added 364 characters in body
Nov
6
comment What are the Python tools/modules/add-ins crucial in GIS?
Really? FMEObjects to my knowledge does not have Python bindings for calling transformers. I really wish it did. If you know that it does and know how to access that API, please let us know. It would make my life a whole lot easier at the present time.
Nov
6
comment How to use the transformer KMLRegionSetter ? (Python/FME)
I find the first block of code intriguing. How is it that you are making a call to a reader from Python? How do you know the syntax? Where is this API? SWIG, ctypes, or comtypes?
Nov
5
comment Is there a way to execute FME transformers from a PythonCaller script in an FME workspace?
Thank you, all, for the help. It doesn't look like there is any easy answer. If anyone could give me some insight as to what is going on with the code in the post that I link to above in my ADDITION section, that would be much appreciated.