Skip to main content

Questions tagged [delete]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
20 views

Deleting photos in QFieldCloud

When I sync my QField projects (mobile) to QGIS (desktop) through QFieldCloud, I would like to be able to delete the synced photos in QFieldCloud. (To save space on my QFieldCloud). It seems, however, ...
Georgia Slim's user avatar
5 votes
2 answers
316 views

Deleting special characters from QGIS Attribute table

Is there a way to delete special characters such as *? I've tried using replace and regexp_replace, but my version at least doesn't recognise special characters. There are hundreds of fields, and I'm ...
Kai's user avatar
  • 157
2 votes
1 answer
149 views

When deleting attribute from GDB file all the fields in the remaining attributes get deleted as well in QGIS

In QGIS 3.38.2 I have a gdb shapefile with many attributes, let's say A100, A200, A300 and with many fields. When I go to the edit through the "Open attribute table" and delete A200, all the ...
Francis's user avatar
  • 191
1 vote
1 answer
119 views

Deleting segment from polygon and split it into polyline or polyline into two polylines in Leaflet?

What I'm trying to do is have a button to delete a segment from a polygon, or a segment from a polyline. I tried attaching an eventlistenner to each segments I find in the in the drawnItems. I take ...
François Poulin's user avatar
0 votes
0 answers
13 views

Removing annotation boxes using QGIS [duplicate]

I'm using QGIS 3.36 Maidenhead and I need to remove annotation boxes that I added but do not want to keep. I cannot find any option to delete or even edit them, only to add more. I've tried every way ...
user252685's user avatar
-2 votes
1 answer
65 views

Recover GEE repositories [closed]

I recovered my recently deleted Google account. However, I cannot see the repositories I had in GEE. There is a way to recover them?
Javier Martin DSM's user avatar
1 vote
1 answer
42 views

Delete duplicate features by value and relative position in QGIS

I have a point layer with features of which some share the same date (fieldname: 'Datum' with format: "dd.MM.yyyy"). The date that is shared by some features is not a single specific one but ...
Hannes's user avatar
  • 129
0 votes
1 answer
69 views

Delete Features of a layer from PostgreSQL on QGIS itself

I have layers that I need to edit using QGIS that I import from my company's PostgreSQL server. I currently have the ability to add features, for example the line that I have drawn below: However, ...
Nandula's user avatar
  • 783
3 votes
1 answer
167 views

Delete only certain info of the attributes table and not a complete row in QGIS

I want to delete only certain information of certain cells of the attributes table in QGIS and not the complete rows or columns that contain that word. For example, I want to eliminate all the words &...
DorExplor's user avatar
3 votes
2 answers
156 views

Deleting points in in certain area using PostGIS [closed]

Have a set of points cali_dairies and wanted to delete some of the locations in southern California. How do I do it?
MC Hammerabi's user avatar
3 votes
1 answer
343 views

Deleting shapefile after removing it with removeMapLayer using PyQGIS

I am currently working on a script that searches for a currently loaded layer in PyQGIS and does some calculations. Then it removes the layer and deletes the whole shapefile in its directory. ...
eagleadmiral's user avatar
0 votes
1 answer
81 views

Deleting file geodatabase table with quotes in name using ArcGIS Pro

I am using ArcGIS Pro 3.1.2. I somehow managed to accidentally rename a table in my file geodatabase with quotation marks in the name. Trying to open it will yield a Failed to open table. error. I am ...
sushi's user avatar
  • 329
0 votes
2 answers
292 views

Deleting polygon constituted of many parts

I have a shapefile with multiple polygons and I would like to delete those which are constituted by multiple parts, as this one:
Ricardo Gomes's user avatar
2 votes
0 answers
274 views

QField Cloud not downloading data collected in field onto computer- local files deleted

I have used this same project before, and now I am having issues with getting data from the cloud onto my machine. I am helping someone (not me) with doing this, so the initial mistake I think was ...
vermicellion's user avatar
0 votes
0 answers
53 views

Deleting borders from merged layers in QGIS

I merged more layers together but I need to delete these borders. It is possible?
Jozef Hiľovský's user avatar
1 vote
0 answers
65 views

Remove the vertical line black between two TIFF files to create a mosaic

How can I remove the vertical line between two TIFF files to create a tile? For example: The black line showing the red arrow I have tried: gdal_calc.py -A DEM.vrt --outfile=DEM_clean.tif --calc=&...
leotv's user avatar
  • 449
4 votes
1 answer
1k views

"AttributeError: 'dict' object has no attribute 'fields'" error when creating and deleting fields in the attribute table using PyQGIS

I am currently making a code that will buffer the points then extract vertices and add new coordinates. but I also want to change the "max depth" column to "Height Theo" and then ...
PyCher's user avatar
  • 171
1 vote
1 answer
667 views

