Hello
I'm trying to get the wgs84 coordinates of a face's vertices.
Preamble : I use a model that has been georeferenced using WGS84 GCPS.
Here's what I did :
doc = PhotoScan.app.document
chunk = doc.chunks[0]
model = chunk.models[0]
faces = model.faces
crs = PhotoScan.CoordinateSystem()
crs.init("EPSG::4326")
for face in faces:
if face.selected:
vertex = face.vertices[0]
unpro = crs.unproject(model.vertices[vertex].coord)
print (unpro)
Definitly, this does not provide a wgs84 coordinate.
What did I do wrong ?
Regards
Henri