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, ...
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 ...
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 ...
3 votes
1 answer
99 views

Deleting columns by indexes with PyQGIS

In QGIS 3.4, I am building a model for importing and preparing multiple data by merging shapes and joining tables. I am almost finished with the model, but I haven't found a useful tool for deleting ...
4 votes
2 answers
1k views

Removing only small inner rings in PostGIS

I am looking for a way to remove small inner rings in a large polygon. I want to remove only the ones below a given surface and keep the bigger ones so that the look (from a distance) is not affected ...
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 ...
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 ...
3 votes
2 answers
1k views

How to delete a raster file after opening the raster in rioxarray

I wanted to able to delete a temporary file, after opening it with rioxarray and start to process the final product. I followed two ideas: a) with rioxarray.open_rasterio(temp_file) as raster: # do ...
13 votes
3 answers
12k views

Deleting selected features using PyQGIS

I have a shapefile with only one field "DN". I would like to delete all features which does not have specific value of the field. Let's say the "DN" can be 1,2 or 3. So far I was ...
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 ...
-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?
2 votes
2 answers
3k views

Why is Delete Highlighted button on Attribute Table grayed out in ArcMap?

I have a few thousand points of data in one layer in ArcMap. I'm editing those points through the Attribute table and now have the data that I don't want displayed highlighted in the table. About 3.5 ...
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 ...
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 ...
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, ...
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 &...
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?
8 votes
2 answers
4k views

Deleting entry of GeoPackage

I created a GeoPackagein QGIS 3.18 that contains different entries (layers). How can I delete just on entry of this GeoPackage?
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 ...
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 ...
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. ...
1 vote
1 answer
827 views

Definitely delete more than 1000 images from an image collection in Google Earth Engine using the code editor!

I need to definitely delete more than 1000 images from an image collection in Google Earth Engine using the code editor. After some attempts I arrived to the following code: var deleteA = function(...
11 votes
2 answers
6k views

Deleting all features of Vector layer using PyQGIS

I am developing a Python plugin for QGIS. In the QGIS map window, certain features of a vector layer are selected and those features are highlighted. Now I need to delete all the existing features ...
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 ...
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)) ...
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:
2 votes
2 answers
167 views

Sort by multiple fields and delete record with highest value

I have some GPS points that I am trying to find the highest precision point for. How would I go about sorting the table by time collected and horizontal precision and then deleting the highest ...
2 votes
3 answers
1k views

Deleting part of polygon (or number of polygons) outside of another larger polygon in QGIS

I have got a number of polygons within a single larger polygon. Parts of the smaller polygons go out from under the larger one, and I want to delete the parts of the smaller polygons, that go outside ...
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?
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 ...
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=&...
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 ...
17 votes
2 answers
35k views

Removing overlapping part of polygons using QGIS?

Here is what I'd like to achieve in QGIS. Is there a processing tool to remove the overlapping part of polygons? It does not matter which polygon gets clipped. It is also very important that they do ...
4 votes
0 answers
253 views

Deleting picture taken in QField

I'm using QField all day and one thing kept bothering me which is that I am unable to delete a picture I take within the app. When I'm doing cartography, I like to take pictures so that I have a ...
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 '...
8 votes
1 answer
2k views

Deleting vector layer from GeoPackage using PyQGIS

Programmatically I have added the vector layers to an existing GeoPackage in QGIS 3.2 using Python. Similarly, I would like to delete a layer from the existing GeoPackage using Python code. But there ...
6 votes
1 answer
1k views

Merging and deleting with priority overlapping polygons in QGIS

I have two shapefiles with polygons: one is regions for a country and the other is the protected areas inside that country. I have merged these two polygons with Union, but the regions and protected ...
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", ...
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 ...
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.
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 ...
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 ...
8 votes
2 answers
15k views

Deleting graphics from Go To XY and Add Labeled Point?

How do I delete a green point with coordinates that I added to my map using Go to x,y / Add Labelled Point?
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...