Deleting GeoTIFF Header/Spatial Reference data using open source software [closed]

I'm looking for a way to delete only the Header/Spatial Reference information from .tif DEM files, using QGIS or other open source tools. I need to specifically remove this data from the DEMs while ...
JeremyLondonMDL's user avatar
2 votes
0 answers
83 views

QGIS: editing vector layer with 'delete feature' option locked

I need a vector layer to be editable, to change feature geometry and attributes, but at the same time, I need to prevent users from deleting features in the layer. Is there a way of locking the '...
lukabana's user avatar
  • 103
3 votes
1 answer
181 views

Why is it slow when deleting features in gpkg using PyQGIS?

Deleting features in a somewhat big GeoPackage takes a really long time and I am not sure if I do something wrong or if it is normal that it takes such a long time. Data: line GeoPackage layer ...
Kalak's user avatar
  • 4,049
4 votes
1 answer
313 views

Deleting specific attributes of layer using PyQGIS

I want to delete specific columns in the attribute table of my layer: except for the "LAYER" Column. This is my code: clip = processing.runAndLoadResults("native:clip", ...
charliey's user avatar
  • 163
9 votes
1 answer
229 views

Deleting parts of MultiPolygon based on area using PyQGIS

I have a layer with MultiPolygons. Some of them have parts less than five m2 which I want to delete. The QgsGeometry class has methods: parts() and deletePart(self, partNum: int). On parts() I can ...
ThiPa's user avatar
  • 659
4 votes
1 answer
1k views

Rename and delete fields in the attribute table

I am using QGIS V3.22.6 I have an attribute table with unnecessary fields that I wish to delete. I also wish to rename some of the fields. I cannot see how to do this using the Attribute Table Editor.
Norman's user avatar
  • 71
0 votes
0 answers
51 views

Delete more than one polygon at a time with Delete Part tool

I'm using QGIS 3.22. When using the Delete Part tool it can be pretty tedious when you have a lot of unwanted polygons to delete. As it stands, I only know how to delete one poly at a time. Is there ...
Pfalbaum's user avatar
  • 921
2 votes
1 answer
239 views

Deleting all non-required fields in table using ModelBuilder in ArcGIS Pro

In ArcGIS Pro I want to delete all non-required fields from a table using ModelBuilder. The number of fields will be variable since it will the product of multiple Union functions. Is there a way to ...
Bob's user avatar
  • 43
1 vote
1 answer
749 views

Points deleted in map do not delete in attribute table using QGIS

In QGIS 3.22.13 I have deleted a number of points from a SHP file. They have gone from the map but still appear in the attribute table. I have tried reloading the attribute table and saving closing ...
Laura Bennett's user avatar
4 votes
1 answer
165 views

Adding and deleting fields in shapefile using PyQGIS

As part of a project, I have to extract X, Y coordinates from points in a shapefile, and classify each point as North or South, or East or West. To do so, I created new fields: a field to store the X ...
Mommo_Mia's user avatar
0 votes
1 answer
399 views

How to specify which fields to keep while deleting the remainder of the attribute table - ArcPy

I have an attribute table with 100+ fields whereby I only need to keep 3 fields. Specifying which fields to keep is way easier than manually selecting which to delete. This should be easily done via ...
Foeke Boersma's user avatar
1 vote
1 answer
195 views

Find model deleted from QGIS processing toolbox

Using Windows 10 with QGIS 3.26.1., I successfully save a model from QGIS and added it to the Processing Toolbox. I then wanted to remove it from Processing Toolbox by right clicking on the model in ...
Babel's user avatar
  • 74.9k
0 votes
2 answers
59 views

Deleting geometries in feature layer based on unique field values

I have a building feature layer for a county. Some parcels have more than one building, so the buildings in these parcels all have the same TMS number in the "TMS" field. I only want my ...
jcholly's user avatar
  • 166
1 vote
2 answers
75 views

Deleting a field using plugin in QGIS 3

I am trying to write a function to delete a field using plugin in QGIS 3.24. I have build a plugin , which consists of QgsFieldComboBox. So I can select a field from the combo box to delete (from the ...
user avatar
3 votes
0 answers
148 views

Trouble deleting features from polygon in QGIS - features do not delete

Apologies if this is a daft question, I have googled it and searched on here, but can't find an answer. I have a multipolygon shapefile of different pockets of woodland. I am trying to delete some of ...
user197410's user avatar
4 votes
2 answers
646 views

Deleting all fields from attribute table in QGIS processing script

I'm writing a script in the processing script editor of QGIS and at one point i want to delete all columns of my vector layer's attribute table. I tried to do it like this: lst = list(range(0,-1)) ...
Anni98's user avatar
  • 107
4 votes
1 answer
1k views

Deleting folder and processed files in QGIS using PyQGIS

My script creates a folder named 'output' and saves processed files there. I am trying to delete this folder and all files within it, if I need to re-run the script (see reproducible example at the ...
Andre Silva's user avatar
  • 10.3k
0 votes
1 answer
218 views

ArcPy with ArcMap cannot delete file

I have a Python tool to calculate some simple statistics on a lot of features. I use arcpy.Statistics_analysis to create a DBF file with stats for a feature class, register the results, then pass to ...
David Remotti's user avatar
0 votes
0 answers
24 views

Getting GeoServer to batch delete features using WFS [duplicate]

I'm having some problems using Geoserver to batch delete features, It looks like the Geoserver does not respond properly when the number of deleted features is greater than 30. The format of the ...
singh's user avatar
  • 63
5 votes
1 answer
494 views

Deleting the same column(s) from different shapefiles in QGIS

In QGIS, I have a problem deleting the same column out of different shapefiles, is there a way to do this? I want to delete several columns out of all these layers, is there a way to do this without ...
I agree's user avatar
  • 165
0 votes
3 answers
104 views

Deleting feature from Costa Rica shapefile using ArcMap

I would like to remove an island from the Costa Rica shapefile. This island is highlighted in the attached picture. There is not enough information in the attribute table for this island and that part ...
Mike Adam's user avatar
5 votes
3 answers
275 views

Nullifying the whole row in data attribute table at once in QGIS

I have a situation as you can see below: and I would like to have one row cleared completely at once. Is it possible?
Geographos's user avatar
  • 3,791
4 votes
1 answer
212 views

Setting selected features in list without specifying their layer using PyQGIS

To get selected features I usually do: layer.selectedFeatures(). Is there a method to retrieve selected features in a list without specifying the layer they belong to ? I selected features with the &...
Anthony's user avatar
  • 133
3 votes
2 answers
8k views

Removing duplicates from the Attribute table by expression in QGIS

I have some duplicates in my data attribute table, you can see below: I used the following formula: count(1, "Site ID") > 1 based on this question: Identifying duplicate attributes in ...
Geographos's user avatar
  • 3,791
4 votes
2 answers
288 views

Deleting entries (duplicates) from a GPKG using OGR

I tried to delete duplicates from a GPKG file using ogr2ogr and a SQLite statement from SO: ogr2ogr -sql "DELETE FROM layer WHERE rowid NOT IN (SELECT MIN(rowid) FROM layer GROUP BY ...
StefanBrand_EOX's user avatar
4 votes
0 answers
810 views

Deleting layer with its source in QGIS 3

When I remove a layer, I usually don't need the source anymore either. If now using the QGIS remove layer... command, the layer, of course, is gone, but the source file remains in the data and has to ...
jaysigg's user avatar
  • 507
2 votes
0 answers
130 views

Deleting large number of duplicates in attribute table in QGIS

In QGIS 3.22 I have a vector file with about 9000+ objects and for some reason, each of them has duplicates. Which way can I find on QGIS to remove duplicates which have the same object "ID" ...
Robagb's user avatar
  • 447
2 votes
2 answers
1k views

Deleting shapefile using ArcPy

I'm running an automated process that outputs shapefiles. However, there are these types of files that are not useful, they are garbage, so it is necessary for me to delete them. I know that in Python ...
MrShaggy87's user avatar
6 votes
1 answer
2k views

Deleting polygons within larger polygon in QGIS

I'm using Google Earth Pro to create some maps. I have a larger area (polygon) that has a few smaller areas that are not legally considered part of that larger area. I created the larger area and then ...
Mark V. Fusco's user avatar
1 vote
1 answer
266 views

Deleting unused DEMs in a QGIS project

When I download DEMs for a diagonal section of coastline, I am forced to download a rectangular area, which leaves gigabytes of unused data. I want to delete the DEM files for the areas I don't need. ...
John Newman's user avatar
2 votes
0 answers
676 views

Removing duplicate records in the Attribute table using QGIS

I need to remove the duplicate objects in my attribute table (see the image attached), but I can't find a way to do so. I saw questions asked with python that it NOT relevant to my case
Robagb's user avatar
  • 447
0 votes
2 answers
367 views

Delete geometries based on intersection with another layer

Working on QGIS, I have two layers 1. buildings (polygons) 2. flood area (polygons) I want to get rid of the building located in flood plains. In other words, I need to find where those layers ...
mbk_wass's user avatar
1 vote
1 answer
250 views

Deleting created custom CRS using PyQGIS

How can I delete custom CRS by PyQGIS? My not working solution is: my_crs = QgsCoordinateReferenceSystem() my_crs.createFromProj4("+proj=aea +lat_1=21 +lat_2=49 +lat_0=37 +lon_0=87 +x_0=0 +y_0=0 +...
Wenceslauw's user avatar