Skip to main content

Questions tagged [remove]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
42 views

Deleting GeoPackage vector layers and releasing open file handles with PyQGIS

On Windows 11 I have a PyQGIS script that creates layers from gpkg files. This all works perfectly fine. I want to delete these layers, recreate the gpkg files and reload them as layers again and this ...
John_nz's user avatar
  • 31
0 votes
1 answer
35 views

Removing 'bad bands' from hyperspectral data in GDAL

I'm new to using GDAL and need to process hyperspectral data. I'm trying to get rid of bands within atmospheric absorption windows, but I'm note sure how to do that in GDAL or other python tools. My ...
monicaJ's user avatar
0 votes
0 answers
10 views

Python IDLE crashes while trying to remove a Layer from an mxd containing a lot of layers using ListDataFrames

Problem My ArcGIS 10.8.1 crashes whenever I try to open an MXD project that contain Basemap layers. I need a script to remove Basemap layers without opening these MXDs but Python IDLE also crashes ...
Dan G. Ochoa's user avatar
3 votes
2 answers
282 views

Removing overlapping features in one layer in QGIS

I have a dataset in QGIS with polygon features that partially overlap completely. I would like to delete the overlapping polygon features so that each area is only covered by one feature. The decision ...
Fabi's user avatar
  • 75
0 votes
1 answer
93 views

How to remove values from raster band QGIS

I recently did a land use land cover analysis using the semi automatic classification plugin in QGIS. While I am satisfied with the produced raster there are a bunch of classes that are not relevant ...
Hartje's user avatar
  • 153
0 votes
0 answers
145 views

How to delete multiple features from multiple layers in QGIS at once?

I want to delete multiple layers containing points, lines, polygons together. According to my research, the tools in qgis can only delete features of the active layer together, is there a method or ...
hamid barati's user avatar
5 votes
0 answers
106 views

Filtered features in attribute table

Attribute table header of point layer says: "Features total 1200, Filtered: 1197, Selected: 0" There is no layer filter active and also no filter is set in the layer properties under tab &...
Hannes's user avatar
  • 129
2 votes
2 answers
423 views

Removing added layers using Leaflet

I add polygon data on the Leaflet map by selecting parameters: travel_mode and travel_time from the form control and clicking a button "btnGenerate". This button click function is working as ...
user3072602's user avatar
2 votes
2 answers
421 views

Delete multiple layer at once in geopackage QGIS

Is there a way to delete more than one layer at the same time in a geopackage file once I have opened the connection in QGIS? I am only able to delete them one by one...very time consuming.
AUS85's user avatar
  • 446
0 votes
1 answer
331 views

Select all layers in QGIS

In the previous versions of QGIS, to select all layers in the 'layer panel' and then remove them, I used 'CTRL + A'. In QGIS 3.22 this is not possible and to delete multiple layers I have to select ...
AUS85's user avatar
  • 446
0 votes
1 answer
75 views

maplibregl.Popup()

