- Practical GIS
- Gábor Farkas
- 370字
- 2021-07-02 22:49:08
Installing on Windows
Installing the required software on Windows only requires a few installers as most of the packages are bundled into the OSGeo4W installer.
- First of all, we have to download the 32-bit installer from https://trac.osgeo.org/osgeo4w/ as this is the only architecture where an OSGeo version of Apache is bundled.
- Opening the installer, we can choose between different setups. For our cause, we should choose Advanced Install. When we reach the Select Packages section, we must choose the following packages as a minimum:
- Desktop--grass, qgis
- Web--apache, qgis-server
- The next page tells us we don't have to bother with dependencies as the installer selected them for us automatically.
- The last step can be quite troublesome as there isn't a general solution; we have to configure Apache and QGIS Server if they don't want to collaborate (opening http://localhost/qgis/qgis_mapserv.fcgi.exe returns an Internal Server Error or it simply cannot be reached). For a good start, take a look at the official tutorial at http://hub.qgis.org/projects/quantum-gis/wiki/QGIS_Server_Tutorial.
Don't worry if you end up with no solutions, we will concentrate on GeoServer, which runs perfectly on Windows. Just make sure Apache is installed and working (i.e. http://localhost returns a blank page or the OSGeo4W default page), as we will need it later.
If you would like to install the 64-bit version of Apache separately, you can find suggestions on compiled 64-bit binaries at https://httpd.apache.org/docs/current/platform/windows.html.
- The next thing to consider is the PostgreSQL stack. We can download the installer from https://www.postgresql.org/download/windows/, where the EnterpriseDB edition comes with a very handy Stack Builder. After the installation of PostgreSQL, we can use it to install PostGIS. We can find PostGIS in the Spatial Extensions menu. The default installer comes with pgAdmin 4, while we will use pgAdmin 3 in this book. The two look and feel similar enough; however, if you would like to install the latter, you can download it from https://www.pgadmin.org/download/pgadmin-3-windows/.
The last thing to install is GeoServer, which is such an easy task that we won't discuss it. You can download the installer from http://geoserver.org/release/stable/. Make sure you have Java 8 ( https://java.com/en/download/) before starting it!
推薦閱讀
- CMDB分步構(gòu)建指南
- MySQL 8從入門到精通(視頻教學版)
- C語言程序設(shè)計案例精粹
- Visual FoxPro程序設(shè)計
- SQL Server從入門到精通(第3版)
- Working with Odoo
- Java EE核心技術(shù)與應用
- Visual FoxPro程序設(shè)計習題集及實驗指導(第四版)
- 深入分布式緩存:從原理到實踐
- HTML5+CSS3 Web前端開發(fā)技術(shù)(第2版)
- App Inventor創(chuàng)意趣味編程進階
- Mastering Akka
- 精通MySQL 8(視頻教學版)
- GitHub入門與實踐
- Java Web開發(fā)教程:基于Struts2+Hibernate+Spring