Hot answers tagged

8

In your label expression enter: "(" & FieldName & ")" where FieldName is the name of the field you're trying to label. Double-click the field from the fieldlist to ensure it enters the field name in the correct format.


6

Short and sweet: Right-click on the layer in the Layers Panel and select Change vector datasource. In the dialog box that appears, just hit OK without changing any of the settings. Basically, you are "changing" the vector datasource to what it already was, but this forces QGIS to reload the layer definition. Tested in QGIS 2.14 on Linux Mint 17.2.


5

You can use the GroupStats plugin to calculate these things of statistics as it's pretty much a pivot table for QGIS. You can download/install this from the toolbar: Plugins > Manage and Install Plugins Example: Here's an attribute table: And here's how to calculate the count of each Inn (or accomodation) per Province:


5

You can set the Attribute Table to be in a dock window which allows you to 'fix' to certain positions. You can set this by going to: Settings > Options > Data Sources > Open attribute table in a dock window You will need to restart QGIS for this to take effect: Now when you access the Attribute Table, it may appear at the bottom. Just drag ...


4

I didn't test it it, but I think the MMQGIS plugin can merge a CSV and a vector layer (go to the Attribute Join from CSV File section): It should output a vector layer with the attributes of the original layer and the CSV file, joined according to a field.


4

You can use the Count Points in Polygon process from the Vector->Analysis -> Points in Polygon menu. You simply put your municipality layer in as the polygon layer, and the accommodation as the point layer. Select an output shapefile and then run it. Finally you can merge the file back into your municipalities if you need to.


3

Usually join attribute has a one-to-one or a many-to-one relationship as shown in the documentation in Vince comment, however there is other solutions presented here you can try it, which is as follows: Open ArcToolbox. Go to "Data Management Tools". Click on "Layers and Table Views". Double click "Make Query Table". Select the correct "Input Tables" you ...


3

Assuming that your working with a PostGIS database, you can update the statistics of the table of interest by using the ANALYSE function: http://www.postgresql.org/docs/current/static/sql-analyze.html In your case you can execute the statement inside the DB-manager by pressing the button marked in the attached image and executing the ANALYSE statement in ...


3

You can use the rios (raster input/output simplification) module to read the columns of the RAT, giving you a numpy array which can be written to a csv col_names = rios.rat.getColumnNames(img) rat_values = [] for col in col_names: rat_values.append(rios.rat.readCoumn(img, col) Alternatively it will possibly be easier to create a gdal image directly ...


3

You can enable automatic updates of feature attributes with the following PyQGIS script. In this example, say you have a polygon layer named myPolygons, which has, among others, fields named area and perimeter. Copy and paste the code into the QGIS Python Console. # Initialize required variables myLayer = QgsMapLayerRegistry.instance().mapLayersByName( ...


3

The tool does not carry over source point layer field/attributes. You will have to apply other tools/methods (e.g. spatial join) to bring over those attributes.


2

It's somewhat circuitous, but you may have luck saving a copy of the vector file after you Join the CSV to it. That way, the exported file should contain all of the CSV attributes without it being connected through a Join. Perhaps that would help address the issues you're encountering when using the plugin.


2

You can run a Spatial Join to create a new feature class with a combination of attributes and geometry from your original layers. Select your destination geometry, and the attributes you want to join to it from the input layers.


2

It didn't just decide to do the "summary"; that's how you submitted it. It depends on your ultimate goal with the data, but you have at least a couple options: Create one raster for each attribute of interest. My suspicion is that this is what you should do, because I've never encountered a reason to use option 2... or Create another column in your ...


2

Since spatial join creates a 1 to 1 relation, the result will be one of the lines joined with the area. Not sure what the algorithm does exactly but probably the first record found will be joined. Not sure what result you need but I would look into intersect, where the line will be cut on the edges of the areas and merging the area attributes to the lines.


2

Do I understand well if you mean to refresh the table in QGIS after a change to the columns is made? As far as I know, only close and open the project or re-adding the table will make this happen. As long as you saved the default style in the database that might be the fastest way. When a column is added with the Field Calculator the changes are instantly ...


1

The argument of the split function is expecting a string value surrounded by "" or ''. You have three double quotes. Try surrounding the string with single quotes: !other_tags!.split('"int_name"=>"')[1] To remove the last bit of text, run this statement after running the one noted above: !other_tags!.split(',')[0].replace('"','')


1

If they are in the same projection You can use spatial join from Vector -> Data Management Tool -> Join Attributes by location. Try to use "Take attributes of first located feature" as shown below.


1

KMLs do not support information the same way a shapefile does. KML and shapefile conversions work well enough to display geographical information. Since KMLs do not have a full table structure behind them, you will find it lacking for converting large amounts of information. If you try and convert that KML back to a shapefile, all of that will transfer into ...


1

As Joseph has asked, most likely some of your field names between the two layers do not match. When doing feature copy and paste the field names and order must be exact for attributes to populate correctly. Here are a few options to remedy this: Create the missing fields in the destination table in the order they exist in the other layer/table Perform a ...


1

Open the Attribute Table, at the bottom there is a button that says "Show All Features". Click this and select "Advanced Filter (Expression)" and use an expression like "Layer" IS NULL OR "Layer" = 0. This should now only show features with doesn't have a value for the "Layer" field. Now you can edit and delete features by selecting the relevant buttons in ...


1

Unfortunately, you cannot save the dangles ends resultant from the topology checker into a new point shapefile since the points do not have any x,y locations and there is no option to turn the dangles into point shapefile. Hoping that someone can develop such an option to save the output of topology checker into a vector file.


1

Open Model Builder from ArcMap. Tool 1 in Model Builder: From the Toolbox, drag in "Select Layer by Attribute" tool. Its under "Data Management". Right click on the tool and hover over "Make Variable", then when more options pop out, select "From Parameter". When more options pop out select "Input Layer". When a new circle appears, right click on it ...


1

You don't need to go all the way to polygon. When you convert to integer you should get a raster attribute table with a count for the number of cells in each row.


1

Save you polygon in FGDB if its not there Join polygon (right click join) to table Right click on it in table of content and export to file geodatabase feature class NOTE: you'll get N identical polygons with different info attached to them.


1

Building off of @Jochen Schwarze answer, I would recommend this structure: Create database (e.g. SQLite, ESRI File Geodatabase, or PostgreSQL/PostGIS) and store parcel and owner table in it. You will gain many more modern features using a database such as longer field length size, performance, and scaleability compared to shapefile/dbf. Create UI form ...


1

What you want to do is to hide GIS/Database functionality behind a simple GUI, legitimate approach imho. This question thus has two aspects: 1) From the database point of view, you have a m:n cardinality join from plots to landowners (a plot can be owned by n landownder an vice versa, a landowner can own m plots). Such is usually achieved by an ...



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