示例#1
0
文件: Photo.cs 项目: hakbra/SGIS
        public Photo(System.Drawing.Image i, ScreenManager.SGISEnvelope b)
        {
            Pic = i;
            Bounds = new ScreenManager.SGISEnvelope(b);

            OgcCompliantGeometryFactory fact = new OgcCompliantGeometryFactory();
            Geometry = fact.ToGeometry(b);
        }
示例#2
0
文件: SGIS.cs 项目: hakbra/SGIS
 public SGIS()
 {
     InitializeComponent();
     // maximise window on startup
     ScreenManager = new ScreenManager();
     photos = new List<Photo>();
     Layers = new BindingList<Layer>();
     // initialise projectiond to UTM 33N
     SRS = Proj4CSharp.Proj4CSharp.ProjectionFactoryFromName("EPSG:32633"); // UTM 33N
     SelectionChanged += selectionChangedHandler;
     mapBgColor = Color.White;
     AcceptButton = null;
     CancelButton = null;
     this.WindowState = FormWindowState.Maximized;
 }