Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 private void registerLayerFactories()
 {
     //ConfigurationManager.GetSection("LayerFactories");
     _layerFactoryCatalog[ShapeFileLayerTypeKey] = new ShapeFileLayerFactory(_geometryFactory);
     _layerFactoryCatalog[RandomLayerTypeKey]    = new RandomFeatureLayerFactory(_geometryFactory);
 }
Ejemplo n.º 3
0
 private void registerLayerFactories()
 {
     //ConfigurationManager.GetSection("LayerFactories");
     _layerFactoryCatalog[ShapeFileLayerTypeKey] = new ShapeFileLayerFactory(_geometryFactory);
     _layerFactoryCatalog[RandomLayerTypeKey] = new RandomFeatureLayerFactory(_geometryFactory);
 }