New answers tagged

0 votes

Exporting polygon as DXF using PyQGIS

Try this: expFolder = r"/home/cirrusklaus/Downloads/tmp/shp" #Path of a Linux OS adapt it Filename= 'myFile'#adapt it Filetyp='dxf' filename = f"{Filename}.{Filetyp}" output = os....
Klaus's user avatar
  • 307
1 vote
Accepted

Remove bad quality pixels from daily PROBA-V images

You need to map the mask_vnpa2_img() function to the image collection and select the NDVI band after mapping. The bitwiseExtract() function was missing in your code, I added it. var bitwiseExtract = ...
Padmanabha's user avatar
0 votes

Exporting polygon as DXF using PyQGIS

You have to transfer the data to the processingtools with a variable. At the very end you don't have to pass iface but the last step ot the result. Try this: from qgis import processing inlay = iface....
Klaus's user avatar
  • 307
1 vote
Accepted

Download all images for a particular month of a year in Google Earth Engine

For visualizing and exporting only useful images for February of 2018, you can use following code. Before exporting whatever image, you can mark each layer in the Tab of layers (default visualization ...
xunilk's user avatar
  • 28.6k
1 vote
Accepted

Export daily image from PROBA-V

Problem appears because you are trying to apply 'reproject' ee.Image method to an Image Collection. It would be recommended that this method is included within the function subtracted as follows: // ...
xunilk's user avatar
  • 28.6k
-1 votes

Calculating max shardSize and fileDimensions to avoid tiling large raster exports in Earth Engine

The Python equivalent to get the file size would be import ee # Initialize Earth Engine ee.Initialize() # Define the image and region image = ee.Image(0).float() region = ee.Geometry(ee....
scriptDaddy's user avatar
1 vote

Max pixel issue exporting NDVI map (Landsat 5 and 8) from GEE

You are trying to export the whole world in 10m scale: print(NDVI_diff.geometry()) Polygon, 5 vertices type: Polygon coordinates: List (1 element) 0: List (5 elements) 0: [-180,-90] 1: [180,-90] ...
Daniel Wiell's user avatar
  • 12.9k
1 vote

"DeprecationWarning: QgsVectorFileWriter.writeAsVectorFormat() is deprecated" when exporting GeoJSON in QGIS

'DeprecationWarning: QgsVectorFileWriter.writeAsVectorFormat() is deprecated' is a warning, not an error. If you check the documentation for that method you see that using QgsVectorFileWriter....
bugmenot123's user avatar
  • 10.4k
3 votes
Accepted

Get a list of dates indicating areas whose pixel cover is greater than 80%

First of all, you are mixing methods from ee.Image objects and ee.ImageCollection. For this reason, I guess you probably considered the median determination for your dataset because your first ...
xunilk's user avatar
  • 28.6k
1 vote
Accepted

Export List of lists as a FeatureCollection (CSV) in GEE

You can solve your issue by using following lines instead: var fc = ee.FeatureCollection(stats.map(function(list) { list = ee.List(list); var dict = { a_image_id: ...
xunilk's user avatar
  • 28.6k
1 vote

Export List of lists as a FeatureCollection (CSV) in GEE

The problem is that you have some entries in your list with null; thus, when your function fc tries to get elements from that null it results in an error. An easy solution is to simply filter the List ...
Jonathan V. Solórzano's user avatar
1 vote

QGIS Composer layer missing after export to PDF or PNG

I found that there's an issue in Github for this bug. "Layer blending mode reset on export for all file types #50526"
FedericoL's user avatar
1 vote
Accepted

Download NASA's Black Marble VNPA2 nighttime light data using Google Earth Engine

Maybe you messed up the bit fiddling? I've got a little utility function that I always use, so I don't have to think about it every time: var mask_vnpa2_img = function(image) { var qa = image.select(...
Daniel Wiell's user avatar
  • 12.9k
2 votes

Export data and symbology from QGIS to ArcGIS

Ah the painful world of symbology. Unfortunately there is no easy way of migrating from QGIS to ArcGIS while preserving symbology. In QGIS you can save a layer's default symbology into a geopackage ...
TeddyTedTed's user avatar
  • 5,825
1 vote

ArcGIS Pro: Export file geodatabase feature class including JOINs and RELATEs

You should certainly be able to export your data with a joined table, what you are calling approach 1. Why approach 1 is failing for you I cannot say without further evidence as it works perfectly OK ...
Hornbydd's user avatar
  • 41.8k
7 votes

Failed to export from shapefile to CSV in QGIS

The error message is quite explicit and clear: a field with this name already exists. It seems you have two fields with the same name (maybe truncated by the fieldname length constraint in ...
Babel's user avatar
  • 61.2k
2 votes

Exporting MapInfo TAB file with symbology using Processing Toolbox or PyQGIS

Apply the symbologyExport=QgsVectorFileWriter.FeatureSymbology parameter when writing and it will keep its symbology when opened in MapInfo. from os.path import abspath from qgis.utils import iface ...
Prosper's user avatar
  • 51
3 votes

Exporting attribute table to CSV via pure Python in QGIS

I use this: import csv outFolder = r'/home/lissiklaus/Downloads/tmp/csv/' filename = 'countries.csv' outPath = f"{outFolder}{filename}" layer = iface.activeLayer() header = [field.name() ...
Klaus's user avatar
  • 307
6 votes
Accepted

Exporting attribute table to CSV via pure Python in QGIS

You can use .getFeatures() to iterate over each feature and .attributes() to fetch each feature's attributes: layer = iface.activeLayer() fieldnames = [field.name() for field in layer.fields()] #If ...
BERA's user avatar
  • 63.9k
0 votes

QGIS killed 'Items Properties' panel?

In the Layout, you will see "view" on the top panel Click "view" and it will produce a drop down list, scroll down to "panel" Click it and a multiple option drop down ...
Emmanuel's user avatar
0 votes
Accepted

How can I change the Data format in xProperties of GEE Chart?

You can map over the collection and add a property with the formatted date. Use that property as xProperty when charting. var scaledReducedl8 = ee.ImageCollection('LANDSAT/LC08/C02/T1_L2') ....
Daniel Wiell's user avatar
  • 12.9k

Top 50 recent answers are included