marios_geo
(Marios Karaoulis)
#1
Hi,

I am trrying to add a geotiff image to paraview. I read from other replies, but I still don’t get how to do it.

I have a VTK file that looks like this

# vtk DataFile Version 3.0

BaseMap

ASCII

DATASET POLYDATA

POINTS 4 float

-804.52 51976.88 0.00 -804.52 7432.30 0.00 62262.81 7432.30 0.00 62262.81 51976.88 0.00

POLYGONS 1 5

4 1 2 3 0

This polygon, defines the area of the geotiff. I load the tiff image, but I can’t find how to embed that image to the plane.

Any advise?

marios_geo
(Marios Karaoulis)
#2
One follow up.

I plot the tiff. I know from the tiff (from gdal)

x_res, y_res, ulx (lower x coordinate) and uly (lower y coordinate).

Thus, in the properties of the iamge, I use as scale the x_scale=x_res and y_scale=y_res (z_scale=1)

And as origin x_origin=ulx/(1-xres) and y_origin=uly(1-yres).

This aligns the image perfectly, but I do not understand the math and why it is working