Hello,
I'm currently using an Geo.MapGuide.MgFeatureReader to extract the properties of the Feature Data Class of selected objects. The selection contains, though I'm successful in extracting over every "*" property, The last Property returns "OSGeo.MapGuide.MgByteReader". I'm at a lose as to how to access the values and/or collection.
I must state, I am fairly new to the API, so any help would be most appreciated. Thanks in advance.
Michael Luckett
Solved! Go to Solution.
Hello,
I'm currently using an Geo.MapGuide.MgFeatureReader to extract the properties of the Feature Data Class of selected objects. The selection contains, though I'm successful in extracting over every "*" property, The last Property returns "OSGeo.MapGuide.MgByteReader". I'm at a lose as to how to access the values and/or collection.
I must state, I am fairly new to the API, so any help would be most appreciated. Thanks in advance.
Michael Luckett
Solved! Go to Solution.
//Exemple Point3d from MgProperty
MgProperty property= new MgGeometryProperty("GEOMETRY", Reader.GetGeometry("GEOMETRY"));
MgByteReader byteReader = ((MgGeometryProperty)property).Value;
MgAgfReaderWriter agfReader = new MgAgfReaderWriter();
MgGeometry geom = agfReader.Read(byteReader);
MgPoint mPt = (MgPoint)geom;
MgCoordinate mCoor = mPt.GetCoordinate();
Autodesk.AutoCAD.Geometry.Point3d ptPos = new Autodesk.AutoCAD.Geometry.Point3d(mCoor.X, mCoor.Y, mCoor.Z);
//Exemple Point3d from MgProperty
MgProperty property= new MgGeometryProperty("GEOMETRY", Reader.GetGeometry("GEOMETRY"));
MgByteReader byteReader = ((MgGeometryProperty)property).Value;
MgAgfReaderWriter agfReader = new MgAgfReaderWriter();
MgGeometry geom = agfReader.Read(byteReader);
MgPoint mPt = (MgPoint)geom;
MgCoordinate mCoor = mPt.GetCoordinate();
Autodesk.AutoCAD.Geometry.Point3d ptPos = new Autodesk.AutoCAD.Geometry.Point3d(mCoor.X, mCoor.Y, mCoor.Z);
Can't find what you're looking for? Ask the community or share your knowledge.