POST
|
Thanks for your answer. For bi-directional interaction what you suggest sounds like one of the solutions. I think we will implement one-way only at the beginning - from the "other" application to map. We will achieve this by providing some URLs with parametric queries, to display map in a requested format.
... View more
05-26-2012
06:06 AM
|
0
|
0
|
155
|
POST
|
Dear All, We want to know the best technique for integrating map application with other web applications. The "other" web application is a .Net-based web application and it has several other functions. Let's say, in one of its functions, they have a query for school names. When they query a school, we will display a map in a panel (iFrame, etc) and the user will be able to interact (zoom in/out, pan, etc) with that map. Initially, the "other" application does not display any map. Let's assume further that, if there are more than 1 school with the same name. Then, schools will be displayed in the map, the map will be zoomed to the extent of both schools, and whenever a school is clicked, the map will display it with another symbol, etc. In a similar way, when user clicks on the "Map" part of the application, the "other" part will be able to display "something" related with that location (for example, a related information about that school, or a comment form about that school, etc.). The thing is that, we don't want these (commenting, etc) functionality be implemented by the "Map" part of the application. The "other" application shall have no GIS programming parts. And the Map application has no other logic than responding to "map"-related queries. In other words, "other" application will call some services from the Map application to have map displayed. The question: what's the best technique to achieve this kind of two-way integration? Any suggestions?
... View more
05-24-2012
01:34 PM
|
0
|
2
|
470
|
POST
|
If I understood right you want the union of Layer 1 results so you can query Layer 2 that intersect that geometry. You can look at the following SDK samples: First, Query Layer 1 http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery Second, Call Union on Layer 1 query results http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Union Third, Perform Query on Layer 2 by using Union results as Query.Geometry. http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#SpatialQuery Yes, you got it. But the question is: don't we have another option instead of so-called "geometry server" on ArcGIS? We are working on shape files. Can we still use "geometry server" with shape files? Thanks very much for your reply, indeed.
... View more
05-11-2012
03:53 PM
|
0
|
0
|
227
|
POST
|
Dear All, This question may sound like very easy, however, I found difficulties in implementing it in SDK 2.4. I have a Query1 on Layer1, returning several features. I want to run a SPATIAL QUERY (Query2) on another layer (say, Layer2), using the results of the query of Layer1. Let's say I want to select features from Layer2 which are contained by the results of Query1. I don't want to iterate over the results of Query1. If it returns "n" features, this will result in "n" times execution of Query2. Is there a way to assign (union, etc.) all the features to query.geometry parameter? In the past using topological operator, etc., we were performing a "Union" on all the features in the feature set. Is there a similar way in Silverlight SDK 2.4? If so, how? Any help would be highly appreciated. Many thanks in advance.
... View more
05-11-2012
04:43 AM
|
0
|
3
|
1805
|
POST
|
Dear All, In one of our DLL application, we are creating a marker symbol and this symbol is updated by the application time to time. It's not a GPS tracking application. But the marker symbol is updated according to some coordinates we read from a GPS device log file. The DLL does not require certain layer structure. Therefore, we are not sure about the spatial reference. So while we are creating the point, we simply set IPoint's X and Y coordinates and as expected in some cases the point does not appear at the correct location on the map. Here is the code how we create the symbol and set coordinates:
ESRI.ArcGIS.Geometry.IPoint pPoint = new ESRI.ArcGIS.Geometry.PointClass();
pPoint.X = gpsData.longitude;
pPoint.Y = gpsData.latitude;
ESRI.ArcGIS.Geometry.IZAware zAware = (ESRI.ArcGIS.Geometry.IZAware)pPoint;
zAware.ZAware = true;
pPoint.Z = gpsData.altitude;
//
// Here, we are trying to set pPoint.SpatialReference to current map's spatial reference.
// pPoint.SpatialReference = m_Map.SpatialReference;
//
// It doesn't work
//
// But sometimes we realize that the current map's spatial reference is unknown.
//
IMarkerElement me = mCameraIconElement as IMarkerElement;
IPictureMarkerSymbol pms = me.Symbol as IPictureMarkerSymbol;
pms.Angle = -(double)(mCurrentAzimuth + pan) / TO_RADIAN;
me.Symbol = pms;
mCameraIconElement = (IElement)me;
mCameraIconElement.Geometry = pPoint;
IGraphicsContainer graphicsContainer = (IGraphicsContainer)m_Map;
graphicsContainer.UpdateElement(mCameraIconElement);
Thanks for your help in advance.
... View more
11-06-2010
12:50 AM
|
0
|
0
|
1780
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|