|
POST
|
The info in ESRI's help is somehow not clear. After .soe is added, there will be an additional box in a service's capabilities (like KML, etc.) . Hopefully, ESRI help can provide clearer statement in some of its help topics.
... View more
10-03-2013
10:59 AM
|
0
|
0
|
1068
|
|
POST
|
However, I searched it through my CPU, but the SpatialQuerySOE.dll not found. Now my Q are that 1) For ArcGIS Server 10.1, how can the SOE be enabled? 2) Is the SpatialQuerySOE.dll still be required? Thanks.
... View more
10-01-2013
10:32 AM
|
0
|
0
|
1068
|
|
POST
|
Just found that I should register the SpatialQuerySOE.dll.
... View more
10-01-2013
10:13 AM
|
0
|
0
|
1068
|
|
POST
|
In ESRI Help: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000nvs000000, How to enable a server object extension on a service, it mentions 3. Click the Capabilities tab. 4. Select the check box next to the SOE you want to enable. I followed the procedure and checked a service, but could not find such a checkbox. Followed the procedure to check Catalog's ArcGIS Server tree, and no checkbox was observed. Please hint me if you know. Thanks.
... View more
10-01-2013
10:01 AM
|
0
|
3
|
1505
|
|
POST
|
I checked the source file in SDE Oracle, and observed that there is no M-tolerance from the FC property. I re-loaded the feature class from a File GDB, in which the FC does have the M-tolerance property. Then, the error was gone. Thanks.
... View more
09-30-2013
09:24 AM
|
0
|
0
|
619
|
|
POST
|
In one of my projects, I created a function to break a curve (or line segment) into multiple points. When I run this piece of code: private List<IPoint> GetPoints(ICurve curve, double mspacing) { var outList = new List<IPoint>(); var mseg = curve as IMSegmentation3; if (mseg.MMonotonic == esriMMonotonicEnum.esriMNotMonotonic) throw new Exception("polyline not monotonic"); for (double m = mseg.MMin; m <= mseg.MMax; m += mspacing) { var geomcoll = mseg.GetPointsAtM(m, 0.0); if (geomcoll != null && geomcoll.GeometryCount > 0) { var pnt = geomcoll.get_Geometry(0) as IPoint; outList.Add(pnt); } } return outList; } I got the COMException error: The geometry is not M-aware. What is about it? Thanks.
... View more
09-30-2013
09:03 AM
|
0
|
1
|
947
|
|
POST
|
Through intensive search, found that the ESRI.ArcGIS.Location.RouteMeasureLineLocationClass can't be opened directly. Since I have adapted an alternative approach to target my goal, this thread is to be closed.
... View more
09-27-2013
11:11 AM
|
0
|
0
|
726
|
|
POST
|
Did some researches again but got nothing really helpful. Since I have adapted an alternative approach to code (http://forums.arcgis.com/threads/93553-Get-the-point-along-a-curve). This instance is to be closed.
... View more
09-27-2013
11:07 AM
|
0
|
0
|
604
|
|
POST
|
The cast posted before was not correct. In stead of ESRI.ArcGIS.Location.IRouteEventSource rtEvtSourceClass; rtEvtSourceClass = (ESRI.ArcGIS.Location.IRouteEventSource)fc; It should be IFeatureClass fc = (IFeatureClass)rtEvtSourceClass; Thread is to be closed.
... View more
09-27-2013
11:06 AM
|
0
|
0
|
852
|
|
POST
|
Checked again and found nothing. I have adapted an alternative approach to code (http://forums.arcgis.com/threads/93553-Get-the-point-along-a-curve). This instance is to be closed.
... View more
09-27-2013
11:02 AM
|
0
|
0
|
566
|
|
POST
|
The problem has been solved by the procedure below: 1) Define a curve (or a line) and get its FromPoint (and ToPoint). 2) Break the curve (or line) to multiple points, as returned as <List>IPoint. 3) Loop the List, and calculate the distance between FromPoint to the point in the List. 4) If the distance calculated is below the allowed value (e.g. 0.1 or 0.2, or even smaller), return the result as this point. Thanks for your review my thread.
... View more
09-27-2013
10:59 AM
|
0
|
0
|
1083
|
|
POST
|
For a curve, I want to get the point at a distance from the curve's start point. A piece of code is below: ICurve pCurve = (ICurve)feature.ShapeCopy; // feature is a IFeature IPoint startPoint = pCurve.FromPoint; IPoint toPoint = pCurve.ToPoint; double distanceOnCurve = 0.4 * pCurve.Length; double offset = double.NaN; bool isRightSide = false; bool asRatio = false; pCurve.QueryPointAndDistance(esriSegmentExtension.esriNoExtension, startPoint, asRatio, toPoint, ref distanceOnCurve, ref offset, ref isRightSide); But I don't know how the result be returned as a Point. Appreciate in advance if you can provide a hint.
... View more
09-27-2013
09:24 AM
|
0
|
3
|
1389
|
|
POST
|
Using the code from // http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000004m0000000, I created ESRI.ArcGIS.Location.IDatabaseLocatorWorkspace. Using the code below, I opened a feature class IWorkspace ws = LocWS.Workspace; // LocWS - ESRI.ArcGIS.Location.IDatabaseLocatorWorkspace IFeatureWorkspace fWs = (IFeatureWorkspace)ws; IFeatureClass fClass = fWs.OpenFeatureClass(fName); Then, I need to cast the feature class as a ESRI.ArcGIS.Location.RouteMeasureLineLocationClass. However, from the ArcObjects diagram, I can't get any hint how to do it. Do you have any idea how to cast a FeatureClass as ESRI.ArcGIS.Location.RouteMeasureLineLocationClass? Thanks.
... View more
09-27-2013
06:11 AM
|
0
|
1
|
934
|
|
POST
|
As the continuation of 2nd post of the thread, I followed the recommendation in the error message, used interface and then did the casting, like that: ESRI.ArcGIS.Location.IRouteEventSource rtEvtSourceClass; rtEvtSourceClass = (ESRI.ArcGIS.Location.IRouteEventSource)fc; Then, got new error: Unable to cast COM object of type 'System.__ComObject' to interface type 'ESRI.ArcGIS.Location.IRouteEventSource'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{641755F0-B7DE-11D3-9F7C-00C04F6BDF06}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). Then, I opened the Registry Editor to search the {641755F0-B7DE-11D3-9F7C-00C04F6BDF06}. The result shows that it is at Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Wow6432Node\Interface\. For the 'No such interface supported ...', I referred to http://www.huggill.com/2012/09/06/solving-an-exception-occurred-in-publishing-no-such-interface-supported-exception-from-hresult-0x80004002-e_nointerface-with-visual-studio-2012-rc/ provided procedure: 1. Run Command Prompt as Administrator 2. regsvr32 actxprxy.dll 3. Restart Visual Studio The problem is still there and the error message is the same. What I should do next? Welcome your suggestion or hint. Thanks.
... View more
09-26-2013
10:36 AM
|
0
|
0
|
852
|
|
POST
|
From the ArcObjects diagram (http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#//003100000138000000), it is known that the ESRI.ArcGIS.Location.RouteEventSourceClass is a sub-class of FeatureClass. In this piece of code below: ESRI.ArcGIS.Location.RouteEventSourceClass rtEvtSourceClass = (ESRI.ArcGIS.Location.RouteEventSourceClass)fc; // fc - a feature class Got InvalidCastException: Unable to cast COM object of type 'System.__ComObject' to class type 'ESRI.ArcGIS.Location.RouteEventSourceClass'. COM components that enter the CLR and do not support IProvideClassInfo or that do not have any interop assembly registered will be wrapped in the __ComObject type. Instances of this type cannot be cast to any other class; however they can be cast to interfaces as long as the underlying COM component supports. Why can't cast here? Thanks.
... View more
09-26-2013
09:31 AM
|
0
|
0
|
852
|
| 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
|