-
Notifications
You must be signed in to change notification settings - Fork 34
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
location & permissions for VRT file? #224
Comments
Well, the database will be attempting to access the file as the user the database is running under (usually |
Thanks Paul, appreciated. Found it... I had (sourced from an example at: #26 ) CREATE SERVER specify_vrt Finally found something not quite right... format should be: 'OGR_VRT' Then it works fine!!! Many thanks for all your efforts in providing such fantastic tools for people like me to play with... and finding time to help us use them... |
I think this ticket can be closed? |
I have a Postgres DB with ogr_fdw installed. I can successfully connect to a WFS service, and query the foreign table, and I'm now trying to access an external MySQL database using a VRT file.
The VRT file is working with QGIS (to retrieve and plot the data) and with ogr_fdw_info, eg:
ogr_fdw_info -s "/home/woodb/fdw/SpecifyQuery3.vrt"
Format: OGR_VRT
Layers:
collectionObjects
When I try to create the server in the Postgres db I get an error:
CREATE SERVER specify_vrt
FOREIGN DATA WRAPPER ogr_fdw
OPTIONS ( datasource '/home/woodb/fdw/SpecifyQuery3.vrt',
format 'VRT');"
ERROR: unable to connect to data source "/home/woodb/fdw/SpecifyQuery3.vrt"
I understand the message to mean the VRT file can't be found, rather than the file can be found but the datasource it points at can't. I have tried changing permissions & locations of the file, but have always got this error message.
Any advice on what I'm doing wrong here, and how to make this work?
Thanks.
The text was updated successfully, but these errors were encountered: