Hello,
If I try to open an existing Shapefile with - layer.RequireIndex = false - (currently exported from Arcgis, without any IndexFiles (ids, idx) I got an error after Map.Refresh "The input double value is out of range, Parametername maxX".
If I create these Indexfiles and set layer.RequireIndex = true, there are no errors.
So my question: Is this now not possible to open Shapefiles without Indexfiles? If so, this is really bad. Often our customers have not "write access" to the gis-folders.
ShapeFileFeatureLayer layer = new ShapeFileFeatureLayer(@"d:\kram_linie.shp");false;ApplyUntilZoomLevel.Level20;try
{
((
}
LayerOverlay)winformsMap1.Overlays[0]).Layers.Add("test", layer);finally
{
winformsMap1.Overlays[0].Lock.ExitWriteLock();
}
// allgemein
this.SetCurrentExtent();this.winformsMap1.Refresh();
layer.RequireIndex =
SetStyleByWellKnownType(layer);
layer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel =
winformsMap1.Overlays[0].Lock.EnterWriteLock();