[Qgis-user] QGISWebserver and PostGIS-Layer problem

Tudor Barascu tudorbarascu at yahoo.com
Thu Apr 4 12:26:42 PDT 2013


Hello,

I'm exibiting a similar problem as here.
I have installed qgis-server and desktop 1.9 on ubuntu and WMS output using postgis as data source does not work.
Qgis desktop displays both projects just fine (database user & pass included in .qgs file).
I have struggled all day and I could not find any solution.
The projection is the same for .shp file and for the db, the layer name is the same, everything the same except data source.

#shp_test request displays well
http://localhost/cgi-bin/qgis_mapserv.fcgi?map=/usr/lib/cgi-bin/shp_test/world.qgs&&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=386548,331824,464924,455610&CRS=EPSG:3844&WIDTH=512&HEIGHT=512&LAYERS=aglomerari&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE

#postgis_test request that only displays white image
http://localhost/cgi-bin/qgis_mapserv.fcgi?map=/usr/lib/cgi-bin/postgis_test/world.qgs&&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=386548,331824,464924,455610&CRS=EPSG:3844&WIDTH=512&HEIGHT=512&LAYERS=aglomerari&STYLES=&FORMAT=image/png&TRANSPARENT=TRUE

#postgis_test getcapabilities is clearly bad

<Layer queryable="1"><Name>world</Name><Title>world</Title><CRS>EPSG:3844</CRS><EX_GeographicBoundingBox><westBoundLongitude>19.0326</westBoundLongitude><eastBoundLongitude>19.0326</eastBoundLongitude><southBoundLatitude>41.3392</southBoundLatitude><northBoundLatitude>41.3392</northBoundLatitude></EX_GeographicBoundingBox><BoundingBox CRS="EPSG:3844" maxx="0" minx="0" maxy="0" miny="0"/></Layer></Capability></WMS_Capabilities><Layer queryable="1"><Name>world</Name><Title>world</Title><CRS>EPSG:3844</CRS><EX_GeographicBoundingBox><westBoundLongitude>19.0326</westBoundLongitude><eastBoundLongitude>19.0326</eastBoundLongitude><southBoundLatitude>41.3392</southBoundLatitude><northBoundLatitude>41.3392</northBoundLatitude></EX_GeographicBoundingBox><BoundingBox CRS="EPSG:3844" maxx="0" minx="0" maxy="0" miny="0"/></Layer></Capability></WMS_Capabilities>


#shp_test getcapabilities is looks good and the wms output is allright

<Layer queryable="1"><Name>world</Name><Title>world</Title><CRS>EPSG:3844</CRS><EX_GeographicBoundingBox><westBoundLongitude>23.5737</westBoundLongitude><eastBoundLongitude>24.5504</eastBoundLongitude><southBoundLatitude>44.4856</southBoundLatitude><northBoundLatitude>45.5916</northBoundLatitude></EX_GeographicBoundingBox><BoundingBox CRS="EPSG:3844" maxx="464241" minx="388712" maxy="454717" miny="332694"/><Layer queryable="1"><Name>aglomerari</Name><Title>aglomerari</Title><CRS>EPSG:3844</CRS><EX_GeographicBoundingBox><westBoundLongitude>23.5737</westBoundLongitude><eastBoundLongitude>24.5504</eastBoundLongitude><southBoundLatitude>44.4856</southBoundLatitude><northBoundLatitude>45.5916</northBoundLatitude></EX_GeographicBoundingBox><BoundingBox CRS="EPSG:3844" maxx="464241" minx="388712" maxy="454717" miny="332694"/><Style><Name>default</Name><Title>default</Title></Style></Layer></Layer></Capability></WMS_Capabilities>



What could be the problem?
Thanks in advance,
Best regards,
Tudor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20130404/ec88d7ba/attachment.html>


More information about the Qgis-user mailing list