|
POST
|
Sachin, That seems to be the issue -- I didn't choose a transformation when adding the feature class to ArcMap -- that will teach me to click through warning dialogs. Does anyone have any guidance on which transformation is the correct one? ArcMap indicates that it ranks the available ones in order of appropriateness -- which makes me skeptical, unless I could find some information on how it performs this ranking.
... View more
02-27-2015
08:01 AM
|
0
|
6
|
6037
|
|
POST
|
Thanks, Jake. That looks like what I need. Any information on when the 10.3 release of Attribute Assistant will be available? Thanks, Jon.
... View more
02-26-2015
01:17 PM
|
0
|
1
|
1483
|
|
POST
|
I have a point feature class in a geodatabase that uses WGS84 as its SRS. A colleage of mine created points in this feature class using an external database containing lat and long values. However, the lat and long values in the external database were using NAD83 (my fault -- I knew they were, I just forgot). I thought it wouldn't be a problem -- I just created a copy of the geodatabase and changed the coordinate system used by the feature class to NAD83. Should be good, right? I added this feature class into ArcMap. I saw that the points in the copied feature class (now using NAD83) exactly line up with the original feature class (using WGS84). That doesn't seem right. If two points, having the same lat / long values, but referenced in different coordinate systems are overlaid on the same map, one of them should be projected on the fly to the coordinate system of the data frame, no? Now, here's the weird part -- if I project the original point feature class (using WGS84) to NAD83, and add it to the map, then the points don't line up. See, this isn't what i expected, either. I expected that they would be projected to the other coordinate system (i.e., their lat / long values would be different by virtue of being projected, but they would be aligned with the original point because they were simply projected to the new coordinate system (then projected on the fly back to the original coordinate system). Can anyone explain the behaviour that I'm seeing? And, how do I properly ensure that the NAD83 lat and long values collected by my colleague are projected to WGS84 in my target geodatabase properly? Thanks, Jon.
... View more
02-26-2015
01:16 PM
|
0
|
11
|
12315
|
|
POST
|
Hi, I'm looking for approaches to automatically update the value in a field using values from other fields within an edit session. In one table, for example, I have three fields: [AD_HP], [TXT_DESIG], and [RWY_ID]. When a row in this table is edited, RWY_ID should have the value [AD_HP] & ":" & [TXT_DESIG]. Using the Field Calculator is my fallback, as I'd prefer this to happen automatically and not have to rely on the user to remember to do this. I've also looked at using database triggers, but this doesn't work well in a versioned geodatabase scenario. I don't see anything in Production Mapping that might help with this. Does anyone have other suggestions that might help? Thanks, Jon.
... View more
02-24-2015
07:02 AM
|
0
|
3
|
5567
|
|
POST
|
Hi Mike, Can Esri provide any update on when this functionality might be available? Thanks, Jon.
... View more
12-16-2014
07:13 AM
|
0
|
2
|
1411
|
|
POST
|
I've created an ArcMap Add-in that responds to the AfterDraw event from the active view. When shutting down ArcMap, I was receiving an InvalidComObjectException from ESRI.ArcGIS.Carto.IActiveViewEvents_EventProvider.Finalize(). My guess was that, while I was wiring events to delegates in my code, I wasn't unwiring them prior to shutdown. So, I wrote the following code that seems to work correctly (at least, no more exceptions are thrown on shutdown): public class MyCommand : ESRI.ArcGIS.Desktop.AddIns.Button
{
public MyCommand()
{
ArcMap.Events.ActiveViewChanged += Events_ActiveViewChanged;
ArcMap.Events.BeforeCloseDocument += Events_BeforeCloseDocument;
}
private void Events_ActiveViewChanged()
{
// wire events on the current active view
IActiveViewEvents_Event activeViewEvents = (IActiveViewEvents_Event)ArcMap.Document.FocusMap;
// unwire the current handler
activeViewEvents.AfterDraw -= new IActiveViewEvents_AfterDrawEventHandler(OnActiveViewEventsAfterDraw)
// wire the handler to the current active view's event
activeViewEvents.AfterDraw += new IActiveViewEvents_AfterDrawEventHandler(OnActiveViewEventsAfterDraw)
}
private bool Events_BeforeCloseDocument
{
// unwire event handlers from the document being closed
IActiveViewEvents_Event activeViewEvents = (IActiveViewEvents_Event)ArcMap.Document.FocusMap;
activeViewEvents.AfterDraw -= new IActiveViewEvents_AfterDrawEventHandler(OnActiveViewEventsAfterDraw)
return false;
}
private void OnActiveViewEventsAfterDraw(IDisplay display, esriViewDrawPhase drawPhase)
{
// code here in response to the AfterDraw event
}
private override void Dispose(bool disposing)
{
// unwire add-in events
ArcMap.Events.ActiveViewChanged -= Events_ActiveViewChanged;
ArcMap.Events.BeforeCloseDocument -= Events_BeforeCloseDocument;
base.Dispose(disposing);
}
} This seems to work, but it doesn't seem very robust, and I'm not sure that it's event correct. Does anyone have any experience in doing this who could offer some advice? Thanks, Jon.
... View more
10-01-2014
06:05 AM
|
0
|
2
|
4189
|
|
POST
|
Agreed. This lead me to investigate whether the map document itself was a problem, since it didn't seem to happen with other map documents. I ran the map document through the MXD Doctor, and, problem solved.
... View more
10-01-2014
05:38 AM
|
0
|
0
|
1169
|
|
POST
|
Sol Wuensch, I commented out the code so that it does literally nothing: using ESRI.ArcGIS.Carto; using ESRI.ArcGIS.Display; namespace SpatialBridge.Addresses.ArcMapAddIn { public sealed class FishboneCommand : ESRI.ArcGIS.Desktop.AddIns.Button { public FishboneCommand() { } protected override void OnClick() { } protected override void OnUpdate() { } private void Events_ActiveViewChanged() { } private void OnActiveViewEventsAfterDraw(IDisplay display, esriViewDrawPhase drawPhase) { } } } And the behaviour persists. Also, code analysis didn't find anything. Thanks, Jon.
... View more
09-30-2014
02:40 PM
|
0
|
0
|
1169
|
|
POST
|
Hi Richard, Once you've generated the intersections, what do you use them for? Thanks, Jon.
... View more
09-26-2014
06:56 AM
|
0
|
6
|
4462
|
|
POST
|
Great! Thanks, Richard. Link corrected in original reply. Jon.
... View more
09-02-2014
11:44 AM
|
0
|
1
|
785
|
|
POST
|
Hi Richard, Could you please try this link instead? Thanks, Jon.
... View more
09-02-2014
11:40 AM
|
0
|
3
|
785
|
|
POST
|
Doug, Jacqueline, Sebastian, et. al.: I've just posted an alpha version of a fishbone tool on ArcGIS Online. It's designed to work with the Local Government Information Model, and requires that your map document contains the SIte Address Points feature class and that the DualRange address locator is the current address locator. Please try it out and provide me with any feedback you have. Thanks, Jon.
... View more
09-02-2014
07:34 AM
|
0
|
3
|
1627
|
|
POST
|
I'm developing an ArcMap add-in using .NET and Visual Studio 2012. I've set the debugging option for the project to start ArcMap. Ordinarily, when I shut down ArcMap, I'm returned to Visual Studio and debugging stops. EXCEPT when I open this one particular document in ArcMap. Then, I'm returned to Visual Studio, but the debugging process doesn't stop. The ArcMap process is still running and consuming about 50% CPU (on a 4 core machine). If I run ArcMap by itself with the compiled add-in, ArcMap shuts down normally. It almost seems like I'm hanging on to an unmanaged resource somewhere, but I created another map document that has content that causes the same objects to be created, and ArcMap shuts down normally and returns me to Visual Studio when I open this document. I've also found that, when this occurs, the Dispose() method is not called on my add-in button. Any idea why this is happening?
... View more
08-28-2014
01:25 PM
|
0
|
4
|
2780
|
|
POST
|
Hi Charline, Were you able to resolve this issue? Thanks, Jon.
... View more
07-23-2014
08:40 AM
|
0
|
0
|
410
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-19-2013 08:18 AM | |
| 1 | 08-13-2015 06:54 AM | |
| 3 | 01-17-2017 09:02 AM | |
| 1 | 03-26-2019 04:52 AM | |
| 1 | 04-08-2015 12:48 PM |
| Online Status |
Offline
|
| Date Last Visited |
12-10-2020
03:10 PM
|