Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PostGIS Support #39

Open
banesullivan opened this issue Jan 30, 2019 · 6 comments
Open

PostGIS Support #39

banesullivan opened this issue Jan 30, 2019 · 6 comments
Labels
Feature Request Request enhancements to the PVGP code repository

Comments

@banesullivan
Copy link
Member

We need an elegant solution to loading geo-referenced datasets from a PostGIS database into ParaView.

This issue will be a place to discuss what support for PostGIS will look like.

@banesullivan banesullivan added the Feature Request Request enhancements to the PVGP code repository label Jan 30, 2019
@fghorow
Copy link

fghorow commented Mar 11, 2019

It's not clear that it is elegant but creating an OGR .vrt file might do the trick if it were hooked up with Paraview's/Vtk's new-ish GDAL/OGR driver. (Assuming that said driver can be coerced into reading .vrt files, that is.) Maybe using this approach, PVGeo could support some kind of GUI front-end for such an operation?

@banesullivan
Copy link
Member Author

banesullivan commented Mar 11, 2019

Thanks for pointing this out @fghorow! Could you provide an example OGR .vrt file or point me to a webpage where I might be able to find a sample dataset to try this out?

@fghorow
Copy link

fghorow commented Mar 11, 2019

This appears to be an example:
http://cartometric.com/blog/2014/09/24/ogr-vrt-connect-to-postgis-datasource/
I have not tested it, so can't verify that it works, but it looks promising.
Here's the doc for the driver itself:
https://www.gdal.org/drv_vrt.html

@fghorow
Copy link

fghorow commented Mar 11, 2019

Also, at the risk of stating the incredibly obvious, a solution going through GDAL/OGR would open up all of that library's extensive collection of file formats for import and some for export too if that is meaningful...

@banesullivan
Copy link
Member Author

Thank you for sharing these resources! At the moment, I'm realizing that in order to use the GDAL/OGR drivers, a user would have to compile ParaView from source with support for those libraries. This is something I haven't been able to do and wouldn't expect a new user to do either.

On this note of how do we bring together datasets/formats from various software libraries into one visualization framework, most of our users are shifting towards using another project we've been developing for visualization to replace ParaView - vtki: A Streamlined Python Interface for the Visualization Toolkit. It's basically ParaView but in a Pure python environment! This avoids the need for ParaView all together and enables a user to let anaconda handle all the dependencies.

I'm curious about a few things from you @fghorow:

  1. Are you familiar with any Python libraries for reading PostGIS databases?
  2. How would you feel about using a Python-based visualization tool like vtki instead of ParaView?

We're rapidly shifting towards only using vtki as this allows us to connect all the various Python libraries out there for file IO and data access rather than building our own tools that are compatible with custom ParaView builds. If there are already established libraries for reading PostGIS databases and GDAL file formats, then we should leverage those libraries. This would enable us to focus on building the link between GDAL and VTK rather than the nuances of file IO for an incredibly sophisticated format/software suite.

@fghorow
Copy link

fghorow commented Mar 11, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Request enhancements to the PVGP code repository
Projects
None yet
Development

No branches or pull requests

2 participants