All Questions
78
questions
2
votes
1
answer
42
views
Rectangular Clipped Segments
I am trying to create four separate clipped quadrants to my full .laz file (See Figure 01). I was able to clip one quadrant of (number 03 in figure 01), but am struggling to identify points to clip ...
0
votes
0
answers
41
views
How to represent and manage polygons in the polar region that cross from East Russia to North America?
I'm trying to create a map of the Eastern part of Russia and the northern part of North America and I need to clip the coastline around that area. However, when I am trying to cut the section using sf ...
0
votes
0
answers
65
views
Terra/geodata world map cropping issues, possibly due to truncated extent
Cropping geodata world map across Greenwich (not exactly though) or close to the poles gives a "Topology Exception" error on RStudio (Posit) cloud, although not on RStudio desktop. Also, the ...
0
votes
1
answer
55
views
What Does It Mean To "Clip" A Polygon?
I have the following dataset in R - this dataset contains a list of geocoded addresses (Canada) with their Postal Codes, Longitudes and Latitudes: https://www.dropbox.com/scl/fi/9kjoqsppb85ip0tdc5wmr/...
4
votes
1
answer
467
views
Clipping lines from intersecting polygons with sf in R
I am attempting to clip sf lines where they overlap with polygons in R - the opposite of the clip in the image below:
I've created a reprex below, where the blue lines outside of the circle should be ...
0
votes
0
answers
46
views
Clip a SpatialGrid using a SpatialPolygon
In order to perform kriging methods using automap::autoKrige I need to provide a SpatialGrid for which values can be predicted. I would like to reduce the rectangular grid to the actual area (in this ...
1
vote
0
answers
174
views
Clipping a ggmap object by an sf object
Is there a way to clip a ggmap object by an sf object?
I have a Google Earth satellite image that I have pulled using ggmaps:
gmap<- get_map(location=c(lat = mylat, lon = mylon ), zoom=15, ...
-1
votes
1
answer
503
views
Resolving error of arguments imply differing number of rows
I downloaded climatic data layers at 5m resolution from worldclim database. I am planning to clip it using Sri Lanka polygon sourced from GDAL library. I made a raster stack of 15 layers using the ...
2
votes
1
answer
166
views
lidR: "Argument is not a LAS object" when using catalog_apply
I am using the lidR package to read lidar data (LAZ format), then using clip_roi() and normalize_height() to process the data for the segment trees function. These functions are being executed within ...
0
votes
2
answers
197
views
R problem: Crop Spatialpolygon with another Spatial object returns a square. Why?
I am using the raster::crop function to cut a Shape of multiple polygons (Agricultural Plots Information System) with another polygon (Formal Class spatialPolygonDataframe) and instead of cutting the ...
3
votes
2
answers
372
views
Overlay raster (h5 files) with shape files to get night light data in R
I am trying to combine ".h5" nightlight data files of Hawaii with zipcode-shapefile from Hawaii, but I am getting the following error:
#Error: [crop] extents do not overlap
The R codes are ...
0
votes
2
answers
3k
views
Clipping dataframe (spatial data) to area of interest using R
I have Global Fishing Watch data for the whole world in a dataframe with columns being Lon, Lat, fishing_hours, gear type.
How do I crop the data to my area of interest?
I have tried the following:
# ...
2
votes
1
answer
527
views
Crop raster by pixel position in R
I need to crop a raster (RasterLayer or RasterStack) to get a specific number of pixels in X and Y.
Let's imagine that we have a raster r with ncol(r)=6 and nrow(r)=11. I need to get a raster with 1st ...
1
vote
2
answers
639
views
Clip several rasters with multipolygon and save them as separate rasters using R
I'm trying to replicate this [example][1] but I'm not getting separate raster as an output. In my example, I have a multipolygon which has 2 polygons and 2 raster. My output I want to be 4 raster ...
3
votes
1
answer
1k
views
Batch process the clipping of multiple rasters by a corresponding polygon layer (different for each layer)?
I'm trying to clip ~300 rasters from a time series by vector masks to extract only reliable pixels - the vector polygons are different per raster. The file names are corresponding eg. ...