POST
|
I was messing around with the arcgis.features.analysis.join_features function that Jayanta mentioned, but whenever I used it, it would not figure out which polygons the point data was in. It did join all the fields, but that's not what I was looking for. I may have been going down the wrong path. This will end up being a once-a-day automated process, so I would prefer to do it in Python. What I ended up doing was use the arcgis.geometry.Geometry.contains function to determine if the point was in the polygon. My data set will always be small, so it's not a performance issue to loop through my 7 polygons and 4 or 5 points to figure this out. I appreciate the suggestions!
... View more
01-18-2019
04:37 PM
|
0
|
1
|
3770
|
POST
|
I've been looking around and can't seem to find a good example for this, most likely because I'm not looking in the right places. I have a FeatureSet with Longitude and Latitude coordinates (and other data not related to location) that I'd like to compare to a FeatureLayer of polygons (districts in our service territory) to see which features from the FeatureSet fall within which polygon in the FeatureLayer. Then I'd ultimately like to be able to add the district number or name to the FeatureSet data. This is all being done with ArcGIS Online, but I'm not against creating local temporary files to store things in if necessary. Just need a bit of direction. Thanks, Kenn
... View more
01-09-2019
04:52 PM
|
0
|
4
|
5233
|
POST
|
I'm sorry it took so long to respond, but that didn't help. I've decided to try a different tack and will be trying to use the FindFeatures CoClass. Thanks for the help.
... View more
03-11-2013
07:21 AM
|
0
|
0
|
383
|
POST
|
[Edit]: I am making the changes you suggested, but we only have one mapping person and I will need to wait until he is available to test. You are correct; I'm not doing any threading with this add-in (that's not a bad idea, but I'll have to leave it for a later date). What we're trying to do is create a search function that will search multiple layers and fields in those layers for user-entered text. I'm not as familiar with ArcObjects as I'd like to be (so I'm likely not doing this in the easiest of ways). I was using the ARLayer.QueryARFeatures method to search for text in the layer fields. I was doing it this way because I found some similar code on the forums and adapted it for our immediate needs. If there's an easier or better way to do this, please let me know. Thanks!
... View more
02-27-2013
11:14 AM
|
0
|
0
|
383
|
POST
|
I'm writing an add-in for ArcMap 10.0 using VB.Net and I'm running into an Invalid Cast Exception. The error message is: System.InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to interface type 'ESRI.ArcGIS.PublisherControls.ARLayer'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{33DF9650-35B7-42F8-A7C9-9F8A1B53AA80}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). The line that I believe is generating the error is: Dim SearchLayer as ESRI.ArcGIS.PublisherControls.ARLayer = My.ArcMap.Document.FocusMap.Layer(LayerNum) I'm fairly certain that LayerNum is accurate and this code works in a stand-alone application that performs the same function, so I'm not sure what I'm doing incorrectly. The next thing I was going to try was something like:
Dim SearchLayer As ESRI.ArcGIS.PublisherControls.ARLayer
SearchLayer = CType(My.ArcMap.Document.FocusMap.Layer(LayerNum), ESRI.ArcGIS.PublisherControls.ARLayer)
But I wanted to see if I could get some opinions and ideas before I tried it. Thanks!
... View more
02-27-2013
08:03 AM
|
0
|
3
|
907
|
POST
|
Is there a way to use the ArcID object in visual studio when developing an add-in? And, if not, is there a list of built-in toolbar/menu UIDs that I can get access to? I'd rather not build a VBA application just to get UIDs. TIA!
... View more
04-20-2011
03:43 PM
|
0
|
1
|
295
|
POST
|
Nevermind! I got it figured out! What i ended up doing was:
private function loadOutage():void {
// load meter data from the outage file
var outageLoader:URLLoader = new URLLoader();
outageLoader.addEventListener(Event.COMPLETE, loadComplete);
outageLoader.load(new URLRequest("outagedatalist"));
}
private function loadComplete(event:Event):void {
var outageLoader:URLLoader = URLLoader(event.target);
query.where = "MeterNumber in (" + outageLoader.data + ")";
doQuery();
}
... View more
03-24-2011
08:50 AM
|
0
|
0
|
110
|
POST
|
I'm working on an outage map and I would like to know if there is a way to read data from a local (on the same server in the same folder) file into my flex application? TIA,
... View more
03-24-2011
07:50 AM
|
0
|
1
|
480
|
POST
|
I've decided to change tactics. I'm using a QueryTask with a GraphicsLayer instead of a FeatureLayer. I took the source code from the Zoom to query result example and it works great for selecting meters. It doesn't change the extent when there is only one meter selected, but since this is going to be an outage map I don't think it's an issue (at least not yet). Thanks for all the help! 🙂
... View more
03-23-2011
09:40 AM
|
0
|
0
|
181
|
POST
|
I set it in the FeatureLayer definition so I'm thinking it gets called after the Features get marked. (i.e.): <esri:FeatureLayer id="fLayer" visible="true" mode="snapshot" symbol="{MeterMark}" outFields="MeterNumber" updateEnd="zoomToExtent(event)" url="http://vmvea-arcgis:8399/arcgis/rest/services/Dispatch_Map/MapServer/0"/> I wasn't calling selectFeatures, but I have changed my code to call the selectFeatures function to select all the features present in the layer, but the extent still doesn't change. Do i need to refresh the map or something to get it to move the view?
... View more
03-23-2011
08:16 AM
|
0
|
0
|
181
|
POST
|
It doesn't move at all. I can search for different meters and the marks will change, but the view never changes.
... View more
03-21-2011
03:59 PM
|
0
|
0
|
181
|
POST
|
I am trying to use a FeatureLayer to search for meters in our service territory. The searching works great, but I can't seem to get it to change the view so that all the returned features are in view. I was attempting to do it as follows, but it isn't working. The meters are in a layer that is visible only at a certain zoom level and I made sure to be zoomed in to the appropriate level before conducting the search. private function updateEndFunction(event:Event):void
{
var graphicsExtent:Extent = GraphicUtil.getGraphicsExtent(fLayer.selectedFeatures);
OutageMap.extent = graphicsExtent;
}
... View more
03-21-2011
02:31 PM
|
0
|
5
|
679
|
Online Status |
Offline
|
Date Last Visited |
02-05-2024
01:28 PM
|