Author
Topic: Insert image GeoTiff (Read 1153 times)

How to get the coordinates of a TIF (Geotiff) file. These coordinates are defined within the same Tif file because AutoCAD C3D with the MAPIINSERT command gets this information.With these coordinates it is easy to insert inside AutoCAD.

Attached is a georeferenced TIF file and a file with the values of its coordinates ob- tained in AutoCAD C3D.

This could be done with lisp (i think). My method uses the "Windows Image Aquisition" object so would only work with windows. You would also need to dig further into cracking open to Ivector Object.The "Model tie point" is 33922 but again it is an Ivector object and you will need to work out how to extract the coordinates.BTW 34737 is the coordinate system and 33550 is the pixel scale.

My guess was that they correspond but I'm not sure how they are encoded.Do you have other tiff files that are in different locations? How are you getting the TIff files. Are you able to create them yourself?

All right, Rod, I was able to do this temporarily with GDALINFO (https://www.gdal.org). When I have time I will try again for your tip. I'll post the conversion here on the forum, maybe Lee Mac has a good suggestion.