BCB5 与MAPX 添加Feature 的问题
How to use BCB 5 with mapx 5.0 to add a Feature in a Layer
String strFeatureCMapXPointDisp point; CMapXFeature * fNewSymbol = NULL; double X,Y; X=1.0; Y=1.0; point.Bind(StringToOleStr("MapX.Point.5")); //point = Map1->ConvertCoordP(Variant(X), Variant(Y), miScreenToMap); point.set_X(double(X)); point.set_Y(double(Y));<br> fNewSymbol = Map1->FeatureFactory->CreateSymbol(EmptyParam,EmptyParam); fNewSymbol->set_Point(point);//error. it can not cover CMapXPointDisp to CMapXPointPtr fNewSymbol= Map1->FeatureFactory->CreateCircularRegion(miCircleTypeMap,point, Variant(30),EmptyParam, Variant(99), EmptyParam); Map1->Layers->_Item(Variant(1))->AddFeature(fNewSymbol, EmptyParam);