New answers tagged

0

Although you haven't tagged this question with pyqgis, you could achieve your goal by using the script below and pasting it into an editor in the python console and clicking run. The field name mapping is set up in nested lists with the format: [['Source field name', 'Target field name'], ['Source field name', 'Target field name']] etc. and assigned to a ...


1

If layer B had A and B fields, you could add defaults values to B fields, for example field "B1" would be equal to "A3" and "B2" to "A5". When copying the A features in B, fields A1,2,3.. would insert with no changement, and B fields would create default values from it. You would only have to delete A fields when finished.


0

This was solved. The tool ran fine, but the fields weren't displaying in the attribute table. I had to quit out and restart the application. However, this didn't work at first; I had to wait a day and try opening the application again for the fields to appear. If you're encountering this issue and quitting/restarting doesn't work, it may work after some time ...


0

Welcome to the wonderful world of labeling 2Knees! You create the text for the text values for fields either editing the attributes of the newly created feature (your point for sleep stop). Your newly created feature has to still be selected otherwise the attributes editing panel will be blank. Another way is to open the feature class attribute table and ...


0

Dissolve by A and by B: Merge them. Add field area to result and compute it. Get centroids of your parcels and spatially join them (1:M) to merged polygons Sort spatial join in descending order by area and remove duplicate parcel ids. Transfer JOIN_FID to original parcel layer and dissolve parcels by that attribute. .


1

Can you first do a dissolve based upon address, then select by location those in the original file that have been dissolved, then delete those in the original file. Then do a dissolve based upon name. Again remove those that have been detected from the original file, leaving only parcels with no matches. Then merge all three shapefiles.


3

This is a known bug: https://github.com/qgis/QGIS/issues/29223. It's Mac-specific, and may be related to a similar issue with the Identify results window. It doesn't look like anyone is working on a fix at the moment. See the issue tracker page on github for more details and up-to-date information. github user emonshaugen suggested this workaround: ...


1

An update for QGIS 3 of the crystal clear answer by @Steven Kay You can get around this by creating a short python script in the function editor tab of the expression editor. Go into the function editor tab in the expression editor Create a new function ("New file" button) paste the following into the code window. You may get indentation errors, so ...


3

Open Layer properties - Attributes form - switch from Autogenerate to Drag and drop designer (worked for me).


0

def batch_addfields(str_path_obj_out, str_path_obj_add, lst_str_fld_add): # str_path_obj_out : absolute path to the feature class or table where the fields go # str_path_obj_add : absolute path to the feature class or table from the fields come # lst_str_flds_add : list of fields to add # assumes all field names are free in ...


0

This answer is based on answer provided by @BERA: Save a selected row into a new shapefile with arcpy The scripts reads the feature class, and exports each of the rows as unique shapefile in three steps: use ``arcpy.da.SearchCursorto loop throught each row in a feature class to get uniqueOBJECTID` use OBJECTID to create a new query to subset the row save ...


Top 50 recent answers are included