[Tile-serving] [mod_tile] Postgis Plugin: Bad connection (#91)

avirupd-egnaroinc notifications at github.com
Fri Mar 18 09:26:31 UTC 2016


I am trying to access remote systems postgis. I have configured the datasource-settings.xml like below

<Parameter name="type">postgis</Parameter>
<!-- <Parameter name="password">%(password)s</Parameter> -->
<Parameter name="host">192.168.1.3</Parameter>
<Parameter name="port">5432</Parameter>
<!-- <Parameter name="user"></Parameter> -->
<Parameter name="dbname">gis</Parameter>
<!-- this should be 'false' if you are manually providing the 'extent' -->
<Parameter name="estimate_extent">false</Parameter>
<!-- manually provided extent in epsg 900913 for whole globe -->
<!-- providing this speeds up Mapnik database queries -->
<Parameter name="extent">-20037508,-19929239,20037508,19929239</Parameter>

but while rendering renderd -f -c /usr/local/etc/renderd.conf I am getting the following error-
An error occurred while loading the map layer 'default': Postgis Plugin: Bad connection
Connection string: ' dbname=gis connect_timeout=4'
  encountered during parsing of layer 'landuse_gen0' in Layer at line 192 of '/usr/local/share/maps/style/OSMBright/OSMBright.xml'

I also have changed the pg_hba.conf to trust for the client ip. But nothing works.

Please help me with this. thanks in advance


---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/91#issuecomment-198273637
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20160318/1071f700/attachment.html>


More information about the Tile-serving mailing list