0

I'm trying to georeference raster images to open them in ArcGIS Pro and make annotations.

I've used the Oriented Imagery toolset in ArcGIS Pro to get the footprint of each image based on camera specificities, altitude and orientation.

I exported the footprints polygons and I'm using them to extract the extent of each image in R and use it to georeference each raster image (open the image, assign the polygon boundaries to its extent, then saving as geotiff)

However, when I open the georeferenced raster, in R like in ArcGIS Pro, it doesn't align with the footprint, despite having the exact same extent:

plot(IMG)
plot(footprints[1], add=T, border="red")

enter image description here

ext(IMG) #extent of the raster

SpatExtent : 462774.903294892, 462961.507775558, 5846825.54872092, 5847043.96915049 (xmin, xmax, ymin, ymax)

extents[[1]] #extent of the footprint

SpatExtent : 462774.903294892, 462961.507775558, 5846825.54872092, 5847043.96915049 (xmin, xmax, ymin, ymax)

Any idea what's happening here ?

I need the raster to display properly to measure and annotate features on it. I know the dimensions of the footprint polygon are correct.

2
  • Are you expecting here that the IMG raster will be exactly within the red footprint? That would imply rotated or curvilinear coordinates, and terra doesn't do that. What's the coordinate system metadata of the IMG? The stars package might be able to handle it but you need to know the details of the rotation so it can compute the X,Y of each pixel instead of assuming an axis-aligned grid.
    – Spacedman
    Commented Sep 27 at 10:50
  • Thank you for your reply. Yes, I would expect the picture to fall in the red rectangle. The CRS is UTM 29N, I have the yaw angle of the camera available as the rotation value, which is what ArcPro used to build the footprints. I will look into the stars package, thanks for pointing it out.
    – Timelate
    Commented Sep 27 at 11:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.