Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options questions only not deleted user 108216

open source Python library for reading and writing geospatial raster data

1 vote
1 answer
696 views

How to not overwrite with NoData values when updating a raster file using a numpy array?

import rasterio import geopandas raster_in = r'C:\.......\raster_in_file.tif' raster_out = r'C:\....... …
Pitrako Junior's user avatar
1 vote
1 answer
369 views

Reading raster cell values on specific PostgreSQL points with rasterio and updating PostgreS...

I have 9 UK wide raster files (TIFF) and about 3 millions points on a PostgreSQL table. I need to add, for each point on the pg table, the values of the 9 raster cells where the point falls in. I am …
Pitrako Junior's user avatar
4 votes
1 answer
3k views

How to write BIGTIFF raster files with rasterio

A few months ago I had a hard time in finding a way to read BIGTIFF files. In the end I only managed to do so by creating a new conda environment with the following options: conda create -n env_name …
Pitrako Junior's user avatar
4 votes
1 answer
6k views

Reprojecting data with GeoPandas using 'to_crs'?

I am trying to reproject a polygon so that it has the same projection than a raster dataset. raster.crs CRS({'proj': 'tmerc', 'lat_0': 0, 'lon_0': -183, 'k': 0.9996, 'x_0': 500000, 'y_0': 0, 'datum': …
Pitrako Junior's user avatar
3 votes
1 answer
3k views

"RasterioIOError: This is a BigTIFF file. BigTIFF is not supported by this version of GDAL a...

I am trying to read a raster ".tif" file with rasterio: import rasterio raster_path = r'......... … I have: GDAL => 2.4.1 libtiff => 4.0.10 rasterio => 1.0.21 …
Pitrako Junior's user avatar
0 votes
1 answer
935 views

Error when updating a raster file with a numpy array using rasterio.write

The script works for a few thousand polygons but at some point it throws an error. import os, sys, datetime, time import geopandas as gpd import rasterio from rasterio.mask import mask from fiona.crs import … \_io.pyx", line 1409, in rasterio. …
Pitrako Junior's user avatar
3 votes
2 answers
2k views

Reading raster values in points gives back a generator object instead of actual value

Given a raster TIF file and a point feature class in a geodatabase, I am trying to extract the values of the raster on the points and add them as a new column on the point feature class. I am using th …
Pitrako Junior's user avatar
4 votes
2 answers
2k views

Updating a subset of raster values using open source Python?

My code: import os, sys, datetime, time import geopandas as gpd import gdal import rasterio from rasterio.mask import mask from fiona.crs import from_epsg import numpy as np import pycrs alr_path = Path …
Pitrako Junior's user avatar