0

I'm using MapWinGis with C++/MFC.

I insert a lot of shapes into a ShapeFile(type is SHP_POINT).

When zoom out, distance between shapes become small and small. When small enough, some shapes cannot be displayed on the map, they become invisible.

At this time, if I select shapes by polygon, only the visible shapes can be selected, but I want to select all shapes inside the polygon.

So, is it possible to make MapWinGis not to hide shapes when zoom out?

Or, is it possible to select invisible shapes?

Thanks!

xuqiang
  • 102
  • 1
  • 6

1 Answers1

1

In order to select all shapes inside a polygon, you have first to make sure you allow collision between point symbols on the map like the below sample code:

// sample code    
var sf = new Shapefile();
sf.CreateNew("", ShpfileType.SHP_POINT);
sf.CollisionMode = tkCollisionMode.AllowCollisions;

As in MapWinGis Documentation

CollisionMode : [AllowCollisions, LocalList, GlobalList]
tkCollisionMode Shapefile.CollisionMode

(Gets or sets collision mode for point symbols for point, multi-point shapefiles and labels).

Ahmed GIS
  • 513
  • 4
  • 9