Пример #1
0
        public MainForm()
        {
            InitializeComponent();

            tscbSearchLayers.SelectedIndex = 0;

            //EGIS.ShapeFileLib.ShapeFile.UseMercatorProjection = false;
            //this.miMercatorProjection.Checked = EGIS.ShapeFileLib.ShapeFile.UseMercatorProjection;
            this.sfMap1.UseMercatorProjection = false;
            this.miMercatorProjection.Checked = false;
            this.useNativeFileMappingToolStripMenuItem.Checked = EGIS.ShapeFileLib.ShapeFile.MapFilesInMemory;
            LoadRecentProjects();

            //EGIS.ShapeFileLib.UtmCoordinate utm =  EGIS.ShapeFileLib.ConversionFunctions.LLToUtm(EGIS.ShapeFileLib.ConversionFunctions.RefEllipse, -37.45678, 145.123456);
            //Console.Out.WriteLine("{0},{1}", utm.Northing, utm.Easting);
            //Console.Out.WriteLine("{0},{1}", (float)utm.Northing, (float)utm.Easting);

            //EGIS.ShapeFileLib.LatLongCoordinate ll = EGIS.ShapeFileLib.ConversionFunctions.UtmToLL(EGIS.ShapeFileLib.ConversionFunctions.RefEllipse, utm);
            //Console.Out.WriteLine("{0},{1}", ll.Latitude, ll.Longitude);
            //Console.Out.WriteLine("{0},{1}", (float)ll.Latitude, (float)ll.Longitude);
            //EGIS.ShapeFileLib.LatLongCoordinate ll2 = new LatLongCoordinate();
            //ll2.Latitude = (float)ll.Latitude;
            //ll2.Longitude = (float)ll.Longitude;
            //double dist = EGIS.ShapeFileLib.ConversionFunctions.DistanceBetweenLatLongPoints(EGIS.ShapeFileLib.ConversionFunctions.RefEllipse, ll, ll2);
            //Console.Out.WriteLine("dist = " + dist);

            recordAttributesForm = new RecordAttributesForm();
            //recordAttributesForm.Show(this);
            recordAttributesForm.Owner = this;
            recordAttributesForm.VisibleChanged += new EventHandler(recordAttributesForm_VisibleChanged);

        }
Пример #2
0
        public MainForm()
        {
            InitializeComponent();

            tscbSearchLayers.SelectedIndex = 0;

            //EGIS.ShapeFileLib.ShapeFile.UseMercatorProjection = false;
            //this.miMercatorProjection.Checked = EGIS.ShapeFileLib.ShapeFile.UseMercatorProjection;
            this.sfMap1.UseMercatorProjection = false;
            this.miMercatorProjection.Checked = false;
            this.useNativeFileMappingToolStripMenuItem.Checked = EGIS.ShapeFileLib.ShapeFile.MapFilesInMemory;
            LoadRecentProjects();

            //EGIS.ShapeFileLib.UtmCoordinate utm =  EGIS.ShapeFileLib.ConversionFunctions.LLToUtm(EGIS.ShapeFileLib.ConversionFunctions.RefEllipse, -37.45678, 145.123456);
            //Console.Out.WriteLine("{0},{1}", utm.Northing, utm.Easting);
            //Console.Out.WriteLine("{0},{1}", (float)utm.Northing, (float)utm.Easting);

            //EGIS.ShapeFileLib.LatLongCoordinate ll = EGIS.ShapeFileLib.ConversionFunctions.UtmToLL(EGIS.ShapeFileLib.ConversionFunctions.RefEllipse, utm);
            //Console.Out.WriteLine("{0},{1}", ll.Latitude, ll.Longitude);
            //Console.Out.WriteLine("{0},{1}", (float)ll.Latitude, (float)ll.Longitude);
            //EGIS.ShapeFileLib.LatLongCoordinate ll2 = new LatLongCoordinate();
            //ll2.Latitude = (float)ll.Latitude;
            //ll2.Longitude = (float)ll.Longitude;
            //double dist = EGIS.ShapeFileLib.ConversionFunctions.DistanceBetweenLatLongPoints(EGIS.ShapeFileLib.ConversionFunctions.RefEllipse, ll, ll2);
            //Console.Out.WriteLine("dist = " + dist);

            recordAttributesForm = new RecordAttributesForm();
            //recordAttributesForm.Show(this);
            recordAttributesForm.Owner           = this;
            recordAttributesForm.VisibleChanged += new EventHandler(recordAttributesForm_VisibleChanged);
        }