How can I georeference a JPG with Python using pixel coordinates for source control points?

189
2
a week ago
HarunCelikOtto
New Contributor II

I have a series of JPG images with corresponding pixel coordinates on the image which will be used as the source control points for georeferencing. I know where the target points are in the coordinate plane so I would like to match the source point (in pixels) to the target point (in meters) using arcpy functionality. I've tried using the Warp tool which I understand expects the source points to also be in the units of the coordinate plane and since I only know the pixel position this doesn't work.

Is there a way I can achieve this?

0 Kudos
2 Replies
JoeLummi
New Contributor III

You can do that with the GDAL Python library.  See this link for starters:  https://gis.stackexchange.com/questions/116672/georeferencing-raster-using-gdal-and-python

0 Kudos
HarunCelikOtto
New Contributor II

Thank you Joe. I was able to accomplish what I wanted with the Rasterio module in Python but I was still curious if there was a native way to do this with the ArcGIS Pro's Arcpy.

0 Kudos