Linked Questions

3
votes
5answers
3k views

Get vector features inside a specific extent

The problem: I have a very large vector layer with many features and a much smaller raster layer in a defined region. I want to get only those vector features which are within the raster layers ...
6
votes
4answers
3k views

How do I extract a raster's extent in python?

I am looking for an easy way to extract a raster's extent in python. Currently, I am using gdalinfo and then parsing out the corner coordinates. The problem with this approach is that gdalinfo is ...
4
votes
2answers
2k views

Extract information from gdalinfo/ogrinfo

In Bash scripts, I use gdal(srs)info / ogrinfo to get information from raster / vector files. To use this information in my scripts, I'm extracting information using grep ... e.g. like this (to ...
2
votes
2answers
2k views

Clipping vector data from raster data in ArcGIS Desktop?

I have two files: National land cover data (raster) HUC 8 (vector files of watersheds) Both are national scale but the HUC 8 takes up a larger geographic region than the raster set so I want ...
2
votes
2answers
1k views

Determining coordinates of corners of raster layer using PyQGIS?

How can we determine the coordinates of the corners of the raster layer? The image opens function QgsRasterLayer.
2
votes
1answer
797 views

is it possible to open a geotiff file in python without using gdal?

Trying to get gdal and whichever associated python bindings installed with the oldish OS my company uses is extremely painful, especially so in ci/cd and testing situations. I keep coming across ...
1
vote
1answer
612 views

Python: how to set the extent of a raster file based on another raster file (No Arcpy)

What I want to realize is that 1, read a raster file as numpy array; 2, perform Gaussian blur for the array; 3, convert the array to raster file. When I convert the array to the raster file, I ...
0
votes
1answer
237 views

What is the Formula to get an Image's Bounding Box from it's GDAL GeoTransform Array?

I have a process which needs to read in an Image's GeoTransform Array, and convert it to the Bounding Box i.e. If the Input is: <GeoTransform> 7.8087700868360430e+05, 9.9974951285737870e+...
0
votes
1answer
131 views

How do I ignore points in a shapefile which do not overlay a raster in python?

I have a geo-referenced tiff file and a point shapefile. I want to ignore all the points in the shapefile which are outside raster's boundary.
1
vote
2answers
53 views

Unable to use GPS coordinates for GEOTiff map

I have been using a map to calculate some distances at sea. The map had a bit low resolution so I got another one with better resolution (both GEOTiff), but with the amounts of distances I need to ...