POST
|
We are having two issues regarding Feature services We are creating feature services using sde.default its working & allow editing but if we create another sde user named sde1 and create geodatabase in it,and when we try to publish feature service for sde1 user's geodata then service will not be published and given error is register database and when we register the database for same user it will show that the databae is registered and when we republished it is showing the same error again. does feature service only supports default sde user? and second problem is that when we published the feature service with domains and sub types, apply button on the editor widget not active while editing,also not showing the domain's values. best regards
... View more
02-19-2014
02:25 AM
|
0
|
0
|
521
|
POST
|
Dear All We are using arcsde oracle 11 g on development server. We have to replicate the data from development to production server after a weak same configuration is installed on the production server like development server (oracle 11 g with arcsde) which tool can we used for replicate on production server when changes occurs in development server. Best regards
... View more
01-15-2014
12:41 AM
|
0
|
1
|
519
|
POST
|
final solution for above question using AttributeQuery # sample used simplify private void SimplifyAndQueryButton_Click(object sender, RoutedEventArgs e) { GeometryService geometryService = new GeometryService("http://localhost/ArcGISSERVER/rest/services/Geometry/GeometryServer"); geometryService.SimplifyCompleted += GeometryService_SimplifyCompleted; geometryService.Failed += GeometryService_Failed; List<Graphic> graphicList = new List<Graphic>(); // graphicList.Add(_unsimplifiedGraphic); graphicList.Add(selectedFeature); geometryService.SimplifyAsync(graphicList); ResultsDisplayCanvasBuffer.Visibility = Visibility.Visible; } private void GeometryService_SimplifyCompleted(object sender, GraphicsEventArgs args) { doQuery(args.Results[0].Geometry); } private void doQuery(ESRI.ArcGIS.Client.Geometry.Geometry geometry) { QueryTask queryTaskpoint = new QueryTask("http://localhost/ArcGISSERVER/rest/services/Customer_Area/MapServer/1"); queryTaskpoint.ExecuteCompleted += QueryTaskpoint_ExecuteCompleted; queryTaskpoint.Failed += QueryTaskpoint_Failed; ESRI.ArcGIS.Client.Tasks.Query queryp = new ESRI.ArcGIS.Client.Tasks.Query() { Geometry = geometry, SpatialRelationship = SpatialRelationship.esriSpatialRelContains, OutSpatialReference = MyMap.SpatialReference, ReturnGeometry = true }; queryp.OutFields.Add("*"); queryTaskpoint.ExecuteAsync(queryp); } private void QueryTaskpoint_ExecuteCompleted(object sender, QueryEventArgs args) { if (args.FeatureSet == null) return; FeatureSet featureSet = args.FeatureSet; QueryDetailsDataGridBuffer.ItemsSource = featureSet.Features; GraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer; graphicsLayer.ClearGraphics(); if (featureSet != null && featureSet.Features.Count > 0) { foreach (Graphic feature in featureSet.Features) { ESRI.ArcGIS.Client.Graphic graphic = new ESRI.ArcGIS.Client.Graphic() { Geometry = feature.Geometry, Symbol = LayoutRoot.Resources["DefaultMarkerSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol }; graphicsLayer.Graphics.Add(graphic); } } // graphicsLayer.Graphics.Add(_unsimplifiedGraphic); graphicsLayer.Graphics.Add(selectedFeature); } private void GeometryService_Failed(object sender, TaskFailedEventArgs e) { MessageBox.Show("Geometry Service error: " + e.Error); } private void QueryTaskpoint_Failed(object sender, TaskFailedEventArgs e) { MessageBox.Show("Query failed: " + e.Error); } private void Selection_Change_Buffer(object sender, SelectionChangedEventArgs e) { System.Windows.Controls.DataGrid dataGrid = sender as System.Windows.Controls.DataGrid; int selectedIndex = dataGrid.SelectedIndex; if (selectedIndex > -1) { //FindResult findResult = (FindResult)QueryDetailsDataGrid.SelectedItem; //Graphic graphic = findResult.Feature; Graphic graphic = (Graphic)QueryDetailsDataGridBuffer.SelectedItem; ESRI.ArcGIS.Client.Geometry.Envelope selectedFeatureExtent = graphic.Geometry.Extent; double expandPercentage = 30; double widthExpand = selectedFeatureExtent.Width * (expandPercentage / 100); double heightExpand = selectedFeatureExtent.Height * (expandPercentage / 100); ESRI.ArcGIS.Client.Geometry.Envelope displayExtent = new ESRI.ArcGIS.Client.Geometry.Envelope( selectedFeatureExtent.XMin - (widthExpand / 2), selectedFeatureExtent.YMin - (heightExpand / 2), selectedFeatureExtent.XMax + (widthExpand / 2), selectedFeatureExtent.YMax + (heightExpand / 2)); graphic.Symbol = LayoutRoot.Resources["SelectedSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol; GraphicsLayer graphicsLayer = MyMap.Layers["SelectedTableGraphicLayer"] as GraphicsLayer; // graphicsLayer.ClearGraphics(); // graphicsLayer.Graphics.Add(graphic); MyMap.PanTo(displayExtent); } }
... View more
12-16-2012
09:13 PM
|
0
|
0
|
445
|
POST
|
Search cfg file of ur map services edit in notepad there u find <Properties> <MaxRecordCount>1000</MaxRecordCount> change it 5000 restart ur services or restart system hope it works for u
... View more
12-16-2012
08:59 PM
|
0
|
0
|
546
|
POST
|
i have lat long values 6803.0708,2622.6819 i want to display on arcgis sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Project which map spatialReference no is required to convert these values to display on map MapPoint inputMapPoint = new MapPoint(x, y, new SpatialReference(----)); regards Waqar
... View more
12-06-2012
01:38 AM
|
0
|
1
|
607
|
POST
|
I m trying this need help here public MainPage() { InitializeComponent(); QueryTask queryTask = new QueryTask("http://localhost/ArcGISSERVER/rest/services/Customer_Area/MapServer/2");//polygon QueryTask qtponit = new QueryTask("http://localhost/ArcGISSERVER/rest/services/Customer_Area/MapServer/1"); //points qtponit.ExecuteCompleted += qtponit_ExecuteCompleted; queryTask.ExecuteCompleted += QueryTask_ExecuteCompleted; queryTask.Failed += QueryTask_Failed; qtponit.Failed += qtponit_Failed; ESRI.ArcGIS.Client.Tasks.Query query = new ESRI.ArcGIS.Client.Tasks.Query(); query.ReturnGeometry = true; // Specify fields to return from initial query query.OutFields.AddRange(new string[] { "Area_Code_" }); //polygon feild // This query will just populate the drop-down, so no need to return geometry // Return all features query.Where = "1=1"; queryTask.ExecuteAsync(query, "initial"); ESRI.ArcGIS.Client.Tasks.Query queryPoint = new ESRI.ArcGIS.Client.Tasks.Query(); // queryPoint.SpatialRelationship= " queryPoint.ReturnGeometry = true; queryPoint.SpatialRelationship = SpatialRelationship.esriSpatialRelIntersects; // queryPoint.OutFields.AddRange(new string[] { "Area" }); ; //queryPoint.Where = "1=1"; qtponit.ExecuteAsync(queryPoint, "initial"); } private void cmbArea_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (comboBox1.SelectedItem.ToString().Contains("Select...")) return; QueryTask queryTask = new QueryTask("http://localhost/ArcGISSERVER/rest/services/Customer_Area/MapServer/2"); queryTask.ExecuteCompleted += QueryTask_ExecuteCompleted; queryTask.Failed += QueryTask_Failed; ESRI.ArcGIS.Client.Tasks.Query query = new ESRI.ArcGIS.Client.Tasks.Query(); query.Text = comboBox1.SelectedItem.ToString(); query.OutSpatialReference = MyMap.SpatialReference; query.OutFields.Add("*"); query.ReturnGeometry = true; queryTask.ExecuteAsync(query); } private void QueryTask_ExecuteCompleted(object sender, ESRI.ArcGIS.Client.Tasks.QueryEventArgs args) { // If initial query to populate states combobox if ((args.UserState as string) == "initial") { // Just show on initial load comboBox1.Items.Add("Select..."); foreach (Graphic graphic in args.FeatureSet.Features) { comboBox1.Items.Add(graphic.Attributes["Area_Code_"].ToString()); } comboBox1.SelectedIndex = 0; return; } // Remove the first entry if "Select..." if (comboBox1.Items[0].ToString().Contains("Select...")) comboBox1.Items.RemoveAt(0); // below code is for select Polygon // If an item has been selected GraphicsLayer graphicsLayer = MyMap.Layers["MyGraphicsLayer"] as GraphicsLayer; graphicsLayer.ClearGraphics(); FeatureSet featureSet = args.FeatureSet; if (featureSet != null && featureSet.Features.Count > 0) { // Show selected feature attributes in DataGrid Graphic selectedFeature = featureSet.Features[0]; // Hightlight selected feature selectedFeature.Symbol = LayoutRoot.Resources["DefaultFillSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol; graphicsLayer.Graphics.Add(selectedFeature); // Zoom to selected feature (define expand percentage) ESRI.ArcGIS.Client.Geometry.Envelope selectedFeatureExtent = selectedFeature.Geometry.Extent; double expandPercentage = 30; double widthExpand = selectedFeatureExtent.Width * (expandPercentage / 100); double heightExpand = selectedFeatureExtent.Height * (expandPercentage / 100); ESRI.ArcGIS.Client.Geometry.Envelope displayExtent = new ESRI.ArcGIS.Client.Geometry.Envelope( selectedFeatureExtent.XMin - (widthExpand / 2), selectedFeatureExtent.YMin - (heightExpand / 2), selectedFeatureExtent.XMax + (widthExpand / 2), selectedFeatureExtent.YMax + (heightExpand / 2)); MyMap.ZoomTo(displayExtent); } } private void qtponit_ExecuteCompleted(object sender, ESRI.ArcGIS.Client.Tasks.QueryEventArgs args) { GraphicsLayer graphicsLayerpoint = MyMap.Layers["MyGraphicsLayerPoint"] as GraphicsLayer; graphicsLayerpoint.ClearGraphics(); FeatureSet featureSet = args.FeatureSet; if (featureSet == null || featureSet.Features.Count < 1) { MessageBox.Show("No features retured from query"); return; } if (featureSet != null && featureSet.Features.Count > 0) { foreach (Graphic feature in featureSet.Features) { feature.Symbol = LayoutRoot.Resources["DefaultMarkerSymbol"] as MarkerSymbol; graphicsLayerpoint.Graphics.Insert(0, feature); } //if (featureSet != null && featureSet.Features.Count > 0) //{ // // Show selected feature attributes in DataGrid // Graphic selectedFeature = featureSet.Features[0]; //// Hightlight selected feature //selectedFeature.Symbol = LayoutRoot.Resources["DefaultMarkerSymbol"] as ESRI.ArcGIS.Client.Symbols.Symbol; //graphicsLayerpoint.Graphics.Add(selectedFeature); } } private void QueryTask_Failed(object sender, TaskFailedEventArgs args) { MessageBox.Show("Query failed: " + args.Error); } private void qtponit_Failed(object sender, TaskFailedEventArgs args) { MessageBox.Show("Query failed: " + args.Error); } public Symbol DefaultFillSymbol { get; set; } private void Click_Test(object sender, RoutedEventArgs e) { // to select point inside in the selected polygon but its give erorr dont know why QueryTask qtponit = new QueryTask("http://localhost/ArcGISSERVER/rest/services/Customer_Area/MapServer/1"); qtponit.ExecuteCompleted += qtponit_ExecuteCompleted; qtponit.Failed += qtponit_Failed; ESRI.ArcGIS.Client.Tasks.Query queryPoint = new ESRI.ArcGIS.Client.Tasks.Query(); queryPoint.OutSpatialReference = MyMap.SpatialReference; queryPoint.ReturnGeometry = true; queryPoint.SpatialRelationship = SpatialRelationship.esriSpatialRelIntersects; queryPoint.OutFields.Add("*"); qtponit.ExecuteAsync(queryPoint); }
... View more
12-06-2012
01:31 AM
|
0
|
0
|
445
|
POST
|
unbale to select points inside selected polygon graphic feature c# code required
... View more
12-05-2012
01:35 AM
|
0
|
0
|
445
|
POST
|
My question is how I can select points from point layer which are completely in side selected polygon . I already select polygon using attribute example http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery required help in code thanks in advance
... View more
11-30-2012
01:32 AM
|
0
|
0
|
445
|
POST
|
Dear All I Have two layer in my map service. one polygon,one point i want to selecet point inside the selected polygon i m using http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery through this i can select polygon but how i can select points inside that selected polygon required code please regards Waqar
... View more
11-28-2012
09:35 PM
|
0
|
6
|
3563
|
POST
|
i m using arcgis sample http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#AttributeQuery graphic layer did not appears in map and caused error i check both esri and my own services get the same error because graphic layer does not appear in above sample i did not make any changes on esri sample even the esri services but still got the error dont know why graphic layer did not add i check other sample also http://help.arcgis.com/en/webapi/silverlight/samples/start.htm#Find in that sample graphic layer does not appear also and graphic layer does not appear occurs only when query the data, record appear in the table or combo box while click on the selected record gives error because graphic layer does not add in the map
... View more
09-08-2012
09:25 PM
|
0
|
1
|
1023
|
POST
|
Dear All Esri Member i m working on this error unable to find attribute on Network Analysis (Routing) services for many On the above message reply by esri member i have been forward to Network Analysis forum Now i have been forward back to this forum -------------------------------------------------------------------------------- Re: NA Route Rest services gives error Muhammad, From your previous message it looks like you have already gotten a valid route back from the server. The only step is left is to make your Silverlight application send the same HTTP parameters to the server endpoint: use RouteTask, RouteParameters, and RouteResult classes from the ESRI.ArcGIS.Client.Tasks namespace. Here is a good sample how to use route endpoint in Silverlight: http://help.arcgis.com/en/webapi/sil...rt.htm#Routing Dmitry Can any one solved this issue i have arcgis server install on my laptop and i have check rest services http://localhost/ArcGISSERVER/rest/services/NA/karachi/NAServer/Route/solve it provided the answer but when i used on arcgis any api it gives error mention above What kind of error is this that can not be solved hope some one reply with answer
... View more
07-01-2012
07:42 AM
|
0
|
0
|
347
|
POST
|
please reply to this thread awaiting for your reply
... View more
06-02-2012
11:16 AM
|
0
|
0
|
1009
|
POST
|
Hi Muhammad, Please open the Route description page (http://<server>/ArcGISSERVER/rest/services/Network_ANAlysis/NAServer/Route) in a browser and look for all the attributes of the esriNAUTCost usage type; write down the name of the attribute you are interested to solve on. Next, in your HTTP request, specify the impedanceAttributeName parameter with the value set to attribute name you noted at the previous step. Please let us know what will be the result. Dmitry Network Dataset: RoadNetWork_ND Network Attributes: Meters Usage Type: esriNAUTCost Units: esriNAUMeters Data Type: esriNADTDouble Parameter Names: Oneway Usage Type: esriNAUTRestriction Units: esriNAUUnknown Data Type: esriNADTBoolean Parameter Names: RoadClass Usage Type: esriNAUTDescriptor Units: esriNAUUnknown Data Type: esriNADTInteger Parameter Names: RestrictedTurn Usage Type: esriNAUTRestriction Units: esriNAUUnknown Data Type: esriNADTBoolean Parameter Names: Network Sources: Street Element Type: esriNETEdge Source Type:esriNSTEdgeFeature ID: 1 RoadNetWork_ND_Junctions Element Type: esriNETJunction Source Type:esriNSTSystemJunction ID: 3 RestrictedTurns Element Type: esriNETTurn Source Type:esriNSTTurnFeature ID: 2 i have also solved the route on http://<server>/ArcGISSERVER/rest/services/Network_ANAlysis/NAServer/Route/Solve Result i get Directions: Route: 1.Location 1 - Location 2 Summary: Total Length: 290.725276854782 Total time: 0 Total Drive Time: 0 Envelope: Envelope: XMin: 303831.274002066 YMin: 2763214.2613 XMax: 304055.8838 YMax: 2763300.41672698 Spatial Reference: 32642 Directions: Text: Start at Location 1 Length: 0 Time: 0 ETA: 12/30/1899 12:00:00 AM Maneuver: esriDMTDepart Compressed Geometry: +1+98mn+2kaes+0+0 Text: Go east Length: 176.920221727059 Time: 0 ETA: 12/30/1899 12:00:00 AM Maneuver: esriDMTStraight Compressed Geometry: +1+98mn+2kaes+5h+7 Text: Turn left Length: 63.667495198 Time: 0 ETA: 12/30/1899 12:00:00 AM Maneuver: esriDMTTurnLeft Compressed Geometry: +1+98s8+2kaf3-3+20 Text: Turn right Length: 50.1375599297227 Time: 0 ETA: 12/30/1899 12:00:00 AM Maneuver: esriDMTTurnRight Compressed Geometry: +1+98s5+2kah3+1j+1 Text: Finish at Location 2, on the right Length: 0 Time: 0 ETA: 12/30/1899 12:00:00 AM Maneuver: esriDMTStop Compressed Geometry: +1+98to+2kah4+0+0 Routes #records: 1 ObjectID: 1 Name: Location 1 - Location 2 FirstStopID: 1 LastStopID: 2 StopCount: 2 Total_Meters: 290.725276854782 Shape_Length: 290.725186211174 Polyline: Path0:[303831.274,2763228.1893],[303885.5364,2763230.274],[303895.8829,2763230.6672]...5 more... Next, in your HTTP request, specify the impedanceAttributeName parameter with the value set to attribute name you noted at the previous step. i do not understand what ur asking in above line but what i understand is impedanceAttributeName is Impedance Attribute Name: METER { RESULT IN JSON "directions" : [ { "routeId" : 1, "routeName" : "Location 1 - Location 2", "summary" : { "totalLength" : 290.725276854782, "totalTime" : 0, "totalDriveTime" : 0, "envelope" : { "xmin" : 303831.274002066, "ymin" : 2763214.2613, "xmax" : 304055.8838, "ymax" : 2763300.41672698, "spatialReference" : { "wkid" : 32642 } } }, "features" : [ { "attributes" : { "length" : 0, "time" : 0, "text" : "Start at Location 1", "ETA" : -2209161600000, "maneuverType" : "esriDMTDepart" }, "compressedGeometry" : "+1+98mn+2kaes+0+0" }, { "attributes" : { "length" : 176.920221727059, "time" : 0, "text" : "Go east", "ETA" : -2209161600000, "maneuverType" : "esriDMTStraight" }, "compressedGeometry" : "+1+98mn+2kaes+5h+7" }, { "attributes" : { "length" : 63.667495198, "time" : 0, "text" : "Turn left", "ETA" : -2209161600000, "maneuverType" : "esriDMTTurnLeft" }, "compressedGeometry" : "+1+98s8+2kaf3-3+20" }, { "attributes" : { "length" : 50.1375599297227, "time" : 0, "text" : "Turn right", "ETA" : -2209161600000, "maneuverType" : "esriDMTTurnRight" }, "compressedGeometry" : "+1+98s5+2kah3+1j+1" }, { "attributes" : { "length" : 0, "time" : 0, "text" : "Finish at Location 2, on the right", "ETA" : -2209161600000, "maneuverType" : "esriDMTStop" }, "compressedGeometry" : "+1+98to+2kah4+0+0" } ] } ], "routes" : {"spatialReference" : { "wkid" : 32642 }, "features" : [ { "attributes" : { "ObjectID" : 1, "Name" : "Location 1 - Location 2", "FirstStopID" : 1, "LastStopID" : 2, "StopCount" : 2, "Total_Meters" : 290.725276854782, "Shape_Length" : 290.725186211174 } , "geometry" : { "paths" : [ [ [303831.274, 2763228.1893], [303885.5364, 2763230.274], [303895.8829, 2763230.6672], [303964.0281, 2763233.2845], [304008.0642, 2763234.9721], [304008.0642, 2763235.0171], [304005.4796, 2763298.587], [304055.5837, 2763300.4167] ] ] } } ] }, "messages" : [ ] } What next to solved this and Many thanks for providing help
... View more
05-28-2012
12:21 AM
|
0
|
0
|
1009
|
POST
|
i have created new NA ROUTE SERVICES using fiddler it gives this error GET /ArcGISSERVER/rest/services/Network_ANAlysis/NAServer/Route/solve?stops=%7b%22features%22%3a%5b%7b%22geometry%22%3a%7b%22x%22%3a303867.994872106%2c%22y%22%3a2763839.39565207%2c%22spatialReference%22%3a%7b%22wkid%22%3a32642%7d%7d%7d%2c%7b%22geometry%22%3a%7b%22x%22%3a303975.44353541%2c%22y%22%3a2762960.26995024%2c%22spatialReference%22%3a%7b%22wkid%22%3a32642%7d%7d%7d%5d%7d&returnDirections=false&returnRoutes=true&returnStops=false&returnBarriers=false&returnPolylineBarriers=false&returnPolygonBarriers=false&outSR=32642&ignoreInvalidLocations=true&preserveFirstStop=true&preserveLastStop=true&useHierarchy=true&outputGeometryPrecision=0&outputGeometryPrecisionUnits=esriUnknownUnits&f=json& HTTP/1.1 {"error":{"code":400,"message":"Unable to complete operation.","details":["Unable to find attribute . Invalid context. NALayer saved on server with token when i open this ags_file in arcmap its work fine help me out please
... View more
05-24-2012
12:20 AM
|
0
|
0
|
1009
|
Title | Kudos | Posted |
---|---|---|
1 | 01-07-2019 06:17 AM | |
1 | 04-25-2012 10:16 PM |
Online Status |
Offline
|
Date Last Visited |
07-15-2022
01:24 AM
|