Im trying to open a tab file with all the blocks of the city. But nothing happens, nothing shows. ive already open the tabfile in the giseditor and again nothing shows up, then i convert the tab file to shapefile with mapinfo. and In the web application nothing happens but this time in the gis editor everything seems to be ok.
here is my code. The shapefile has.64000 blocks and im attaching the tab file with 10% of the map.
01.
//shape part
02.
03.
ShapeFileFeatureLayer fuenteDatos =
new
ShapeFileFeatureLayer(@
"D:\SHP\Distritofederal\manzanasNuevo.shp"
);
04.
ManagedProj4Projection prj =
new
ManagedProj4Projection();
05.
prj.InternalProjectionParametersString = ManagedProj4Projection.GetGoogleMapParametersString();
06.
prj.ExternalProjectionParametersString = ManagedProj4Projection.GetWgs84ParametersString();
07.
fuenteDatos.FeatureSource.Projection = prj;
08.
09.
fuenteDatos.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Urban1;
10.
fuenteDatos.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level10;
11.
Map1.StaticOverlay.Layers.Add(fuenteDatos);
12.
13.
14.
/// tab part
15.
16.
//TabFeatureLayer.BuildIndexFile(@"D:\SHP\Distritofederal\manzanasNuevo.TAB");
17.
18.
19.
//TabFeatureLayer manzana = new TabFeatureLayer(@"D:\SHP\Distritofederal\manzanasNuevo.TAB");
20.
//manzana.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.FromArgb(100, GeoColor.SimpleColors.Green), GeoColor.SimpleColors.Green);
21.
//manzana.ZoomLevelSet.ZoomLevel01.DefaultTextStyle = TextStyles.CreateSimpleTextStyle("MANZANA", "Arial", 12, DrawingFontStyles.Regular, GeoColor.StandardColors.Black, GeoColor.FromArgb(100, GeoColor.SimpleColors.Green), 2, 0, -8);
22.
23.
//manzana.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
24.
25.
//ManagedProj4Projection prj = new ManagedProj4Projection();
26.
//prj.InternalProjectionParametersString = ManagedProj4Projection.GetGoogleMapParametersString();
27.
//prj.ExternalProjectionParametersString = ManagedProj4Projection.GetEpsgParametersString(4326);
28.
//manzana.FeatureSource.Projection = prj;
29.
30.
//Map1.StaticOverlay.IsBaseOverlay = false;
31.
//Map1.StaticOverlay.Layers.Add(manzana);
Distritofederal.zip (1.61 MB)