Reputation
931
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
11 22
Impact
~59k people reached

  • 0 posts edited
  • 0 helpful flags
  • 48 votes cast
Jan
11
awarded  Popular Question
Oct
26
awarded  Popular Question
Sep
22
awarded  Notable Question
Sep
18
awarded  Popular Question
Jul
15
awarded  Popular Question
Apr
16
awarded  Notable Question
Jan
7
awarded  Yearling
Nov
25
awarded  Popular Question
Sep
27
awarded  Notable Question
Sep
21
awarded  Notable Question
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.