POST
|
We have a huge app that uses a dynamic map service as the query task, which doesn't match the layers shown on the map (which are tiled layers). It gave us enormous control over exactly what layers are identified across within that service. Making us identify across operational layers is going to be very obtrusive.
... View more
04-03-2019
02:25 PM
|
0
|
1
|
350
|
POST
|
I am using MapToScreen to create specialized maptips that track with the points. My map is in web mercator of course, and any graphics in that spatialreference work perfectly. But I have some graphic layers that come in via lat/longs and since I specify the different spatial reference, the map engine projects them perfectly, BUT when I ask for the MapToScreen point, I am getting results that place my annotations near Africa (which tells me MapToScreen is NOT running the coordinates through the autoproject.) Any ideas about this? (just dropping a sample of my code) GraphicsLayer inputLayer = this.ConwayMap.Layers[inputLayerName] as GraphicsLayer; foreach (ESRI.ArcGIS.Client.Graphic g in inputLayer) { Point myGraphic = (Point)ConwayMap.MapToScreen(new MapPoint { X = g.Geometry.Extent.XMax, Y = g.Geometry.Extent.YMax, SpatialReference= new SpatialReference(4326) }); //blah blah do something with this point }
... View more
10-25-2013
02:05 PM
|
0
|
0
|
1972
|
POST
|
I found the toolbox... IT WAS IN SERVICE PACK 1!!! That explains why the docs for it are so new on the web (Dated, Nov. 1). I don't understand why this wasn't mentioned in the service pack notes or in the docs.
... View more
11-19-2012
11:19 AM
|
0
|
0
|
182
|
POST
|
Ok, my coworker was able to solve the issue. On his "identical" iphone app he allocated a query task/query from within a "selectedIndexChanged" type event that would edit his "where" clause in the query. This worked on the iPhone, however, it wasn't until he pulled the alloc/init for both the query task/query into the viewDidLoad event that it worked on the iPad. The only thing different between the two products is where the ivars were allocated. Is there any reason why you guys can think of why this would be the case? Thanks.
... View more
02-27-2012
11:33 AM
|
0
|
0
|
255
|
POST
|
Or is there a better way? In our network I wrote an algorithm to find the common ancestors of our service points... but what we are interested in is the CLOSEST (or first) common anscestor which is a hypothetical first point of failure. It really surprised me that the results have edges and junctions seperated out in no logical order. I found a way to order them, I run through every single junction and do an upstream trace, then count the results for each junction. The junction that has the MOST results is the one farthest from the source and the FIRST common ansestor, but as you can imagine, running through 20 traces each time is pretty time consuming and resource intesive. Is there any other way? Thanks! Brandon
... View more
02-24-2012
12:08 PM
|
0
|
0
|
672
|
POST
|
My coworker created an iPhone app that queries a group of "Modem events" based on its key and it simply adds the results to a graphic layer and displays them. It works great on the iPhone but when he created a new project for the IPad and used the same code the Querytask seems to fire off but doesn't return any results (even non graphically.) He says he has the delegates set, but I wanted to ask if there is any known "difference" or issue here that we might be missing? Thanks!
... View more
02-16-2012
09:23 AM
|
0
|
4
|
2305
|
POST
|
So the end answer is: for (int x = 0; x < myInfo.MapLayerInfos.Count; x++) { result.AddString("Layer" + (x+1).ToString(), myInfo.MapLayerInfos.get_Element(x).Name); } More questions to come! 😄
... View more
02-02-2012
11:01 AM
|
0
|
0
|
205
|
POST
|
WOW... this stuff is amazing: IServerObject myMapService = serverObjectHelper.ServerObject; MapServer myServer = (MapServer)myMapService; string MapServiceName = serverObjectHelper.ServerObject.ConfigurationName.ToString(); string MapInfo = "MAP (frame): " + myServer.DefaultMapName.ToString(); MapInfo += " Number of Frames: " + myServer.MapCount.ToString(); MapInfo += " Title: " + myServer.DocumentInfo.GetProperty("Title").ToString(); IMapServerInfo myInfo = myServer.GetServerInfo(myServer.DefaultMapName); MapInfo += " LayerCount: " + myInfo.MapLayerInfos.Count.ToString(); IMapLayerInfo myLayer = myInfo.MapLayerInfos.get_Element(0); MapInfo += " Layer_Name: " + myLayer.Name;
... View more
02-02-2012
10:50 AM
|
0
|
0
|
205
|
POST
|
OK... so I'm pretty stoked... using the templates and the samples, I have created a REST server object extension, that takes in some strings as parameters and returns a string back after I publish the map and select my custom service as a Capability. But I'm VERY green at ArcObjects still, so help me get past this one simple concept and I think I can start to "get it"... In my Operation Handler, I have access to serverObjectHelper... and it has the IServerObject as it's property... if I output the "ConfigurationName" I get back the name of my MapService... which makes sense. But what if I wanted access to the FeatureLayers contained in the map that the mapservice is based on? What is the code (in c# preferably) to say, list out all the names of the layers in the map (or mapservice)? Any help would be greatly appreciated!
... View more
02-02-2012
09:18 AM
|
0
|
2
|
2137
|
POST
|
DUDE that worked, but here's a couple of notes for anyone else that runs into this. The "Collector tool" goes on the "inside" model that contains the iterator, BUT the Output of the Collector is flaged as a parameter for the "outer model". ALSO, I banged my head against a wall for 30 minutes because modelbuilder flagged the input tables into the collector as intermediate, and thus was deleting them right before the merge tool fired off!! Uncheck that box for this exercise. 🙂 Thank you so much!
... View more
09-16-2011
08:55 AM
|
1
|
1
|
577
|
POST
|
Hey guys, I think this is a simple question but not sure... I have a map with say, a counties layer and I want to make a tool that will count all the houses in each county (or selected counties) and output the results to a table. So I have the tool, I put down an interator, passing in the selected counties to a clip function, that then passes the resulting houses into a stat box that counts them. Problem is, I only get back the last selected county because the stat output overwrites the table with the last result. How do I make it append or insert the results so I get them all back instead of just one?
... View more
09-15-2011
07:48 AM
|
0
|
3
|
2059
|
POST
|
I'm no expert in this but the policy file is supposed to go at the root of the website. http://msdn.microsoft.com/en-us/library/cc197955(v=vs.95).aspx
... View more
03-25-2011
02:07 PM
|
0
|
0
|
218
|
POST
|
Using ArcServer 9.3: OK, I've created a feature layer in Arcmap that creates points for modems in my system... it's joined to a table that has the ONLINE/OFFLINE status off the modem. If I launch the app though, and the data changes from OFFLINE to ONLINE, in our old Web ADF .net stuff I pretty much had to do a refresh of the whole page. Is there any way to have the page (or even WPF) go after/refresh this map without a full reload?
... View more
03-25-2011
01:42 PM
|
0
|
1
|
2594
|
Title | Kudos | Posted |
---|---|---|
1 | 09-16-2011 08:55 AM |
Online Status |
Offline
|
Date Last Visited |
11-17-2021
03:14 PM
|