To show a popup when clicking the map, I entered: const popup = function(e){new maplibregl.Popup().setLngLat(e.lngLat).setHTML('MODIFICATIONS').addTo(map)}; map.on('click', popup); map.on('...
Angile's user avatar
  • 1
0 votes
1 answer
231 views

ArcPy command to remove empty layers that are grouped

I have a script that works for MXD with ungrouped layers. How can I change this so it works if there are groups of layers? I have an MXD template with many layers & groups. The underlaying file ...
Eifa's user avatar
  • 1
1 vote
0 answers
51 views

Remove the longest segments of a polygon using QGIS

Is there an expression or tool that allows the user to remove the longest segments of a polygon? The end result would be two end segments (lines)
Anthony's user avatar
  • 127
0 votes
0 answers
310 views

QGIS crash when programatically removing layer

I have to remove a layer named "Punti_da_csv_utente" and I use the following code: def processAlgorithm(self, parameters, context, feedback): #(other code) for lyr in QgsProject....
Fabio Zimbo's user avatar
2 votes
1 answer
161 views

Issue with saved scratch layers in QGIS, index higher than new scratch layer with the same name?

I'm using a plugin that creates scratch layers with the same name each time I start it. It's not an issue on a session basis, proj.mapLayersByName('scratch_layer_name')[-1] works fine to get the ...
S.E.'s user avatar
  • 336
5 votes
4 answers
314 views

Removing file type from attribute table in QGIS

I imported a shapefile that contains track plots of SGY files into QGIS, and I would like to remove '.sgy' from the file names in the attribute table. In the image, I've highlighted the section of ...
Amro's user avatar
  • 61
3 votes
2 answers
546 views

Removing decimal part from float field in QGIS

I have a field called "_mean" and I would like to remove the decimal part of all the values of that field. I attach two pictures. One an example of my variable ("_mean") in the ...
OgeiD's user avatar
  • 618
4 votes
0 answers
697 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
0 votes
1 answer
670 views

Removing repeated commas with ArcGIS Survey123

I have created a form in ArcGIS Survey123. I have several field where you can enter multiple numbers from a select_multiple question. I then want to put all of those numbers into a single string. So I ...
OwlExpression's user avatar
0 votes
1 answer
88 views

Why does list.remove() not remove all items that meet the condition?

I have a bunch of feature classes in a geodatabase, and some of them are empty. I want to generate a list of all feature class names, and then remove the names of any feature classes that are empty. ...
Sarah T's user avatar
6 votes
4 answers
1k views

Removing duplicate features based on a condition on another attribute column in QGIS

I want to remove duplicate features (from a polygons shapefile) based on a condition on another attribute column in QGIS. For example, if I have the following attribute table of a polygon shapefile: ...
Denis Antoine's user avatar
0 votes
1 answer
126 views

Remove gpkg delated QGIS

I accidentally deleted a gpkg file from QGIS browser… I thought it was to delete the connection and the file was deleted… does anyone know any way to recover it? Does QGIS save deleted files somewhere?...
Anna Seuba i Barcons's user avatar
3 votes
1 answer
222 views

Removing table join using PyQGIS

I joined a table to a layer in QGIS using code from this thread: Joining layers with PyQGIS 3. Now I would like to remove the join. How can I do it?
Motti's user avatar
  • 466
1 vote
0 answers
792 views

Removing previous markers when new markers are added

Actually, I am using leaflet map to display city markers when country is clicked. Everything works fine. But, when I click on new country, the previous country markers remain on its position. Now, ...
Asif Vahora's user avatar
6 votes
2 answers
690 views

Removing duplicates from string in QGIS

In QGIS 3.18 in a shapefile attribute table, I have some fields with concatenated values (with commas , as the delimiter). Some of the values are duplicate, and I would like to remove them. For ...
pete's user avatar
  • 1,101
4 votes
1 answer
352 views

Deleting more than one node at once in QGIS

I would like to delete some nodes in my layer. I've got them about 50 or even more. I found some solutions here: https://www.youtube.com/watch?v=lbgmNXXJCzA&ab_channel=JustinAdler How can i ...
Geographos's user avatar
  • 4,029
4 votes
1 answer
599 views

Removing vector layer for overwriting using PyQGIS

In QGIS, I've tried to remove a layer, execute a processing and overwrite the input layer. This in my Python code: from qgis.core import * for lyr in QgsProject.instance().mapLayers().values(): ...
ste's user avatar
  • 79
0 votes
1 answer
161 views

Remove place names from the layout in the print composer using a WMS

I am new to working with maps and I am going to make a map presenting the study sites in my theisis. As a map I am using a WMS-map provided by geonorge.no. I am wondering if there is a function in the ...
Kristine's user avatar
1 vote
1 answer
262 views

Removing lines that do not provide connectivity using FME

I have two datasets one for lines and another for polygons, the lines data that contains lots of small line segments that are not needed. I would like to delete the lines only if they are not ...
Maro's user avatar
  • 15
0 votes
2 answers
211 views

Keep only certain points on a layer

I'm using QGIS 3.10.4. I have a vector layer that contains more than 200 cities as multiple points on the layer. The attribute table has one column: city name. My goal is to keep only 10 certain ...
orange's user avatar
  • 47
0 votes
1 answer
156 views

Creating a new layer based on criteria of multiple layers

I'm really new to ArcGIS and have been trying to search for whether this is possible but don't know the correct terminology to look it up. I have two layers on my map, one of lines and one of points. ...
Eal20's user avatar
  • 11
2 votes
3 answers
3k views

Remove Layers only if layers already exist using PyQGIS

I have written a code that imports the different Layers from a folder to QGIS. The problem is that when I run the code again, the layers are duplicated and so on. If I try to remove the layer at the ...
Lino.Lohan's user avatar
0 votes
1 answer
341 views

Removing empty dataset from gdb

I want to delete about 25 datasets that are empty from my gdb file which consists 30 datasets. I am invoking pPthon window and trying to execute this script: import arcpy from arcpy import env env....
gtr's user avatar
  • 17
5 votes
2 answers
508 views

Removing vertices coincident with point layer in QGIS

Is there any way in QGIS to delete vertices in an automatic way from a feature which are coincident with a point layer? I have many lines forming a "T shape", so I would like to remove the ...
Noe's user avatar
  • 117
0 votes
1 answer
201 views

Removing elements that cut other elements using QGIS

I have line elements and polgone-elements on two different layers (lets say layer A (line) and layer B (polygons). Now I want to remove all elements of layer A that crosses/touches/laying in polygones ...
Julz_Mos's user avatar
0 votes
0 answers
1k views

Remove buffer from polygon

I need to remove the outside area of a polygon based on a numerical value in a python script. It would be to determine a core habitat for a species that don't live at the edge of their habitat. I'm ...
Jessica's user avatar
  • 17
4 votes
1 answer
367 views

PyQGIS Remove VertexMarker

I have several plugins I am using that involve rubberbands and their equivalent points (QgisVertexMarkers). My problem looks to come from removing them from the display. This process worked fine in ...
D Greenewalt's user avatar
0 votes
1 answer
126 views

pyqgis: dbf blocked after removeLayer

I developed a plugin in QGIS. One of the processes consists in remove some layers from the QGisProject, use them with other third party code in C# (maybe layers are modified by C# code) and finally ...
neslerel's user avatar
1 vote
1 answer
1k views

Removing a group from layers panel using PyQGIS? [duplicate]

How can I remove a group that I created previously using : groupName="machin" root = QgsProject.instance().layerTreeRoot() group = root.addGroup(groupName)
Namoat's user avatar
  • 307
1 vote
0 answers
3k views

How to properly uninstall OSGeo4W+GRASS+QGIS on Windows7 64bit

Over the years I have tried QGIS and other mapping systems. Lately I wanted to make a go at using the newer versions of QGIS but wanted the ability to run the new one, 3.4 or 3.6 and to keep the old ...
Jim Garner's user avatar
1 vote
1 answer
667 views

Deleting overlap between two polyline layers in ArcMap? [closed]

I have two stream layers and they overlap, I want to delete this overlap on one layer so I do not repeat any information. How do I do this? I can only seem to find information regarding polygons.
Rosey's user avatar
  • 11
0 votes
1 answer
1k views

Delete Pseudo Nodes (or unncessary nodes) using PostGIS or QGIS

I have so big big data (like about 60 Gb.) and it seems to have much unnecessary pseudo nodes. I would like to remove them using PostGIS or QGIS without simplifying or changing its original shape (...
Pil Kwon's user avatar
  • 1,040
2 votes
2 answers
1k views

Remove countries from JSON file

I have this file nuts0.json that I would like to change by removing some countries like Iceland. To do this, I used the method I found in this post. Then I coverted the GeoJSON file to TopoJSON using ...
marielle's user avatar
  • 135
5 votes
1 answer
3k views

Removing and deleting duplicates in FME?

I'm analysing a large folder containing huge amounts of data, using FME. I'm filtering it down as much as possible, and I'm a little stuck at this part. Right now it is just about creating lists. ...
Kim's user avatar
  • 163
1 vote
2 answers
2k views

Remove some islands from Europe json file

It's the first time I use a JSON file to create a map of Europe. I downloaded these two files: nuts0.json nuts2.json The first represents the states, while the second represents the regions of each ...
marielle's user avatar
  • 135
1 vote
0 answers
69 views

How do you remove the 1m by 1m gap polygons such as the one at the lower right corner? [closed]

How do I remove the 1m by 1m polygon in the lower right corner? I am using ArcMap 10.4 and its Raster calculator.
Buck_2008's user avatar
3 votes
4 answers
14k views

hasLayer and removeLayer methods not working on leaflet map as expected

I am trying check if Layer already exist on map... IF(no) THEN Addlayer on Map. IF(yes) THEN removeLayer and AddLayer on map "because I dont want same Layer to be added again and again on map". I ...
Sami Khan's user avatar
1 vote
0 answers
271 views

Remove/hide selected layer and display new layer after click on button

I´m trying to create two drop-down lists: <select id= "select1"> <option value="layer1">layer 1</option> <...
Martin Zápotocký's user avatar
1 vote
0 answers
111 views

What to do with unused layers in my personal geodatabase

I have a question about my personal geodatabase. You can see it at the picture below. I started with the database in Arcmap with my normal data (Black sea, Danube, East Aegean and West Aegean). In ...
Watermanagement's user avatar
0 votes
0 answers
47 views

Remove layers with arcpy- Error [duplicate]

I use this code in order to remove layers that are out of the data frame of the map: import arcpy,os,sys,string import arcpy.mapping from arcpy import env env.overwriteOutput = True env.workspace =...
newGIS's user avatar
  • 4,072