|
POST
|
Solved. Ex.: string s = "http://myURL:6080/arcgis/rest/services/.../MapServer/exts/PointQuery/SpatialQuery?LRSSegInput=A1&MeasureInput=1000&f=pjson"; It returns a point feature in this scenario.
... View more
01-02-2014
07:35 AM
|
0
|
0
|
543
|
|
POST
|
Is there such a tool as converting multiple points to a polylineM? Thanks.
... View more
12-31-2013
07:17 AM
|
0
|
2
|
1286
|
|
POST
|
I created 2 SOE projects (one returned as a point, and another returned as a polyline) that were programmed in .Net. I added them as extensions in ArcGIS Server. Then I can operate them and get the expected return through browser. In my next step operation, I want to retrieve the return the results in a REST project (e.g. in Silverlight or JavaScript). Once I can retrieve the returned result (e.g. a point or a polyline, I can then add it on a map as a graphic layer. I don't know how to retrieve the results pragmatically from ArcGIS Server SOE application(s). I will appreciate if you can share your experience.
... View more
12-31-2013
06:13 AM
|
0
|
1
|
1980
|
|
POST
|
I have solved this problem by using a simple approach. The general procedure is below: 1) Create a List<ESRI.ArcGIS.Geometry.IPoint> to collect all of points. 2) Create an object of ISegmentCollection path = new ESRI.ArcGIS.Geometry.PathClass(); 3) Create a segment by entering 2 points (looping the List<ESRI.ArcGIS.Geometry.IPoint>) 4) Add the segment into the path. object obj = Type.Missing; for (int i = 1; i < pointsCollection.Count; i++) { ILine pLine = CreateLine(pointsCollection[i - 1], pointsCollection); path.AddSegment((ISegment)pLine, ref obj, ref obj); } private ILine CreateLine(IPoint ptA, IPoint ptB) { ILine pLine = new Line(); pLine.PutCoords(ptA, ptB); return pLine; } 5) Create a PolylineClass and complete the change ESRI.ArcGIS.Geometry.IPolyline pSegPoly = new ESRI.ArcGIS.Geometry.PolylineClass(); ESRI.ArcGIS.Geometry.IGeometryCollection pGeoColl = pSegPoly as IGeometryCollection; pGeoColl.AddGeometry((IGeometry)path, ref obj, ref obj); pGeoColl.GeometriesChanged();
... View more
12-27-2013
06:53 AM
|
0
|
0
|
965
|
|
POST
|
The problem in my 1st thread was solved. I revised the method in http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000000v0000000 as below in order to get the return of a PolylineClass object. void ESRI.ArcGIS.Geometry.IPointCollection4 CreatePolylineByPoints(List<ESRI.ArcGIS.Geometry.IPoint> pointsCollection) { //Build a polyline from a sequence of vertices (points). //Add arrays of points to a geometry using the IGeometryBridge2 interface on the GeometryEnvironment singleton object. ESRI.ArcGIS.Geometry.IGeometryBridge2 pGeoBrg = new ESRI.ArcGIS.Geometry.GeometryEnvironment()as IGeometryBridge2; //pPointColl is the new polyline. ESRI.ArcGIS.Geometry.IPointCollection4 pPointColl = new ESRI.ArcGIS.Geometry.PolylineClass(); //TODO: //Set pPointColl.SpatialReference = 'Define the spatial reference of the new polyline. for (int i = 0; i < pointsCollection.Count; i++) { // 200+ points pPointColl.AddPoint(pointsCollection); } ESRI.ArcGIS.esriSystem.WKSPoint[] aWKSPointBuffer = new ESRI.ArcGIS.esriSystem.WKSPoint[pPointColl.PointCount ]; // 200+ points in aWKSPointBuffer, but each one's X=0.0 and Y=0.0 pGeoBrg.SetWKSPoints(pPointColl, ref aWKSPointBuffer); return pPointColl; } See the red-marked note. All of the X/Y values are 0.0. I could not figure out why. Please post your comment if you have the knowledge on it. Thanks.
... View more
12-26-2013
07:34 AM
|
0
|
0
|
965
|
|
POST
|
I am working on an ArcObjects / SOE project. I need to convert multiple points into a line feature. Using the approach at http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/How_to_create_a_polyline/0001000000v0000000/, I got a PolylineClass object: poinColl (its PointCount=213). In the following step, I tried to cast the PolylineClass object as a Polyline like that IPointCollection4 pointColl = CreatePolylineByPoints(pointsCollection, point) // returns ESRI.ArcGIS.Geometry.PointClass IPolyline polyLine = (IPolyline)pointColl; The polyLine has no value (e.g. XMax=XMin=...=0.0, MMax=MMin=NaN). Then I turned to an alternative approach that works for IPointCollection rather than IPointCollection4 IFeatureClass fc = CreateEmptyPolylineFC(fws, "MyPolyline", sr, routeIdFieldName); IFeature polylineFeature = fc.CreateFeature(); // Assign polyline geometry and M-value IPointCollection4 pointColl = (IPointCollection4)polylineFeature; //(IPointCollection)polylineFeature; I got InvalidVastException - Unable to cast COM object of type 'System._ComObject' to interface type 'ESRI.ArcGIS.Geometry.IPointCollection4'... Another alternative I did was to cast IPointCollection4 object as IPointCollection, but also got InvalidCastException. What's wrong in my code above? Thanks for help.
... View more
12-26-2013
05:59 AM
|
0
|
3
|
2035
|
|
POST
|
Problem got solved with the following steps: 1) Re-start my CPU. 2) Re-compile the SOE project (may not be needed). 3) Re-deploy the SOE in Manager. Then it got work. Thread is to be closed. Thanks for your visit.
... View more
12-17-2013
04:54 AM
|
0
|
0
|
1170
|
|
POST
|
In the Attach to Process wizard, after I checked on the 2 options (Show processes for all users and Show processes in all sessions), 5 ArcSOC.exe display in the Available List. After selecting 1 of them, my project is in Debugging status. However, I still could not step though the code. Wish someone can hint me how to do. Thanks.
... View more
12-17-2013
04:23 AM
|
0
|
0
|
1170
|
|
POST
|
I developed a SOE project 2 months ago, and it worked well in debugging. Now, I updated this project and wanted to debug it, but not successful. I followed the procedure: Debugging SOEs using the Visual Studio debugger (in http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#/Debugging_server_object_extensions/000100000pn6000000/). The procedure Step 7 states that 'In Visual Studio, click Tools > Attach to Process ...' and Step 8 states that 'Select the ArcSOC.exe process ...'. However, ArcSOC.exe is not in the Available Processes List. I checked Task Manager and saw that 5 ArcSOC are started. How can I add an ArcSOC.exe into the list? Thanks in advance if you can help for this question.
... View more
12-17-2013
03:45 AM
|
0
|
2
|
1633
|
|
POST
|
I worked on this a while ago. Being busy, I have not resumed my review on it. I plan to resume reviewing probably 1-3 months later. I have NOT found any materials for the real tests. I only read the API's and prepared some Q&As. Do you have any idea about it? Thanks.
... View more
12-09-2013
09:19 AM
|
0
|
0
|
1772
|
|
POST
|
jeffmatson: Wonderful. Problem fixed per your feedback. Thanks and have a nice weekend!
... View more
10-11-2013
09:30 AM
|
0
|
0
|
971
|
|
POST
|
For Feature Class in a GDB, I queried in Oracle SQL Developer: select * from RailLRSRoutes where RouteName = 'A1' and got 12 records returned. Got the same results using Definition Query in ArcMap. In the piece of code below: IQueryFilter queryFilter = new QueryFilterClass(); queryFilter.WhereClause = "RouteName = 'A1' "; IDataset dataset = (IDataset)fc; ISelectionSet pSelectionSet = fc.Select(queryFilter, esriSelectionType.esriSelectionTypeHybrid, esriSelectionOption.esriSelectionOptionOnlyOne, dataset.Workspace); the pSelectionSet.Count = 1 rather than multiple. What's wrong with my code here? Thanks.
... View more
10-11-2013
07:27 AM
|
0
|
3
|
2921
|
|
POST
|
Finally, I got my SOE project work, and also got experienced in Service Extension's Add/Remove. To avoid the problems I mentioned in the thread, namely add/remove a SOE undergoes unsuccessully, you may re-stop and then start your ArcGIS Server again in Task Manager / Services.
... View more
10-10-2013
07:28 AM
|
1
|
0
|
3055
|
|
POST
|
After re-installing ArcGIS Server and cleaning up the existing \arcgisserver\ folder, I re-created the mapservice, SOE, etc. Then, it becomes much better. I suspect the extra long time was due to some problem(s) in the created SOE. Without SOE, the time for starting a map service is reasonable. If the SOE is good, the time spent is also acceptable. But, if the SOE has some runtime bug, it may cause the timeout, as I experienced. Thanks.
... View more
10-09-2013
10:26 AM
|
0
|
0
|
2088
|
|
POST
|
It happened to me twice already - I added a service extension. It got crushed somehow, and it got disappeared from the Extension list. However, this service can't be added. The warning message likes that: An extension with name 'xxx' is already registered for service type 'MapServer' This extenion service is listed in mapservice's capabilities, but not in the Extension list. It indicates something is wrong for the extension service registry. Hopefully, ESRI Developer Team can take a look on it and then fix it. As pointed out in my another thread, I can't do anything on it unless re-install (Remove and then Re-Install, Not Modify or Repair) ArcGIS Server to clean up the \arcgisserver\ folder.
... View more
10-09-2013
08:58 AM
|
0
|
3
|
3954
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-18-2023 10:02 AM | |
| 3 | 07-14-2023 12:29 PM | |
| 1 | 04-02-2021 12:16 PM | |
| 1 | 07-24-2017 11:31 AM | |
| 1 | 04-04-2016 03:59 AM |
| Online Status |
Offline
|
| Date Last Visited |
04-01-2025
11:58 AM
|