//提取方法
SEARCH_RECTANGLE_TOOL :
begin
rc := CreateOleObject('MapX.Rectangle.4');
rc.Set(X1, Y1, X2, Y2);
for i := 1 to frame_map1.mapx.Layers.Countdo
begin
lyr := frame_map1.mapx.Layers.Item(i);
ftrs := lyr.SearchWithinRectangle(rc,miSearchTypeEntirelyWithin);
//MiSelectionNew
for j := 1 to ftrs.Countdo
begin
...
end;
//再次定位方法
custLayer := Mapx.Layers.Item(layer_str);
{ 查找}
stateFeature :=
Mapx.Layers.Item(layer_str).Find.Search(trim(object_str),miSearchTypeEntirelyWithin );
if stateFeature.FindRC mod 10 <> 1 then
{ 没有找到完全匹配项 }
begin
GoTo_position:=0;
exit;
end
//问题依旧是 有些实体无法找到,但是能提取出来