Hot answers tagged

27

Short answer Yes Slightly longer answer The two applications save all their settings in different places and when they use different versions of the same library, these library versions can safely be installed side-by-side. It is encouraged and recommended to test QGIS 3.x (either current LTR or current release) (2.99 while there is no official release) ...


26

It sounds as if your administrator has installed the database successfully and provided you with the details you will need. They may have also configured PostGIS during the install as well, but if not, you can check that as you go through these steps. First ask your administrator to install pgAdmin this will allow you to access your PostgreSQL database with ...


24

You don't have to worry about any of those prerequisites when installing PostGIS on Windows. You just need to install the Postgresql installer for your platform. You can then launch the Application Stack Builder to install PostGIS. You can find more detailed installation instructions at the Boston GIS web site.


23

QGIS, as distributed by OSGeo4W, usually comes with its own Python installation and its own packages that are independent of your "regular" Python installation. The easiest way to install a Python package into the OSGeo4W distribution is to open the OSGeo4W Shell and use pip from there. This will install the package into the Python distribution QGIS uses, ...


23

Probably your QGIS is trying to import your widget from .h file like in c++. Please open your .ui file and find lines: <customwidget> <class>QgsProjectionSelectionWidget</class> <extends>QWidget</extends> <header>qgsprojectionselectionwidget.h</header> </customwidget> Then in your header tag ...


22

