How to cast a FeatureClass as ESRI.ArcGIS.Location.RouteMeasureLineLocationClass?

504
1
Jump to solution
09-27-2013 06:11 AM
ShaningYu
Frequent Contributor
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.
0 Kudos
1 Solution

Accepted Solutions
ShaningYu
Frequent Contributor
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 solution in original post

0 Kudos
1 Reply
ShaningYu
Frequent Contributor
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.
0 Kudos