Tag Info

Hot answers tagged

8

Sure it is. Depending on what you need: zoom to whole layer right click on layer in Layers list and first item is "Zoom to layer" zoom to selected feature(s) select feature in map and click on icon "Zoom to selection" in the main toolbar or right click on layer in layers list and choose "Open Attribute Table" (there is also icon in the main ...


6

You should be able to do a simple 'select by expression' where DATECOLUMN like "% 12%" This is assuming your date is a string column. Essentially; the query is using the 'pattern' that is formed, and saying "Find me every record where there's a space, followed by 12, follow by a colon. Since your data is in 24h format, the only records criteria that ...


5

File Geodatabase in QGIS 2.4 Note: Use Directory rather than File Once the file geodatbase is loaded save the shapefile


4

You can right click with a Mac, hold 'ctrl' and click. Or use two fingers to tap on the touch pad, or plug in a mouse with two buttons. When you do that, you right click your layer (that has selected items) and choose 'save as' then check the box 'save only selected features.'


2

You can use alternative GDAL driver "OpenFileGDB" which supports also other projections http://www.gdal.org/drv_openfilegdb.html.


2

Ok, found at least one working solution. After finding that on Linux everything is fine suspected the default encoding in Windows. So I opened the QGIS project file (*.qgs) in PSPad and found this in layer description: <provider encoding="System">ogr</provider> So probably QGIS uses CP1250 encoding as default in Windows while the database is ...


2

See How to obtain rotation field name defined in the Labels "Data Defined" section in pyqgis?. You will need to refresh the map canvas at the end of your code to see changes. You are setting the palyr.fieldName to 'name,' which will need to be a valid attribute table field. Please verify. You mention adding the labeling settings to ...


2

One option that may be a bit faster (less clicks) or you could call from a script would be to use ogr2ogr command (using OSGeo4wShell (which comes with installation of QGIS)). ogr2ogr -f "ESRI Shapefile" C:/Temp/Shps C:/Temp/test.gdb If you want to export out a subset you may use the same command above but at the end list out the table name(s) (e.g. ...


2

If you set the project CRS in QGIS to EPSG:32718 (UTM zone 18), you get the same coordinates as reported by Google Earth. You might get different results if you have chosen another CRS. There are several CRS that are called UTM 18S (=South), but only one is based on the WGS84 ellipsoid. The negative Y coordinate looks like a UTM 18N (=North) CRS. For QGIS, ...


2

Google satellite (EPSG:3857) is not a good idea. The units are metres, but only at the aequator. The more to the North you go, the greater the difference gets. Alternatively, you can use a custom CRS in transverse mercator projection, with latitude and longitude of origin (in degrees) at the point where your dxf file has its origin: +proj=tmerc +lat_0=... ...


1

The ETOPO1 dataset merges topography and bathymetry in one elevation model. Quoting the home page: ETOPO1 is a 1 arc-minute global relief model of Earth's surface that integrates land topography and ocean bathymetry. It was built from numerous global and regional data sets, and is available in "Ice Surface" (top of Antarctic and Greenland ice ...


1

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 ...


1

Since you mentioned address search, you might be interested in the search plugins using Nominatim to geocode addresses: OSM place search or osmSearch


1

The measuring tool has some advanced logic to calculate distances from lat/lon coordinates, all other tools just use the units of the layer (degrees in your case). For all britain, EPSG:27700 should be the best. The result will be in metres. But: Don't use Set CRS for Layer, instead Save As.. under another name with changed CRS.


1

That's a feature in pgadmin/PostGIS - it won't show geometry column values if they are too long. It's mentioned in the PostGIS manual http://postgis.net/docs/manual-dev/PostGIS_FAQ.html#pgadmin_shows_no_data_in_geom


1

I get the same nasty effect if I load the data with Add vector layer using the ogr driver: <provider encoding="System">ogr</provider> Alternatively (and the preferred way) I can load the data with Add spatialite layer. The encoding line changes to: <provider encoding="System">spatialite</provider> which is wrong ...


1

SAGA and GRASS in particular are plugins to QGIS (sister programs for which QGIS effectively provides a seamless front end). Since these are used in the 'Processing' toolbox, I highly recommend them, although QGIS will work quite happily without them... but you loose some of the processing capabilities, especially for raster functions. If you used osgeo4w ...


1

You need to use Vector->GeoprocessingTools->Dissolve and dissolve by an attribute (Dissolve Field) to merge subdivided polygons.


1

I modified the redistribute_selection() function above to make ~/.qgis2/python/mytools.py : from qgis.core import (QgsFeature, QgsGeometry, QgsVectorLayer, QgsMapLayerRegistry, QgsField) from PyQt4.QtCore import QVariant from qgis.utils import iface import math import numpy def ...


1

myVectorLayer = QgsVectorLayer("polygon", "mypoly", 'ogr') does not create a valid vector layer, therefore mySymbol1 = QgsSymbolV2.defaultSymbol(myVectorLayer.geometryType()) does not return a valid symbol and causes the error you see. Replace "polygon" with a valid file path.


1

Option 1 You have discovered one option - adding 255 to the "Additional No Value" in Layer Properties/Transparency. Option 2 Another option is to use a VRT, define 255 as the source nodata value and define 0 as the VRT no data value using gdalbuildvrt. For example: gdalbuildvrt -srcnodata 255 -vrtnodata 0 out.vrt in.tif To do this on all tiffs in a ...


1

To start with, make a tileindex shapefile of your images with the gdaltindex utility. Edit the shapefile by adding new columns for your metadata like to which layer each image belongs to. Add the shapefile into your project and query it with the identify tool for finding the image metadata.


1

This functionality is under the "Show all features" Button:


1

I may have a solution for you. If flow in one direction is consistently lower than in the other direction, this would work. I think you have much of the answer included in the question. I would attempt to duplicate the layer and draw the limited flow on top of the greater flow and have them both symbolized by the flow value.


1

You can use the Dissolve tool from QGIS: Vector > Geoprocessing Tools > Dissolve


1

The distortion is caused by your selection of target SRS, and the CRS you are using in your QGIS project. As soon as you are using a different CRS in QGIS as the one used to create your the raster (jpg file), you will see this distortion. This normal behaviour. If you're setting the same CRS to the QGIS project, the image shown will resemble your original ...


1

Sort of depends where you are (which country) on what software and methods are usually used or are standardised on - some councils, state governments and governments have required methods. Also what sort of area are you looking at modelling ? Urban, rural ??? eg for Australia have a read of the www.arr.org.au site. They are in the process of releasing ...


1

Try this while connecting: currentIndexChanged function pass 1 argument i.e is changed index and while defining build_Layer_Index_Changed pass two arguments (self, index). QtCore.QObject.connect(dlg2.Sel_Build_Layer, QtCore.SIGNAL("currentIndexChanged(int)"), self.build_Layer_Index_Changed())



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