In QGIS you can use the Affine functions for scaling vector features. In the Vector menu: And the dialog looks like this: If you enter 1.3 in both the "Scale X" and "Scale Y" boxes, then the layer (or just the selected feature(s) will be scaled up by 130%. This operation will scale the features proportionally, but be aware that depending on the coordinate ...


20

You can make sure all folders in your hard drive and your .qgis2 folder (C:/Users/You/.qgis2) are deleted. You could also delete the Registry entries for QGIS by running the regedit program and searching for QGIS: Hopefully when you restart your computer, you will be able to reinstall QGIS again. Hope this helps!


20

The examples provided are for executing the scripts in a Jupyter/IPython notebooks environment. In a normal Python environment, you need to import matplotlib to show the image import geopandas as gpd world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres')) world.plot() import matplotlib.pyplot as plt plt.show()


17

I use the following settings to "Start a program" in the task scheduler. I find it best to use the full path to the Python executable to be safe. Program/script: Full path to Python.exe, C:\Python27\ArcGIS10.2\python.exe Arguments: Name of script, script.py Start in: Location of script.py, something like C:\path\to\script Also, if you pass in arguments ...


15

Another option is to install the Anaconda Python distribution which has packages for GDAL. If you are going to be doing a lot of work using GDAL with other Python packages (scipy, pandas, scikit-learn etc.,) this might be a better option than OSGeo4W. On the other hand if you want to use Python in combination with a number of open source remote sensing and ...


13

Numpy is installed by default in QGIS (Standalone version, OSGeo4W version). For rasterio, there are many problems. I know that rasterio is powerful and easy to use (I use it) but why rasterio in a QGIS plugin while you have all the functions of PyQGIS ? (it was designed for the Python shell or for scripts, not to be used with QGIS/PyQGIS, as Fiona for the ...


12

I find OSGEO4W a poor solution because it creates a whole parallel universe, almost like a virtual machine. I was able to install GDAL and use it in python following the steps outlined here (this is the link provided by @sys49152). It sends you to gisinternals.com. Take the link to "stable releases" to get to: http://www.gisinternals.com/release.php Now ...


12

If you have installed QGIS via OSGeo4W, I suggest you to follow this work flow (I've just tested it on Windows 7): Open the OSGeo4W Shell. Start->All programs->OSGeo4W->OSGeo4W Shell. Set environment variables. My preferred way is to execute this bat file (updated 2016.11.03: this bat file) from the OSGeo4W Shell. As you can see, the file sets ...


12

Add an empty argument in the first approach (because gdal_merge.py parses arguments starting from 1 and not 0): import sys sys.path.append('C:\\OSGeo4W64\\bin') import gdal_merge as gm gm.main(['', '-o', 'merged.tif', 'N00W078.tif', 'N00W079.tif']) Join the path of gdal_merge.py in the second approach: import os, subprocess gm = os.path.join('C:\\','...


11

Here is another tutorial which explains very simple and easy way of installing GDAL v1.8 with Python v2.7 on a Windows XP/7 system. http://cartometric.com/blog/2011/10/17/install-gdal-on-windows/


11

In Settings -> Options -> System of QGIS, you will be able to see the read only current environment variables of your system; precisely the folder where your temporary data are being written (see next image). You can edit the path of these folders by using the Control Panel of Windows (filtering by env at the browser); see next image.


11

You could try merging the rasters into one: From the toolbar: Raster > Miscellaneous> Merge From the Processing Toolbox: GDAL/OGR > Miscellaneous > Merge From the GDAL console: gdal_merge.py -o merged.tif input1.tif input2.tif Or build a virtual raster: Raster > Miscellaneous> Build Virtual Raster


10

Here are some general notes for un-installing the two types of installs: OSGeo Network OSGeo Network version, this version may not be un-installed from Control Panel>Programs and Features option. To un-install Run osgeo4w-setup-x86.exe (same .exe you ran to install the app), choose Advanced Install option take all defaults under Select Packages under ...


9

I suspect you are running the latest PostgreSQL Patch released yesterday. I have confirmed an incompatiblity issue with latest release OpenSSL and the libcurl we ship - detailed here - http://www.postgresonline.com/journal/archives/364-PostGIS-2.2-Windows-users-hold-off-on-installing-latest-PostgreSQL-patch-release.html We have compiled a new version of ...


8

Basically pick a computer as a server, install the OS and database software, open the firewall for port 5432, modify the postgresql.conf and pg_hba.conf files to allow external access, and serve the data to the other computers. These are the same instructions for setting up a server on either Windows or Linux, except one OS is free. Most folks would pick ...


8

There are comprehensive uninstall programs available which do thorough searches and removal for all leftover files and registry values which should solve the problem. An example is Revo Uninstaller.


8

The two main alternatives for installing GDAL on Windows are to use OSGeo4W installer or to use binary packages from GISInternals.com. Installation with the packages from GIS Internals is perhaps a little easier than with OSGeo4W. The site offers MSI installers but also zipped packages which can just be unzipped to disk and run even without administrator ...


8

Open the Windows Settings menu by pressing the Windows Key and “I” Click on "System" (Display, notifications, apps, power) Click “Notifications & Actions” menu Wait a few seconds until Windows finds and lists all apps which uses "Notifications" Scroll down list of apps and find QGIS Turn it off Enjoy!


7

Most of the GIS packages I have used have excellent mapping tools. I can produce very good maps with QGIS for instance. So that's an option, if you can't run to the cost of ArcGIS. Yes it is a little more fiddly to get the exact result you want but excellent maps are perfectly possible. I am able to produce large maps with QGIS - but you have to ...


7

HDF4 support is not available in GDAL by default. If you're using the GDAL binaries and python libraries from GISInternals, these do not have HDF4 support compiled in (at the time this answer was originally posted in July 2013, however HDF4 support was added to the GISInternal GDAL build in Nov. 2013). HDF4 support is compiled in the OSGeo4W GDAL binaries. ...


7

All Windows operating systems (32-bit/64-bit) are supported by Quantum GIS. I could install QGIS on latest Windows 8.1 Preview too.


7

In a command window, type set > set.txt to get a list of all environment variables you have set. Your python installation may have set some values that QGIS does not like. The PATH variable is save, because qgis.bat sets its own path variable, but PYTHONPATH or something else may be harmful. Once you found a link to C:\Python27, go to the system ...


7

In the OSGeo4W installer, there is an advanced install option which allows you to chose exactly what should be installed. The other installers will just install everything.


7

This page, which lists general command-line options, says there's an "--optfile" argument: Read the named file and substitute the contents into the command line options list. Lines beginning with # will be ignored. Multi-word arguments may be kept together with double quotes. Putting your GCPs arguments in a text file might let you work around the ...


7

You downloaded the source code, not a prebuilt binary. If you read the PDAL download page you linked to you will see: Binaries ... Windows Windows builds are available via Conda Forge (64-bit only). Install Conda (or Miniconda), run a Conda shell, install PDAL with conda install -c conda-forge pdal and you should be good to go. See the Conda instructions ...


Only top voted, non community-wiki answers of a minimum length are eligible