示例#1
0
        //private void MainMapImage_MouseMove(IPoint WorldPos, MouseEventArgs ImagePos)
        //{
        //    CoordinatesLabel.Text = String.Format("Coordinates: {0:N5}, {1:N5}", WorldPos.X, WorldPos.Y);
        //}

        private void AddNewRandomGeometryLayer_Click(object sender, EventArgs e)
        {
            String layerName;
            String connectionInfo;

            RandomFeatureLayerFactory.GetLayerNameAndInfo(out layerName, out connectionInfo);
            addLayer(_layerFactoryCatalog[RandomLayerTypeKey].Create(layerName, connectionInfo));
        }
示例#2
0
 private void registerLayerFactories()
 {
     //ConfigurationManager.GetSection("LayerFactories");
     _layerFactoryCatalog[ShapeFileLayerTypeKey] = new ShapeFileLayerFactory(_geometryFactory);
     _layerFactoryCatalog[RandomLayerTypeKey]    = new RandomFeatureLayerFactory(_geometryFactory);
 }
示例#3
0
 private void registerLayerFactories()
 {
     //ConfigurationManager.GetSection("LayerFactories");
     _layerFactoryCatalog[ShapeFileLayerTypeKey] = new ShapeFileLayerFactory(_geometryFactory);
     _layerFactoryCatalog[RandomLayerTypeKey] = new RandomFeatureLayerFactory(_geometryFactory);
 }