<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html lang="en">
<head><meta http-equiv="Content-Type" content="text/html;">
<title>Scalix message content</title>
<style type="text/css">
<!--
.Normal {  text-align: left; text-indent:0pt; margin-top:0pt; margin-bottom:0pt; font-family: Arial; font-size: 12pt; }
.Default_Paragraph_Font {font-family: Arial; color: Black; background-color: white ; font-size: 12pt; font-weight: normal;  font-style: normal; font-variant: normal; vertical-align: normal; text-decoration: none;}
div.ltTOCtitle { font-family: Verdana; font-size: 8pt; font-weight: bold; text-align: center;}
div.ltTOCl1 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:32pt; text-indent:-32pt;}
div.ltTOCl2 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:40pt; text-indent:-32pt;}
div.ltTOCl3 {  font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:48pt; text-indent:-32pt;}
div.ltTOCl4 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:56pt; text-indent:-32pt;}
div.ltTOCl5 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:64pt; text-indent:-32pt;}
div.ltTOCl6 { font-family: Verdana; font-size: 8pt; font-weight: bold; margin-left:72pt; text-indent:-32pt;}
-->
</style>
</head>

<body>
<div class="Normal"><span style='font-size: 10pt; '>Thanks again
Marco!!</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Ah, it seems that
&DPI=96 should be added to the wms request. At the moment it renders
features at 1:6000 that should be only visible up to 1:5000.</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>Is there a way not to get
the wkt geometry when doing a getfeaturinfo? And getfeatureinfo is always
returning a result even if the feature is not visible. Don't know if this is the
desired behaviour?</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>regards</span><br><span style='font-size: 10pt; '>Stefan</span></div>
<br>
<div class="Normal"><span style='font-size: 10pt; '>> -----Ursprüngliche
Nachricht-----</span><br><span style='font-size: 10pt; '>> Von: Marco
Hugentobler
[mailto:marco.hugentobler@sourcepole.ch]</span><br><span style='font-size: 10pt; '>>
Gesendet am: Montag, 21. März 2011
13:23</span><br><span style='font-size: 10pt; '>> An: Ziegler
Stefan</span><br><span style='font-size: 10pt; '>> Cc:
qgis-user</span><br><span style='font-size: 10pt; '>> Betreff: Re: AW: Re:
AW: Re: [Qgis-user] QGIS mapserver
performance</span><br><span style='font-size: 10pt; '>>
</span><br><span style='font-size: 10pt; '>> Hi
Stefan</span><br><span style='font-size: 10pt; '>>
</span><br><span style='font-size: 10pt; '>> libqgis_core.so is probably not
in the standard library path. </span><br><span style='font-size: 10pt; '>>
You may point </span><br><span style='font-size: 10pt; '>> the fcgi module to
it by adding LD_LIBRARY_PATH  to
/etc/apache2/mods-</span><br><span style='font-size: 10pt; '>>
enabled/fcgi.conf:</span><br><span style='font-size: 10pt; '>>
</span><br><span style='font-size: 10pt; '>> <IfModule
mod_fcgid.c></span><br><span style='font-size: 10pt; '>>  
...</span><br><span style='font-size: 10pt; '>>   DefaultInitEnv
LD_LIBRARY_PATH
/home/marco/src/qgis_trunk/lib</span><br><span style='font-size: 10pt; '>>
...</span><br><span style='font-size: 10pt; '>>
</IfModule></span><br><span style='font-size: 10pt; '>>
</span><br><span style='font-size: 10pt; '>>
Regards,</span><br><span style='font-size: 10pt; '>>
Marco</span><br><span style='font-size: 10pt; '>>
</span><br><span style='font-size: 10pt; '>> Am Montag, 21. März 2011,
um 12.46:34 schrieb Ziegler
Stefan:</span><br><span style='font-size: 10pt; '>> > Hi
Marco</span><br><span style='font-size: 10pt; '>> >
</span><br><span style='font-size: 10pt; '>> > thanks. It was running as
cgi. But now I'm running into </span><br><span style='font-size: 10pt; '>>
problems with</span><br><span style='font-size: 10pt; '>> > using fastcgi
(ubuntu 10.10). A just get a 500 from apache.
</span><br><span style='font-size: 10pt; '>> The
messages</span><br><span style='font-size: 10pt; '>> > from error.log
are:</span><br><span style='font-size: 10pt; '>> >
</span><br><span style='font-size: 10pt; '>> >
/usr/lib/cgi-bin/av_wms_color/qgis_mapserv.fcgi: error while
loading</span><br><span style='font-size: 10pt; '>> > shared libraries:
libqgis_core.so.1.7.0: cannot open shared
object</span><br><span style='font-size: 10pt; '>> > file: No such file or
directory</span><br><span style='font-size: 10pt; '>> > [Mon Mar 21
12:42:43 2011] [warn] [client 127.0.0.1]
(104)Connection</span><br><span style='font-size: 10pt; '>> > reset by
peer: mod_fcgid: error reading data from FastCGI
server</span><br><span style='font-size: 10pt; '>> > [Mon Mar 21 12:42:43
2011] [error] [client 127.0.0.1] </span><br><span style='font-size: 10pt; '>>
Premature end of</span><br><span style='font-size: 10pt; '>> > script
headers: qgis_mapserv.fcgi</span><br><span style='font-size: 10pt; '>> >
[Mon Mar 21 12:42:43 2011] [error] [client 127.0.0.1] File does
not</span><br><span style='font-size: 10pt; '>> > exist:
/var/www/favicon.ico</span><br><span style='font-size: 10pt; '>> >
</span><br><span style='font-size: 10pt; '>> >
</span><br><span style='font-size: 10pt; '>> >
</span><br><span style='font-size: 10pt; '>> >
regards</span><br><span style='font-size: 10pt; '>> >
Stefan</span><br><span style='font-size: 10pt; '>> >
</span><br><span style='font-size: 10pt; '>> > >
-----Ursprüngliche
Nachricht-----</span><br><span style='font-size: 10pt; '>> > > Von:
Marco Hugentobler
[mailto:marco.hugentobler@sourcepole.ch]</span><br><span style='font-size: 10pt; '>>
> > Gesendet am: Montag, 21. März 2011
09:31</span><br><span style='font-size: 10pt; '>> > > An:
qgis-user@lists.osgeo.org</span><br><span style='font-size: 10pt; '>> >
> Betreff: Re: AW: Re: [Qgis-user] QGIS mapserver
performance</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > Hi
Stefan</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > It could be a problem
either with the FastCGI setup or
with</span><br><span style='font-size: 10pt; '>> > > the layer cache
in</span><br><span style='font-size: 10pt; '>> > > the
server.</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > If you look at the
operating system process list after
the</span><br><span style='font-size: 10pt; '>> > > QGIS server
request</span><br><span style='font-size: 10pt; '>> > > has finished,
do you still see an active entry? If not,
it</span><br><span style='font-size: 10pt; '>> > > could be that
it</span><br><span style='font-size: 10pt; '>> > > runs as a normal cgi
instead of fastcgi.</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > >
Regards,</span><br><span style='font-size: 10pt; '>> > >
Marco</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > Am Montag, 21.
März 2011, um 08.38:49 schrieb Ziegler
Stefan:</span><br><span style='font-size: 10pt; '>> > > > Hi
Andi</span><br><span style='font-size: 10pt; '>> > > >
</span><br><span style='font-size: 10pt; '>> > > > > What exactly
do you mean by "rendering straight
from</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > postgis"?
What</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > > > software is
rendering straight from Postgis?
UMN</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > Mapserver, or
what</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > > > other
renderer? Or your own renderer?</span><br><span style='font-size: 10pt; '>>
> > > </span><br><span style='font-size: 10pt; '>> > > >
No, "straight from postgis" means adding the layer in
QGIS</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > from
postgis.</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > > I save this qgis
project and make it available as
WMS.</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > Since there
is</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > > only QGIS (as
renderer) involved I thought there would
</span><br><span style='font-size: 10pt; '>> not be a
big</span><br><span style='font-size: 10pt; '>> > > > performance
difference. Ok, there is apache who is
</span><br><span style='font-size: 10pt; '>> handling the
cgi</span><br><span style='font-size: 10pt; '>> > > > request but
that won't take 4 seconds.</span><br><span style='font-size: 10pt; '>> >
> > </span><br><span style='font-size: 10pt; '>> > > > >
There are some performance bottlenecks regarding clipping
of</span><br><span style='font-size: 10pt; '>> > > > >
larger/more</span><br><span style='font-size: 10pt; '>> > > > >
complex polygons. Marco can tell you
more.</span><br><span style='font-size: 10pt; '>> > > >
</span><br><span style='font-size: 10pt; '>> > > > I don't think
it's a clipping issue since it's fast
when</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > adding the
same</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > > layer 'straight
from postgis' :) So there must be
some</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > additional
work</span><br><span style='font-size: 10pt; '>> > >
</span><br><span style='font-size: 10pt; '>> > > > when making a
detour.</span><br><span style='font-size: 10pt; '>> > > >
</span><br><span style='font-size: 10pt; '>> > > >
</span><br><span style='font-size: 10pt; '>> > > >
regards</span><br><span style='font-size: 10pt; '>> > > >
Stefan</span><br><span style='font-size: 10pt; '>> > > >
</span><br><span style='font-size: 10pt; '>> > > > >
Andreas</span><br><span style='font-size: 10pt; '>> > > > >
</span><br><span style='font-size: 10pt; '>> > > > > On 3/20/11
2:44 PM, Ziegler Stefan wrote:</span><br><span style='font-size: 10pt; '>>
> > > > > Hi</span><br><span style='font-size: 10pt; '>> >
> > > > </span><br><span style='font-size: 10pt; '>> > >
> > > I have some questions concerning the performance of
qgis</span><br><span style='font-size: 10pt; '>> > > > >
</span><br><span style='font-size: 10pt; '>> > > > > mapserver:
Using layers with a small amount of polygons I
do</span><br><span style='font-size: 10pt; '>> > > > > not see a
big difference between rendering the same
layer</span><br><span style='font-size: 10pt; '>> > > > >
straight from postgis and from local qgis
mapserver</span><br><span style='font-size: 10pt; '>> > > > >
installation. For a layer with some 400'000 polygons it
takes</span><br><span style='font-size: 10pt; '>> > > > > approx.
4 seconds from qgis mapserver (even for large
scales</span><br><span style='font-size: 10pt; '>> > > > > with
only some polygons to render). But it only takes
some</span><br><span style='font-size: 10pt; '>> > > > >
fractions of a second when the layer is rendered
straight</span><br><span style='font-size: 10pt; '>> > > > > from
postgis (and growing with smaller scales -> 
</span><br><span style='font-size: 10pt; '>> more
polyons).</span><br><span style='font-size: 10pt; '>> > > > >
</span><br><span style='font-size: 10pt; '>> > > > > >
Everything is running on a dual core laptop. So
there</span><br><span style='font-size: 10pt; '>> > > > >
</span><br><span style='font-size: 10pt; '>> > > > > should be no
big download bottleneck. No special styles
are</span><br><span style='font-size: 10pt; '>> > > > > applied
to the layers (just a simple fill and an
outline).</span><br><span style='font-size: 10pt; '>> > > > > Are
there some requests in addition to "GetMap"? Or
what's</span><br><span style='font-size: 10pt; '>> > > > >
responsible for this big
difference?</span><br><span style='font-size: 10pt; '>> > > > >
</span><br><span style='font-size: 10pt; '>> > > > > >
regards</span><br><span style='font-size: 10pt; '>> > > > > >
Stefan</span><br><span style='font-size: 10pt; '>> > > > > >
</span><br><span style='font-size: 10pt; '>> > > > > > Mit
freundlichem Gruss</span><br><span style='font-size: 10pt; '>> > > >
> > Stefan Ziegler</span><br><span style='font-size: 10pt; '>> >
> > > > Leiter amtliche
Vermessung</span><br><span style='font-size: 10pt; '>> > > > >
> </span><br><span style='font-size: 10pt; '>> > > > > >
Amt für Geoinformation</span><br><span style='font-size: 10pt; '>> >
> > > > Rötistrasse
4</span><br><span style='font-size: 10pt; '>> > > > > > 4501
Solothurn</span><br><span style='font-size: 10pt; '>> > > > >
> 032 627 75 96</span><br><span style='font-size: 10pt; '>> > > >
> >
_______________________________________________</span><br><span style='font-size: 10pt; '>>
> > > > > Qgis-user mailing
list</span><br><span style='font-size: 10pt; '>> > > > > >
Qgis-user@lists.osgeo.org</span><br><span style='font-size: 10pt; '>> >
> > > >
http://lists.osgeo.org/mailman/listinfo/qgis-user</span><br><span style='font-size: 10pt; '>>
> > > > </span><br><span style='font-size: 10pt; '>> > >
> >
_______________________________________________</span><br><span style='font-size: 10pt; '>>
> > > > Qgis-user mailing
list</span><br><span style='font-size: 10pt; '>> > > > >
Qgis-user@lists.osgeo.org</span><br><span style='font-size: 10pt; '>> >
> > >
http://lists.osgeo.org/mailman/listinfo/qgis-user</span><br><span style='font-size: 10pt; '>>
</span><br><span style='font-size: 10pt; '>>
</span><br><span style='font-size: 10pt; '>> --
</span><br><span style='font-size: 10pt; '>> Dr. Marco
Hugentobler</span><br><span style='font-size: 10pt; '>> Sourcepole -  Linux
& Open Source Solutions</span><br><span style='font-size: 10pt; '>>
Churerstrasse 22, CH-8808 Pfäffikon SZ,
Switzerland</span><br><span style='font-size: 10pt; '>>
marco.hugentobler@sourcepole.ch
http://www.sourcepole.ch</span><br><span style='font-size: 10pt; '>>
Technical Advisor QGIS Project Steering
Committee</span><br><span style='font-size: 10pt; '>> </span></div>



</body>

</html>