How to replace Geovis module

Hello guys,

I’m new on VTK and I’m trying to reproduce the examples on the topic 9.1 Geographic Views and Representation on the Users Guide book using Python.

The thing is it seems that Geovis was removed because I got an error from python saying that “vtkGeoView’ is not defined” and the entire module Geovis was marked as deprecated a while ago (https://vtk.org/pipermail/vtk-developers/2018-May/036092.html).

So my question is, how to work with geospatial visualization without this module? I did a research about it but all the examples and information regarding this topic uses Geovis module.

My final goal is to render a terrain map in a 3D View, so I’ve started to look at those 3D geospatial topics but got stuck on it.

I appreciate any help guys, thank you,

Thiago

Instead of simply dropping a VTK module, would it be possible to convert it to a remote module? That way, even if Kitware cannot afford to maintain a module, other groups who still need the features could take over the work.

Anyone can take it and make their own vtk-geovis project. The new build system should make it much easier to use all the VTK infrastructure without living inside of VTK itself. Feel free to file issues where things are missing (docs are on the list before 9.0).

Is there an example of such a project? I would be particularly interested in how Python wrapping is set up.

Auto wrapping does not yet exist for remote modules. Looking into this.

1 Like

Here’s SMTK’s porting of it:

https://gitlab.kitware.com/cmb/smtk/merge_requests/1693/diffs?commit_id=c3e733b526e069c3c494b65c9d87c12153ec6ee4

There’s some extra context around that for directories and paths and such, but the way VTK uses the exported CMake API is the same as anyone else’s use of them (NB: testing macros have some assumptions baked in; those aren’t so easy to reuse).

1 Like