POST
|
Am I missing it, or is it not there? With the existing API it's great to be able to interrogate several layers on a REST endpoint at once with a particular search geography... Charlie Richman District of Columbia Office of Planning
... View more
08-21-2015
12:54 PM
|
0
|
1
|
3036
|
POST
|
The published 10.3 pre-release docs http://pro.arcgis.com/en/administering/system-requirements/arcobjects-sdk-system-requirements.htm mention every edition of VS 2013 except the Community Edition. I've got no reason to think that this edition would be excluded, but it would be nice to hear from someone who actually knows if it'll be supported when 10.3 ships.
... View more
12-02-2014
08:15 AM
|
0
|
2
|
4421
|
POST
|
Fabulous -- but what's EnumExt()? You don't seem to define m_hookHelper or pFac either. I'd like to be able to start with a path to a layerfile and add the contents (which could include a group layer) via this mechanism... Charlie Richman District of Columbia Office of Planning
... View more
09-21-2012
07:38 AM
|
0
|
0
|
434
|
POST
|
It's easy to control UI behavior when a user seeks to close ArcMap because you can handle the BeforeCloseDocument event. It's harder to see how to do the same when a user seeks to save a document (or use save as.) The OnSave event lets you serialize info into the document as it's saving, but doesn't appear to give you any choice about whether the process of saving the document should continue. Other than replacing the default ESRI save and save as menu items, recreating the dialogs, and then saving the documents via our own code, is there an event we can trap to control this behavior? In our shop as in others, there are good and bad places to store documents, and we'd like to provide some subtle guidance to our users 😉 Charlie Richman District of Columbia Office of Planning
... View more
02-10-2012
07:42 AM
|
0
|
0
|
741
|
POST
|
(Don't you hate answering your own questions?) As I suspected, my code doesn't have access to the app.config file generated by the Visual Studio Add Service Reference tool -- we're seeing ArcMap's, not our own. We can still use the proxy classes generated by that tool, but not the binding information (because it lives in the app.config file.) Our workaround is to create our own binding and client reference in code, e.g. ... using OpToolsAddin.opts; // the web reference added by VS 2010 namespace OpToolsAddin { public class TestWCFService { public static OPTrackingClient ConfigureOPTrackingClientProxy() { // set up binding so we can get a new tracking client // *** this is necessary because ArcMap can't see the binding info in our code's .config file *** WSHttpBinding binding = new WSHttpBinding(); binding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None; EndpointAddress remoteAddress = new EndpointAddress("http://opnas01.op.dcgov.priv/optoolsservices/OPTracking.svc"); OPTrackingClient client = new OPTrackingClient(binding, remoteAddress); return client; } } } Charlie Richman District of Columbia Office of Planning
... View more
02-07-2012
10:26 AM
|
0
|
0
|
1308
|
POST
|
Our test WCF service works just fine from a VS 2010 stand-alone Windows Form app but generates a run-time error whenever we try to instantiate an object via the generated proxy classes in a VS 2010 ArcGIS add-in project extension. In each case I added the WCF service as a new service reference. The projects compile, and the Windows Forms app runs without error. When I try to initialize an object to a new OPTrackingClient() in my add-in extension I get "Could not find default endpoint element that references contract OPTS.IOPTracking" in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element." I checked the relevant bits of the two app.config files and they appear to match: <wsHttpBinding> <binding name="WSHttpBinding_IOPTracking" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /> <security mode="Message"> <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /> <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /> </security> </binding> </wsHttpBinding> </bindings> <client> <endpoint address="http://opnas01.op.dcgov.priv/optoolsservices/OPTracking.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IOPTracking" contract="OPTS.IOPTracking" name="WSHttpBinding_IOPTracking"> <identity> <servicePrincipalName value="host/opnas01.op.dcgov.priv" /> </identity> </endpoint> </client> Is there some other bit of configuration I need to do to allow ArcMap (and my extension) to tap this WCF service successfully? Can ArcMap make use of this config info effectively, or do I need a different approach? Charlie Richman District of Columbia Office of Planning
... View more
02-06-2012
01:37 PM
|
0
|
4
|
5961
|
POST
|
That sounds very promising! Any suggestions for the most effective way to structure that kind of query? Charlie Richman DC Office of Planning
... View more
11-08-2010
04:42 AM
|
0
|
0
|
459
|
POST
|
I'm currently querying 6,000 or so polygons from a service as part of my app startup, adding them to a "local" featurelayer via a featurecollection, and using them effectively for local data editing and exploration. Performance on panning would be better, though, if I could render the unedited polygons on the server and only the edited ones locally. Before I explore that route, though I'd like to understand the limitations on definition query complexity. We might have several hundred edits (out of 6,000). Could I feed a definition query to the server that amounted to "give me everything except these 295 specific features?". (Past experience makes me suspicious of long definition queries.) Thanks Charlie Richman DC Office of Planning
... View more
11-05-2010
02:16 PM
|
0
|
3
|
2164
|
POST
|
Yes, that did it nicely. Far better to include something like this in the event fired by the edittool than to deal with competing mouse_up events: var globalPoint:Point = myMap.localToGlobal(new Point(myMap.mouseX,myMap.mouseY)); var mp:MapPoint = myMap.toMapFromStage(globalPoint.x,globalPoint.y); Thanks, Dasa. Charlie Richman DC Office of Planning
... View more
11-05-2010
06:14 AM
|
0
|
0
|
459
|
POST
|
Then again, when something seems too complicated it usually is 😉 I don't need to trap the mouse_up event as long as I can get the mouse coordinates when the edittool graphics move end event fires. Which units are the map mousex and mousey properties in? To transform them into map units do I use toMap() rather than the toMapFromStage that I would use in a mouse event? Charlie Richman DC Office of Planning
... View more
11-04-2010
02:12 PM
|
0
|
0
|
459
|
POST
|
No, not the election. I'm editing a locally-instantiated featurelayer (populated using a featurecolleciton). I trap the editor graphicsMoveStop event and also set listeners for the Flash MOUSE_UP mouse event on each of the features that are being moved. (I do this because I really don't want them to be moved at all -- I push them back to where they started but run a query on the location where the mouse up event occurred and transfer attributes from the results to the layer I'm editing. The challenge is that the MOUSE_UP events don't always fire when features are dragged. They virtually always do with a single feature selected, but as we get towards having a dozen or two features selected they generally don't. The editor event does fire in each case. Is this a timing issue where if the mouse event doesn't fire before the editor event fires it will never fire? Is there some way I can reliably capture the location where the mouse was released when dragging my features around? I use listeners on the individual graphics instead of on the entire layer because I need to know whether the mouse event is triggered by dragging features to a new location or by clicking elsewhere to select something else. (It isn't enough to know where the event occurs -- I need to know if features were dragged there or if something else was clicked there.)
... View more
11-04-2010
12:15 PM
|
0
|
3
|
874
|
POST
|
Thanks, Dasa. I think that will be a very useful enhancement. Charlie Richman DC Office of Planning
... View more
10-24-2010
11:38 AM
|
0
|
0
|
344
|
POST
|
I'm sure this is obvious... but I don't see it! I have a FeatureLayer that I populate via its FeatureCollection. I trap the selectionComplete event and set tooltips for the selected features. (They're selected by IDs.) Each selection event creates a new selection set (with my tooltips), but the tooltips from the prior selection remain. I've tried trapping the selectionClear event, but it doesn't seem to be called automatically; even when I call it myself the features collection seems to be null, so I can't iterate through it to remove the stale tooltips. I'm sure there's got to be an easy way to do this... Thanks, Charlie Richman DC Office of Planning
... View more
10-22-2010
01:10 PM
|
0
|
2
|
886
|
POST
|
Interesting results with the search by extent. The selection works, but is slow (3 seconds in my case.) I assume that's because it's being handled by the browser. Any tips for optimizing that? Is this largely a function of polygon count? Vertex count? It might be faster for me to query a server-based geometry first and then grab the matching local geography manually. Using code derived from the AttributeInspectorOutsideMap example, the Attribute Inspector window shows me empty space with my locally-instantiated featurelayer instead of the fields that I get with a server-based featurelayer. (With a server-based layer I see all fields in default order automatically.) <esri:AttributeInspector id="attributeInspector" left="6" right="6" top="6" bottom="6" featureLayers="{[blocks]}" formItemsOrder="fieldInspector" showFeature="attributesinspector_showFeatureHandler(event)" deleteButtonVisible="false"> </esri:AttributeInspector> private function attributesinspector_showFeatureHandler(event:AttributeInspectorEvent):void { highlightGraphicsLayer.clear(); var g:Graphic = new Graphic(event.feature.geometry); g.toolTip = event.feature.toolTip; highlightGraphicsLayer.add(g); } In the map: <esri:FeatureLayer id="blocks"> <esri:renderer> ... </esri:renderer> </esri:FeatureLayer> Is there more that I need to specify to get the attributeInspector to work with my local featurelayer? Charlie Richman DC Office of Planning
... View more
10-14-2010
02:42 PM
|
0
|
0
|
269
|
POST
|
Sorry -- that's what I meant to type. Thanks so very much for all of your help! Charlie Richman DC Office of Planning
... View more
10-14-2010
01:52 PM
|
0
|
0
|
269
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|