Re: [Qgis-user] Creating Geometries for tabular data

2015-11-25 Thread Martin Bain
I just had a chance to install master and try out the geometry type override, 
nice.  I see "GeometryCollection" is an option - have I been mistaken in 
thinking QGIS can't work with GeometryCollections?

The "force multi-type" option is a nice feature too - I'm currently struggling 
with a similar issue.
Regards,
Martin.

-Original Message-
From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Nyall 
Dawson
Sent: Tuesday, 24 November 2015 7:32 AM
To: Matthias Kuhn
Cc: qgis-user@lists.osgeo.org
Subject: Re: [Qgis-user] Creating Geometries for tabular data

On 17 November 2015 at 06:59, Matthias Kuhn  wrote:
> I use the process on a postgis DB, but Shapefiles are also capable of 
> having tabular data without geometries attached.
> However I do not know how you would create such a file (easily) from 
> an existing geometry-less layer.
>
> Maybe something like this:
> http://gis.stackexchange.com/questions/327/how-can-i-convert-an-excel-
> file-with-x-y-columns-to-a-shapefile
>
> Or try with adding a dummy geometry column in a csv so it loads as 
> points and then save as shapefile.

Ok, with improvements that just landed in QGIS master (see [1]) this is now 
MUCH easier. Now, you can right click the geometryless table in the legend and 
select "Save as". In the save vector layer dialog there's a new option to 
override the geometry type for the saved file.
So you can choose to save the geometryless table with a Point/Line/Polygon 
geometry, which will obviously all initially be empty. Then, you can select 
features from the attribute table and use the "add part" tool to attach 
geometries to these records.

The new option also lets you force the saved file to be multipart, which is 
also useful in some circumstances.

Nyall

[1] https://github.com/qgis/QGIS/commit/ffebfd9bb719daf1ffa9bf7dde68c6e5892dcb89

>
> Best,
> Matthias
>
>
> On 11/16/2015 03:00 PM, DelazJ wrote:
>
> Hi,
> Matthias, what kind of format can this file be?
> This is not the first time I see MapInfo user asking about this 
> feature. I personnaly had last week to add geometries to features that 
> were in a tabular file (csv) and couldn't find how to do this except 
> giving an unique ID to the table data, and in another shapefile 
> digitizing, filling ID after each drawing and, at the end joining 
> layers. It was possible because there was not so many features but it's 
> unfriendly.
> I thought I could save the csv into shapefile (even empty)  and 
> proceed with the "add part" tool but "saving as" failed.
> It would be nice if we could find a way to address this "issue"...
>
> 2015-11-16 7:22 GMT+01:00 Matthias Kuhn :
>>
>> Hi,
>>
>> IIRC you can use the "add part" tool to create geometries for 
>> existing objects. Just use the attribute table to select the proper 
>> object and then digitize with the add part tool. Of course the 
>> selected layer has to be capable of saving geomtries in the format 
>> you like (i.e. you cannot geometrizise an excel table).
>>
>> Cheers,
>> Matthias
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
>
> --
> Matthias Kuhn
> OPENGIS.ch - https://www.opengis.ch
> Spatial • (Q)GIS • PostGIS • Open Source
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

This email is intended for the named recipient only.  The information it 
contains may be confidential.  If you are not the intended recipient you must 
not reproduce or distribute any part of this email, disclose its contents to 
any other party or take any action in reliance on it.  If you have received 
this email in error, please contact the sender immediately and delete the 
message.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] split features tool on postgres layer causes pkey violation

2015-11-25 Thread Janneke van Dijk

Dear all,

When using the split features tool in 2.10 and 2.12 on a postgres layer 
(both on windows 7 and windows xp) I receive the following error after 
trying to save the edits:


"
Could not commit changes to layer a_streets


Errors: ERROR: 1 feature(s) not added.

Provider errors:

PostGIS error while adding features: ERROR: duplicate key value violates 
unique constraint "streets_pkey"


DETAIL: Key (streetsid)=(5) already exists.

"
The a_streets table has a serial primary key.

It seems similar to the bug described here: https://hub.qgis.org/issues/5475
in 1.9 that was apparently fixed 3 years ago.

Is this indeed a bug? Or can the tool not be used on postgres layers?

Thanks for any insights,

Janneke
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Project file format

2015-11-25 Thread Alex Mandel
On 11/25/2015 05:05 AM, James Keener wrote:
> If I wanted to embark on a fools errand of storing a project in a database, 
> in a structured manner, is there a spec for the project file format, or is it 
> what it is?
> 
> 

Please ask this question on the qgis-developer mailing list (and other
similar questions).

I believe there has been some work in the past on storing project data
in sqlite/spatialite and postgis already. I know at least styles have
been done.

Thanks,
Alex

___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Convert to Offline Project problems with multi-part geometries

2015-11-25 Thread Martin Bain
The convert to offline project looks like a really quick, simple way to create 
a portable copy of our database layers for disconnected use.

The problem I have is a lot of layers contain some multipart geometries.  In 
this situation the geometry type for the offline table will get set incorrectly 
for single part geometries.  I'm guessing the geometry type is inferred from 
the first record (or maybe the first n records).  When it attempts the copy all 
the rows to the offline table it throws an error when it encounters a multipart 
geometry, causing the whole transaction to be rolled back, resulting in an 
empty offline table.

Can anyone suggest a way I could get this to work?  Or an alternative method to 
quickly cache a lot of database layers locally.  The one-click convert to 
offline is appealing - if only it worked.

Thanks,
Martin.


This email is intended for the named recipient only.  The information it 
contains may be confidential.  If you are not the intended recipient you must 
not reproduce or distribute any part of this email, disclose its contents to 
any other party or take any action in reliance on it.  If you have received 
this email in error, please contact the sender immediately and delete the 
message.___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Luigi Pirelli
a compilation problem with Ubuntu Wily 64b more info here:

https://github.com/qgis/QGIS/commit/de602e7b2dd44c1845ea27685f84f8f885233879
Luigi Pirelli

**
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**


On 25 November 2015 at 19:12, Jachym Cepicky  wrote:
> Hmm, I can not compile :-(
> https://gist.github.com/luipir/dac9f2b67bb051e47767
>
>
>
> st 25. 11. 2015 v 14:50 odesílatel Andreas Neumann 
> napsal:
>>
>> Hi Jachym,
>>
>> I believe this is a bug in the 2.12 release - or in the 2.12 ubuntu QGIS
>> package. Because 3 people reported it almost at the same time.
>>
>> I just compiled master on my server and WFS works fine. So it's most
>> likely fixed in master but would have to be backported to 2.12.x release and
>> 2.8.4 release.
>>
>> However, I don't know which commit fixed this issue.
>>
>>
>> Andreas
>>
>>
>> On 25.11.2015 14:37, Jachym Cepicky wrote:
>>
>> Andreas,
>>
>> thanks for clarification: I've not tedste GetPrint yet. Yes, GetMap works
>> (without DISPLAY set)
>>
>> about location of .qgs file - I just use it locally, try to get owslib to
>> work along with QGIS-WFS Server, so just for testing so far, but thanks for
>> reminding me
>>
>> Jachym
>>
>> st 25. 11. 2015 v 14:02 odesílatel Andreas Neumann 
>> napsal:
>>>
>>> Hi Jachym,
>>>
>>> If WMS works (from the same project) and even GetPrint works, it
>>> shouldn't be the problem of the XServer or the DISPLAY variable.
>>>
>>> The XServer is required for printing as PDF (getPrint) and I believe also
>>> for rendering SVG symbols or patterns. X-Server (or an X-Server replacement,
>>> such XVNC) is required for QGIS Server - even if it is quite uncommon that
>>> an X-Server runs on a machine that also runs the Webserver.
>>>
>>> BTW: you should never put your .qgs project files in a path readable by
>>> the Webserver, but always outside. Just because you list /var/www/html -
>>> which is often the Server Root.
>>>
>>> .qgs files may contain sensitive information (such as db connections,
>>> passwords, etc.) and it shouldn't be downloadable from a web client.
>>>
>>>
>>> Andreas
>>>
>>>
>>> On 25.11.2015 13:48, Jachym Cepicky wrote:
>>>
>>> Hi Andreas: yes, it's 2.12,
>>>
>>> command line works:
>>>
>>> QGIS_PROJECT_FILE=/var/www/html/tmp/pokus/vrstva.qgs
>>> QUERY_STRING="SERVICE=WFS=GetFeature=vrstva"
>>>
>>> /var/www/cgi-bin/qgis_mapserv.fcgi
>>>
>>> response as expected
>>>
>>> Is it possible, that it's related to DISPLAY variable? I've seen it in
>>> some documentation .. if set to :0 or :99 server returns ServerError
>>>
>>> Thanks
>>>
>>> Jachym
>>>
>>> st 25. 11. 2015 v 13:32 odesílatel Andreas Neumann 
>>> napsal:

 Since your are now the third person who has the same problem, within the
 couple of days, I suspect that there really is a bug in QGIS server in this
 particular release.

 Is this on 2.12?


 Andreas


 On 25.11.2015 12:29, Jachym Cepicky wrote:

 hi Stefan,

 apache runs as www-data

 the file is accessible via http://localhost/tmp/pokus/vrstva.shp -  so I
 assume, it is readable by www-data

 GetMap request as WMS works
 GetFeatureType as WFS does not

 thanks

 Jachym

 st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan
  napsal:
>
> Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data”
> (which is the default user for accessing QGIS Server I assume)? Or is that
> the ‘apache user’ you referred to or did you configure apache to 
> explicitly
> access through another user than ‘www-data’?
>
>
>
> Cheers
>
> Stefan
>
>
>
> From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of
> Jachym Cepicky
> Sent: 25. november 2015 11:28
> To: qgis-user@lists.osgeo.org
> Subject: [Qgis-user] qgis server does not return any data from WFS
>
>
>
> Hi,
>
>
>
> several days, I'm fighting QGIS server - on lightttpd now on Apache
> server with *same* result: WFS GetFeatureType request does not return any
> data.
>
>
>
> I created project, set all necessary metadat, coordinate systems, made
> sure data are in readable path etc...
>
>
>
> I've published the service using qgis_mapserver.fcgi - WMS works
> (GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just 

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Jachym Cepicky
Hmm, I can not compile :-(
https://gist.github.com/luipir/dac9f2b67bb051e47767



st 25. 11. 2015 v 14:50 odesílatel Andreas Neumann 
napsal:

> Hi Jachym,
>
> I believe this is a bug in the 2.12 release - or in the 2.12 ubuntu QGIS
> package. Because 3 people reported it almost at the same time.
>
> I just compiled master on my server and WFS works fine. So it's most
> likely fixed in master but would have to be backported to 2.12.x release
> and 2.8.4 release.
>
> However, I don't know which commit fixed this issue.
>
>
> Andreas
>
>
> On 25.11.2015 14:37, Jachym Cepicky wrote:
>
> Andreas,
>
> thanks for clarification: I've not tedste GetPrint yet. Yes, GetMap works
> (without DISPLAY set)
>
> about location of .qgs file - I just use it locally, try to get owslib to
> work along with QGIS-WFS Server, so just for testing so far, but thanks for
> reminding me
>
> Jachym
>
> st 25. 11. 2015 v 14:02 odesílatel Andreas Neumann 
> napsal:
>
>> Hi Jachym,
>>
>> If WMS works (from the same project) and even GetPrint works, it
>> shouldn't be the problem of the XServer or the DISPLAY variable.
>>
>> The XServer is required for printing as PDF (getPrint) and I believe also
>> for rendering SVG symbols or patterns. X-Server (or an X-Server
>> replacement, such XVNC) is required for QGIS Server - even if it is quite
>> uncommon that an X-Server runs on a machine that also runs the Webserver.
>>
>> BTW: you should never put your .qgs project files in a path readable by
>> the Webserver, but always outside. Just because you list /var/www/html -
>> which is often the Server Root.
>>
>> .qgs files may contain sensitive information (such as db connections,
>> passwords, etc.) and it shouldn't be downloadable from a web client.
>>
>>
>> Andreas
>>
>>
>> On 25.11.2015 13:48, Jachym Cepicky wrote:
>>
>> Hi Andreas: yes, it's 2.12,
>>
>> command line works:
>>
>> QGIS_PROJECT_FILE=/var/www/html/tmp/pokus/vrstva.qgs
>> QUERY_STRING="SERVICE=WFS=GetFeature=vrstva"
>>
>> /var/www/cgi-bin/qgis_mapserv.fcgi
>>
>> response as expected
>>
>> Is it possible, that it's related to DISPLAY variable? I've seen it in
>> some documentation .. if set to :0 or :99 server returns ServerError
>>
>> Thanks
>>
>> Jachym
>>
>> st 25. 11. 2015 v 13:32 odesílatel Andreas Neumann 
>> napsal:
>>
>>> Since your are now the third person who has the same problem, within the
>>> couple of days, I suspect that there really is a bug in QGIS server in this
>>> particular release.
>>>
>>> Is this on 2.12?
>>>
>>>
>>> Andreas
>>>
>>>
>>> On 25.11.2015 12:29, Jachym Cepicky wrote:
>>>
>>> hi Stefan,
>>>
>>> apache runs as www-data
>>>
>>> the file is accessible via http://localhost/tmp/pokus/vrstva.shp -  so
>>> I assume, it is readable by www-data
>>>
>>> GetMap request as WMS works
>>> GetFeatureType as WFS does not
>>>
>>> thanks
>>>
>>> Jachym
>>>
>>> st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan <
>>> stefan.blumentr...@nina.no> napsal:
>>>
 Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data”
 (which is the default user for accessing QGIS Server I assume)? Or is that
 the ‘apache user’ you referred to or did you configure apache to explicitly
 access through another user than ‘www-data’?



 Cheers

 Stefan



 *From:* Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] *On
 Behalf Of *Jachym Cepicky
 *Sent:* 25. november 2015 11:28
 *To:* qgis-user@lists.osgeo.org
 *Subject:* [Qgis-user] qgis server does not return any data from WFS



 Hi,



 several days, I'm fighting QGIS server - on lightttpd now on Apache
 server with *same* result: WFS GetFeatureType request does not return any
 data.



 I created project, set all necessary metadat, coordinate systems, made
 sure data are in readable path etc...



 I've published the service using qgis_mapserver.fcgi - WMS works
 (GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for
 GetCapabilitiers, GetFeatureType request returns just the first response
 element



 http://www.opengis.net/wfs;
 xmlns:ogc="h .>



 and that's all - not even the closing tag. It seems, the server refuses
 to work in the middle of construction of the response :-(



 I have



 FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis

 FcgidInitialEnv QGIS_DEBUG 1

 FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log

 FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1





 but  /tmp/qgis-server.log is empty (even created)



 In the apache error log, only following lines can be found:

 Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
 environment variable.

 

Re: [Qgis-user] how to add grass module in processing toolbox

2015-11-25 Thread matteo
Hi Eugenio,
I never did this, but I think is a pretty simple operation..

I think that all the GRASS7 algorithms are stored here:

https://github.com/qgis/QGIS/tree/master/python/plugins/processing/algs/grass7/description

all the algorithms are text files.. so you can create a new file and be
careful to add all the parameters..

maybe do some test on your local machine and then ask for a pull request
on github..

Maybe someone else in this list can help you more in details..

Cheers

Matteo
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Help! print layout problem

2015-11-25 Thread Giacomo Minotti
Hi all,
is it possible to have more than one "atlante" in one print model?
I have an area divided in 10 parts (10 different papers) and I need to
change the equivalent sub-area the legend for each paper. What can I do
this?
My legends are image files, but they can be also shp file.
Thanks
Giacomo
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Help SENSUM Plugin Installation

2015-11-25 Thread walid rabehi
Hi all

I tried to install SENSUM Plugin into QGIS Brighton, following all the
steps given on the officiel link of installation :
http://lhotse21.gfz-potsdam.de/sensum/sensum_rs_doc/install.html

But still not work, worst Qgis can't even connect to internet to find
Package like usual (screen shot attached).


Thanks




-- 
Walid RABEHI

Tel: 00213554300293
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Jachym Cepicky
Hi,

several days, I'm fighting QGIS server - on lightttpd now on Apache server
with *same* result: WFS GetFeatureType request does not return any data.

I created project, set all necessary metadat, coordinate systems, made sure
data are in readable path etc...

I've published the service using qgis_mapserver.fcgi - WMS works
(GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for
GetCapabilitiers, GetFeatureType request returns just the first response
element

http://www.opengis.net/wfs; xmlns:ogc="h
.>

and that's all - not even the closing tag. It seems, the server refuses to
work in the middle of construction of the response :-(

I have

FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis
FcgidInitialEnv QGIS_DEBUG 1
FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1


but  /tmp/qgis-server.log is empty (even created)

In the apache error log, only following lines can be found:
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
environment variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
environment variable.
ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or
/var/www/html/tmp/pokus/vrstva.SHP.


BUT, accessing the file vrstva.shp from
http://localhost/tmp/pokus/vrstva.shp works, apache user can read it and,
as I already said: WMS GetMap and GetFeatureInfo works

I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well as apache,
with old projects as well as completely new with just one line in shapefile
- same result all the time.  Ubuntu 15.10 btw.

Any hint?

Thanks

Jachym
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Blumentrath, Stefan
Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data” (which is 
the default user for accessing QGIS Server I assume)? Or is that the ‘apache 
user’ you referred to or did you configure apache to explicitly access through 
another user than ‘www-data’?

Cheers
Stefan

From: Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] On Behalf Of Jachym 
Cepicky
Sent: 25. november 2015 11:28
To: qgis-user@lists.osgeo.org
Subject: [Qgis-user] qgis server does not return any data from WFS

Hi,

several days, I'm fighting QGIS server - on lightttpd now on Apache server with 
*same* result: WFS GetFeatureType request does not return any data.

I created project, set all necessary metadat, coordinate systems, made sure 
data are in readable path etc...

I've published the service using qgis_mapserver.fcgi - WMS works 
(GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for 
GetCapabilitiers, GetFeatureType request returns just the first response element

http://www.opengis.net/wfs; xmlns:ogc="h 
.>

and that's all - not even the closing tag. It seems, the server refuses to work 
in the middle of construction of the response :-(

I have

FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis
FcgidInitialEnv QGIS_DEBUG 1
FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1


but  /tmp/qgis-server.log is empty (even created)

In the apache error log, only following lines can be found:
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment 
variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment 
variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment 
variable.
Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment 
variable.
Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP environment 
variable.
ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or 
/var/www/html/tmp/pokus/vrstva.SHP.


BUT, accessing the file vrstva.shp from http://localhost/tmp/pokus/vrstva.shp 
works, apache user can read it and, as I already said: WMS GetMap and 
GetFeatureInfo works

I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well as apache, with 
old projects as well as completely new with just one line in shapefile - same 
result all the time.  Ubuntu 15.10 btw.

Any hint?

Thanks

Jachym
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Alessandro Pasotti
Can you try from the command line?

You can specify the input through env vars:

https://github.com/qgis/QGIS-Documentation/blob/master/source/docs/user_manual/working_with_ogc/ogc_server_support.rst#environment-variables

If still doesn't work, you might consider to file a bug report and attach
the smallest project to reproduce the issue.



2015-11-25 12:29 GMT+01:00 Jachym Cepicky :

> hi Stefan,
>
> apache runs as www-data
>
> the file is accessible via http://localhost/tmp/pokus/vrstva.shp -  so I
> assume, it is readable by www-data
>
> GetMap request as WMS works
> GetFeatureType as WFS does not
>
> thanks
>
> Jachym
>
> st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan <
> stefan.blumentr...@nina.no> napsal:
>
>> Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data” (which
>> is the default user for accessing QGIS Server I assume)? Or is that the
>> ‘apache user’ you referred to or did you configure apache to explicitly
>> access through another user than ‘www-data’?
>>
>>
>>
>> Cheers
>>
>> Stefan
>>
>>
>>
>> *From:* Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] *On Behalf
>> Of *Jachym Cepicky
>> *Sent:* 25. november 2015 11:28
>> *To:* qgis-user@lists.osgeo.org
>> *Subject:* [Qgis-user] qgis server does not return any data from WFS
>>
>>
>>
>> Hi,
>>
>>
>>
>> several days, I'm fighting QGIS server - on lightttpd now on Apache
>> server with *same* result: WFS GetFeatureType request does not return any
>> data.
>>
>>
>>
>> I created project, set all necessary metadat, coordinate systems, made
>> sure data are in readable path etc...
>>
>>
>>
>> I've published the service using qgis_mapserver.fcgi - WMS works
>> (GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for
>> GetCapabilitiers, GetFeatureType request returns just the first response
>> element
>>
>>
>>
>> http://www.opengis.net/wfs;
>> xmlns:ogc="h .>
>>
>>
>>
>> and that's all - not even the closing tag. It seems, the server refuses
>> to work in the middle of construction of the response :-(
>>
>>
>>
>> I have
>>
>>
>>
>> FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis
>>
>> FcgidInitialEnv QGIS_DEBUG 1
>>
>> FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log
>>
>> FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1
>>
>>
>>
>>
>>
>> but  /tmp/qgis-server.log is empty (even created)
>>
>>
>>
>> In the apache error log, only following lines can be found:
>>
>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
>> variable.
>>
>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
>> variable.
>>
>> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
>> environment variable.
>>
>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
>> variable.
>>
>> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
>> environment variable.
>>
>> ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or
>> /var/www/html/tmp/pokus/vrstva.SHP.
>>
>>
>>
>>
>>
>> BUT, accessing the file vrstva.shp from
>> http://localhost/tmp/pokus/vrstva.shp works, apache user can read it
>> and, as I already said: WMS GetMap and GetFeatureInfo works
>>
>>
>>
>> I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well as apache,
>> with old projects as well as completely new with just one line in shapefile
>> - same result all the time.  Ubuntu 15.10 btw.
>>
>>
>>
>> Any hint?
>>
>>
>>
>> Thanks
>>
>>
>>
>> Jachym
>>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
Alessandro Pasotti
w3:   www.itopen.it
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Andreas Neumann
Since your are now the third person who has the same problem, within the 
couple of days, I suspect that there really is a bug in QGIS server in 
this particular release.


Is this on 2.12?

Andreas

On 25.11.2015 12:29, Jachym Cepicky wrote:

hi Stefan,

apache runs as www-data

the file is accessible via http://localhost/tmp/pokus/vrstva.shp -  so 
I assume, it is readable by www-data


GetMap request as WMS works
GetFeatureType as WFS does not

thanks

Jachym

st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan 
> napsal:


Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data”
(which is the default user for accessing QGIS Server I assume)? Or
is that the ‘apache user’ you referred to or did you configure
apache to explicitly access through another user than ‘www-data’?

Cheers

Stefan

*From:*Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org
] *On Behalf Of *Jachym
Cepicky
*Sent:* 25. november 2015 11:28
*To:* qgis-user@lists.osgeo.org 
*Subject:* [Qgis-user] qgis server does not return any data from WFS

Hi,

several days, I'm fighting QGIS server - on lightttpd now on
Apache server with *same* result: WFS GetFeatureType request does
not return any data.

I created project, set all necessary metadat, coordinate systems,
made sure data are in readable path etc...

I've published the service using qgis_mapserver.fcgi - WMS works
(GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for
GetCapabilitiers, GetFeatureType request returns just the first
response element

http://www.opengis.net/wfs;
xmlns:ogc="h .>

and that's all - not even the closing tag. It seems, the server
refuses to work in the middle of construction of the response :-(

I have

FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis

FcgidInitialEnv QGIS_DEBUG 1

FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log

FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1

but  /tmp/qgis-server.log is empty (even created)

In the apache error log, only following lines can be found:

Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.

Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.

Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
environment variable.

Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.

Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
environment variable.

ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or
/var/www/html/tmp/pokus/vrstva.SHP.

BUT, accessing the file vrstva.shp from
http://localhost/tmp/pokus/vrstva.shp
 works, apache user can
read it and, as I already said: WMS GetMap and GetFeatureInfo works

I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well as
apache, with old projects as well as completely new with just one
line in shapefile - same result all the time. Ubuntu 15.10 btw.

Any hint?

Thanks

Jachym



___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user


___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Help SENSUM Plugin Installation

2015-11-25 Thread Luigi Pirelli
why not asking directly to the developer?
Luigi Pirelli

**
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS:
https://www.packtpub.com/application-development/mastering-qgis
**


On 25 November 2015 at 10:47, walid rabehi  wrote:
> Hi all
>
> I tried to install SENSUM Plugin into QGIS Brighton, following all the steps
> given on the officiel link of installation :
> http://lhotse21.gfz-potsdam.de/sensum/sensum_rs_doc/install.html
>
> But still not work, worst Qgis can't even connect to internet to find
> Package like usual (screen shot attached).
>
>
> Thanks
>
>
>
>
> --
> Walid RABEHI
>
> Tel: 00213554300293
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] -: Instalación avanzada de QGIS 2.12 LYON

2015-11-25 Thread Eddison Araya
Estimados amigos (as), hice la instalación avanzada siguiendo los pasos de
aquí:
http://geoblog.alwaysdata.net/2015/instalacion-y-configuracion-de-herramientas-foss-e/
para
instalar la versión QGIS2.12 LYON.

Mi maquina es una de 64 bits con Windows 7 Profesional

Cuando intento correr el Monteverdi 2 dentro del menú Osgeo me pone el
error de que falta el archivo qwt5.dll, alguien sabe por favor de que se
trata? y el Monteverdi 2 no ingresa.

Muchas gracias
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Jachym Cepicky
hi Stefan,

apache runs as www-data

the file is accessible via http://localhost/tmp/pokus/vrstva.shp -  so I
assume, it is readable by www-data

GetMap request as WMS works
GetFeatureType as WFS does not

thanks

Jachym

st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan <
stefan.blumentr...@nina.no> napsal:

> Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data” (which
> is the default user for accessing QGIS Server I assume)? Or is that the
> ‘apache user’ you referred to or did you configure apache to explicitly
> access through another user than ‘www-data’?
>
>
>
> Cheers
>
> Stefan
>
>
>
> *From:* Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] *On Behalf
> Of *Jachym Cepicky
> *Sent:* 25. november 2015 11:28
> *To:* qgis-user@lists.osgeo.org
> *Subject:* [Qgis-user] qgis server does not return any data from WFS
>
>
>
> Hi,
>
>
>
> several days, I'm fighting QGIS server - on lightttpd now on Apache server
> with *same* result: WFS GetFeatureType request does not return any data.
>
>
>
> I created project, set all necessary metadat, coordinate systems, made
> sure data are in readable path etc...
>
>
>
> I've published the service using qgis_mapserver.fcgi - WMS works
> (GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for
> GetCapabilitiers, GetFeatureType request returns just the first response
> element
>
>
>
> http://www.opengis.net/wfs;
> xmlns:ogc="h .>
>
>
>
> and that's all - not even the closing tag. It seems, the server refuses to
> work in the middle of construction of the response :-(
>
>
>
> I have
>
>
>
> FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis
>
> FcgidInitialEnv QGIS_DEBUG 1
>
> FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log
>
> FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1
>
>
>
>
>
> but  /tmp/qgis-server.log is empty (even created)
>
>
>
> In the apache error log, only following lines can be found:
>
> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
> variable.
>
> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
> variable.
>
> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
> environment variable.
>
> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
> variable.
>
> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
> environment variable.
>
> ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or
> /var/www/html/tmp/pokus/vrstva.SHP.
>
>
>
>
>
> BUT, accessing the file vrstva.shp from
> http://localhost/tmp/pokus/vrstva.shp works, apache user can read it and,
> as I already said: WMS GetMap and GetFeatureInfo works
>
>
>
> I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well as apache,
> with old projects as well as completely new with just one line in shapefile
> - same result all the time.  Ubuntu 15.10 btw.
>
>
>
> Any hint?
>
>
>
> Thanks
>
>
>
> Jachym
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Alessandro Pasotti
2015-11-25 13:48 GMT+01:00 Jachym Cepicky :

> Hi Andreas: yes, it's 2.12,
>
> command line works:
>
> QGIS_PROJECT_FILE=/var/www/html/tmp/pokus/vrstva.qgs
> QUERY_STRING="SERVICE=WFS=GetFeature=vrstva"
>
> /var/www/cgi-bin/qgis_mapserv.fcgi
>
> response as expected
>
> Is it possible, that it's related to DISPLAY variable? I've seen it in
> some documentation .. if set to :0 or :99 server returns ServerError
>

You need a fake-X server too listening on that display.

And if that is your case, the server segfaults.



>
> Thanks
>
> Jachym
>
> st 25. 11. 2015 v 13:32 odesílatel Andreas Neumann 
> napsal:
>
>> Since your are now the third person who has the same problem, within the
>> couple of days, I suspect that there really is a bug in QGIS server in this
>> particular release.
>>
>> Is this on 2.12?
>>
>>
>> Andreas
>>
>>
>> On 25.11.2015 12:29, Jachym Cepicky wrote:
>>
>> hi Stefan,
>>
>> apache runs as www-data
>>
>> the file is accessible via http://localhost/tmp/pokus/vrstva.shp -  so I
>> assume, it is readable by www-data
>>
>> GetMap request as WMS works
>> GetFeatureType as WFS does not
>>
>> thanks
>>
>> Jachym
>>
>> st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan <
>> stefan.blumentr...@nina.no> napsal:
>>
>>> Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data”
>>> (which is the default user for accessing QGIS Server I assume)? Or is that
>>> the ‘apache user’ you referred to or did you configure apache to explicitly
>>> access through another user than ‘www-data’?
>>>
>>>
>>>
>>> Cheers
>>>
>>> Stefan
>>>
>>>
>>>
>>> *From:* Qgis-user [mailto: 
>>> qgis-user-boun...@lists.osgeo.org] *On Behalf Of *Jachym Cepicky
>>> *Sent:* 25. november 2015 11:28
>>> *To:* qgis-user@lists.osgeo.org
>>> *Subject:* [Qgis-user] qgis server does not return any data from WFS
>>>
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> several days, I'm fighting QGIS server - on lightttpd now on Apache
>>> server with *same* result: WFS GetFeatureType request does not return any
>>> data.
>>>
>>>
>>>
>>> I created project, set all necessary metadat, coordinate systems, made
>>> sure data are in readable path etc...
>>>
>>>
>>>
>>> I've published the service using qgis_mapserver.fcgi - WMS works
>>> (GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for
>>> GetCapabilitiers, GetFeatureType request returns just the first response
>>> element
>>>
>>>
>>>
>>> http://www.opengis.net/wfs;
>>> xmlns:ogc="h .>
>>>
>>>
>>>
>>> and that's all - not even the closing tag. It seems, the server refuses
>>> to work in the middle of construction of the response :-(
>>>
>>>
>>>
>>> I have
>>>
>>>
>>>
>>> FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis
>>>
>>> FcgidInitialEnv QGIS_DEBUG 1
>>>
>>> FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log
>>>
>>> FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1
>>>
>>>
>>>
>>>
>>>
>>> but  /tmp/qgis-server.log is empty (even created)
>>>
>>>
>>>
>>> In the apache error log, only following lines can be found:
>>>
>>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or
>>> /var/www/html/tmp/pokus/vrstva.SHP.
>>>
>>>
>>>
>>>
>>>
>>> BUT, accessing the file vrstva.shp from
>>> http://localhost/tmp/pokus/vrstva.shp works, apache user can read it
>>> and, as I already said: WMS GetMap and GetFeatureInfo works
>>>
>>>
>>>
>>> I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well as apache,
>>> with old projects as well as completely new with just one line in shapefile
>>> - same result all the time.  Ubuntu 15.10 btw.
>>>
>>>
>>>
>>> Any hint?
>>>
>>>
>>>
>>> Thanks
>>>
>>>
>>>
>>> Jachym
>>>
>>
>>
>> ___
>> Qgis-user mailing listqgis-u...@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
Alessandro Pasotti
w3:   www.itopen.it

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Andreas Neumann

Hi Jachym,

If WMS works (from the same project) and even GetPrint works, it 
shouldn't be the problem of the XServer or the DISPLAY variable.


The XServer is required for printing as PDF (getPrint) and I believe 
also for rendering SVG symbols or patterns. X-Server (or an X-Server 
replacement, such XVNC) is required for QGIS Server - even if it is 
quite uncommon that an X-Server runs on a machine that also runs the 
Webserver.


BTW: you should never put your .qgs project files in a path readable by 
the Webserver, but always outside. Just because you list /var/www/html - 
which is often the Server Root.


.qgs files may contain sensitive information (such as db connections, 
passwords, etc.) and it shouldn't be downloadable from a web client.


Andreas

On 25.11.2015 13:48, Jachym Cepicky wrote:

Hi Andreas: yes, it's 2.12,

command line works:

QGIS_PROJECT_FILE=/var/www/html/tmp/pokus/vrstva.qgs
QUERY_STRING="SERVICE=WFS=GetFeature=vrstva"

/var/www/cgi-bin/qgis_mapserv.fcgi

response as expected

Is it possible, that it's related to DISPLAY variable? I've seen it in 
some documentation .. if set to :0 or :99 server returns ServerError


Thanks

Jachym

st 25. 11. 2015 v 13:32 odesílatel Andreas Neumann 
> napsal:


Since your are now the third person who has the same problem,
within the couple of days, I suspect that there really is a bug in
QGIS server in this particular release.

Is this on 2.12?


Andreas


On 25.11.2015 12:29, Jachym Cepicky wrote:

hi Stefan,

apache runs as www-data

the file is accessible via
http://localhost/tmp/pokus/vrstva.shp -  so I assume, it is
readable by www-data

GetMap request as WMS works
GetFeatureType as WFS does not

thanks

Jachym

st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan
>
napsal:

Is /var/www/html/tmp/pokus/vrstva.shp readable for user
“www-data” (which is the default user for accessing QGIS
Server I assume)? Or is that the ‘apache user’ you referred
to or did you configure apache to explicitly access through
another user than ‘www-data’?

Cheers

Stefan

*From:*Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org
] *On Behalf Of
*Jachym Cepicky
*Sent:* 25. november 2015 11:28
*To:* qgis-user@lists.osgeo.org

*Subject:* [Qgis-user] qgis server does not return any data
from WFS

Hi,

several days, I'm fighting QGIS server - on lightttpd now on
Apache server with *same* result: WFS GetFeatureType request
does not return any data.

I created project, set all necessary metadat, coordinate
systems, made sure data are in readable path etc...

I've published the service using qgis_mapserver.fcgi - WMS
works (GetCapabilitiers, GetMap, GetFeatureInfo), but WFS
works just for GetCapabilitiers, GetFeatureType request
returns just the first response element

http://www.opengis.net/wfs;
xmlns:ogc="h .>

and that's all - not even the closing tag. It seems, the
server refuses to work in the middle of construction of the
response :-(

I have

FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis

FcgidInitialEnv QGIS_DEBUG 1

FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log

FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1

but  /tmp/qgis-server.log is empty (even created)

In the apache error log, only following lines can be found:

Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.

Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.

Warning 1: Unable to find driver JP2ECW to unload from
GDAL_SKIP environment variable.

Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
environment variable.

Warning 1: Unable to find driver JP2ECW to unload from
GDAL_SKIP environment variable.

ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or
/var/www/html/tmp/pokus/vrstva.SHP.

BUT, accessing the file vrstva.shp from
http://localhost/tmp/pokus/vrstva.shp
 works, apache user
can read it and, as I already said: WMS GetMap and
GetFeatureInfo works

I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well
as apache, with old projects as well as completely new with
just one line in shapefile - same result all the time. Ubuntu
15.10 btw.

Any hint?

Thanks

Jachym




Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Andreas Neumann

Hi Jachym,

I believe this is a bug in the 2.12 release - or in the 2.12 ubuntu QGIS 
package. Because 3 people reported it almost at the same time.


I just compiled master on my server and WFS works fine. So it's most 
likely fixed in master but would have to be backported to 2.12.x release 
and 2.8.4 release.


However, I don't know which commit fixed this issue.

Andreas

On 25.11.2015 14:37, Jachym Cepicky wrote:

Andreas,

thanks for clarification: I've not tedste GetPrint yet. Yes, GetMap 
works (without DISPLAY set)


about location of .qgs file - I just use it locally, try to get owslib 
to work along with QGIS-WFS Server, so just for testing so far, but 
thanks for reminding me


Jachym

st 25. 11. 2015 v 14:02 odesílatel Andreas Neumann 
> napsal:


Hi Jachym,

If WMS works (from the same project) and even GetPrint works, it
shouldn't be the problem of the XServer or the DISPLAY variable.

The XServer is required for printing as PDF (getPrint) and I
believe also for rendering SVG symbols or patterns. X-Server (or
an X-Server replacement, such XVNC) is required for QGIS Server -
even if it is quite uncommon that an X-Server runs on a machine
that also runs the Webserver.

BTW: you should never put your .qgs project files in a path
readable by the Webserver, but always outside. Just because you
list /var/www/html - which is often the Server Root.

.qgs files may contain sensitive information (such as db
connections, passwords, etc.) and it shouldn't be downloadable
from a web client.


Andreas


On 25.11.2015 13:48, Jachym Cepicky wrote:

Hi Andreas: yes, it's 2.12,

command line works:

QGIS_PROJECT_FILE=/var/www/html/tmp/pokus/vrstva.qgs
QUERY_STRING="SERVICE=WFS=GetFeature=vrstva"

/var/www/cgi-bin/qgis_mapserv.fcgi

response as expected

Is it possible, that it's related to DISPLAY variable? I've seen
it in some documentation .. if set to :0 or :99 server returns
ServerError

Thanks

Jachym

st 25. 11. 2015 v 13:32 odesílatel Andreas Neumann
> napsal:

Since your are now the third person who has the same problem,
within the couple of days, I suspect that there really is a
bug in QGIS server in this particular release.

Is this on 2.12?


Andreas


On 25.11.2015 12:29, Jachym Cepicky wrote:

hi Stefan,

apache runs as www-data

the file is accessible via
http://localhost/tmp/pokus/vrstva.shp -  so I assume, it is
readable by www-data

GetMap request as WMS works
GetFeatureType as WFS does not

thanks

Jachym

st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan
> napsal:

Is /var/www/html/tmp/pokus/vrstva.shp readable for user
“www-data” (which is the default user for accessing QGIS
Server I assume)? Or is that the ‘apache user’ you
referred to or did you configure apache to explicitly
access through another user than ‘www-data’?

Cheers

Stefan

*From:*Qgis-user
[mailto:qgis-user-boun...@lists.osgeo.org
] *On Behalf
Of *Jachym Cepicky
*Sent:* 25. november 2015 11:28
*To:* qgis-user@lists.osgeo.org

*Subject:* [Qgis-user] qgis server does not return any
data from WFS

Hi,

several days, I'm fighting QGIS server - on lightttpd
now on Apache server with *same* result: WFS
GetFeatureType request does not return any data.

I created project, set all necessary metadat, coordinate
systems, made sure data are in readable path etc...

I've published the service using qgis_mapserver.fcgi -
WMS works (GetCapabilitiers, GetMap, GetFeatureInfo),
but WFS works just for GetCapabilitiers, GetFeatureType
request returns just the first response element

http://www.opengis.net/wfs; xmlns:ogc="h .>

and that's all - not even the closing tag. It seems, the
server refuses to work in the middle of construction of
the response :-(

I have

FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis

FcgidInitialEnv QGIS_DEBUG 1

FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log

FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1

but  /tmp/qgis-server.log is empty (even created)

In the apache error log, only following lines can be found:

Warning 1: Unable to find driver ECW to 

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Jachym Cepicky
Hi Andreas: yes, it's 2.12,

command line works:

QGIS_PROJECT_FILE=/var/www/html/tmp/pokus/vrstva.qgs
QUERY_STRING="SERVICE=WFS=GetFeature=vrstva"

/var/www/cgi-bin/qgis_mapserv.fcgi

response as expected

Is it possible, that it's related to DISPLAY variable? I've seen it in some
documentation .. if set to :0 or :99 server returns ServerError

Thanks

Jachym

st 25. 11. 2015 v 13:32 odesílatel Andreas Neumann 
napsal:

> Since your are now the third person who has the same problem, within the
> couple of days, I suspect that there really is a bug in QGIS server in this
> particular release.
>
> Is this on 2.12?
>
>
> Andreas
>
>
> On 25.11.2015 12:29, Jachym Cepicky wrote:
>
> hi Stefan,
>
> apache runs as www-data
>
> the file is accessible via http://localhost/tmp/pokus/vrstva.shp -  so I
> assume, it is readable by www-data
>
> GetMap request as WMS works
> GetFeatureType as WFS does not
>
> thanks
>
> Jachym
>
> st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan <
> stefan.blumentr...@nina.no> napsal:
>
>> Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data” (which
>> is the default user for accessing QGIS Server I assume)? Or is that the
>> ‘apache user’ you referred to or did you configure apache to explicitly
>> access through another user than ‘www-data’?
>>
>>
>>
>> Cheers
>>
>> Stefan
>>
>>
>>
>> *From:* Qgis-user [mailto: 
>> qgis-user-boun...@lists.osgeo.org] *On Behalf Of *Jachym Cepicky
>> *Sent:* 25. november 2015 11:28
>> *To:* qgis-user@lists.osgeo.org
>> *Subject:* [Qgis-user] qgis server does not return any data from WFS
>>
>>
>>
>> Hi,
>>
>>
>>
>> several days, I'm fighting QGIS server - on lightttpd now on Apache
>> server with *same* result: WFS GetFeatureType request does not return any
>> data.
>>
>>
>>
>> I created project, set all necessary metadat, coordinate systems, made
>> sure data are in readable path etc...
>>
>>
>>
>> I've published the service using qgis_mapserver.fcgi - WMS works
>> (GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for
>> GetCapabilitiers, GetFeatureType request returns just the first response
>> element
>>
>>
>>
>> http://www.opengis.net/wfs;
>> xmlns:ogc="h .>
>>
>>
>>
>> and that's all - not even the closing tag. It seems, the server refuses
>> to work in the middle of construction of the response :-(
>>
>>
>>
>> I have
>>
>>
>>
>> FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis
>>
>> FcgidInitialEnv QGIS_DEBUG 1
>>
>> FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log
>>
>> FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1
>>
>>
>>
>>
>>
>> but  /tmp/qgis-server.log is empty (even created)
>>
>>
>>
>> In the apache error log, only following lines can be found:
>>
>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
>> variable.
>>
>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
>> variable.
>>
>> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
>> environment variable.
>>
>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP environment
>> variable.
>>
>> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
>> environment variable.
>>
>> ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or
>> /var/www/html/tmp/pokus/vrstva.SHP.
>>
>>
>>
>>
>>
>> BUT, accessing the file vrstva.shp from
>> http://localhost/tmp/pokus/vrstva.shp works, apache user can read it
>> and, as I already said: WMS GetMap and GetFeatureInfo works
>>
>>
>>
>> I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well as apache,
>> with old projects as well as completely new with just one line in shapefile
>> - same result all the time.  Ubuntu 15.10 btw.
>>
>>
>>
>> Any hint?
>>
>>
>>
>> Thanks
>>
>>
>>
>> Jachym
>>
>
>
> ___
> Qgis-user mailing listqgis-u...@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] QGIS core dump at startup

2015-11-25 Thread GFZ Hydrologie
on kubuntu 14.04 LTS (running in Virtual Box on Windows 7) QGIS 2.8.1
launch aborts with core dumped.

So far I
purged qgis, removed all qgis plugins
re installed using repository
http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu/

but without any success

on another machine with similar OS and QGIS there are no such problems.

any ideas?
cheers
kai

Warning: loading of qgis translation failed
[/usr/share/qgis/i18n//qgis_en_US]
Warning: loading of qt translation failed
[/usr/share/qt4/translations/qt_en_US]
Warning: Bus::open: Can not get ibus-daemon's address.
IBusInputContext::createInputContext: no connection to ibus-daemon
Warning: QGraphicsScene::addItem: item has already been added to this scene
Fatal: ASSERT failure in QList::operator[]: "index out of range", file
/usr/include/qt4/QtCore/qlist.h, line 477
Stacktrace (piped through c++filt):
/usr/bin/qgis.bin[0x509ba0]
/usr/bin/qgis.bin(myMessageOutput(QtMsgType, char const*)+0x38)[0x509ca8]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qt_message_output(QtMsgType, char
const*)+0x21)[0x7f6e8d568bb1]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(+0x70ff9)[0x7f6e8d568ff9]
/usr/lib/x86_64-linux-gnu/libQtCore.so.4(qFatal(char const*,
...)+0x94)[0x7f6e8d569804]
/usr/lib/libqgis_gui.so.2.8.1(QgsScaleComboBox::updateScales(QStringList
const&)+0x127)[0x7f6e8e1ecae7]
/usr/lib/libqgis_gui.so.2.8.1(QgsScaleComboBox::QgsScaleComboBox(QWidget*)+0x54)[0x7f6e8e1ed054]
/usr/bin/qgis.bin(QgisApp::createStatusBar()+0xa30)[0x519140]
/usr/bin/qgis.bin(QgisApp::QgisApp(QSplashScreen*, bool, QWidget*,
QFlags)+0xbb9)[0x54e9b9]
/usr/bin/qgis.bin(main+0x132b)[0x50421b]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f6e8a4c5ec5]
/usr/bin/qgis.bin[0x5095e8]
Aborted (core dumped)
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Project file format

2015-11-25 Thread James Keener
If I wanted to embark on a fools errand of storing a project in a database, in 
a structured manner, is there a spec for the project file format, or is it what 
it is?
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] qgis server does not return any data from WFS

2015-11-25 Thread Jachym Cepicky
Andreas,

thanks for clarification: I've not tedste GetPrint yet. Yes, GetMap works
(without DISPLAY set)

about location of .qgs file - I just use it locally, try to get owslib to
work along with QGIS-WFS Server, so just for testing so far, but thanks for
reminding me

Jachym

st 25. 11. 2015 v 14:02 odesílatel Andreas Neumann 
napsal:

> Hi Jachym,
>
> If WMS works (from the same project) and even GetPrint works, it shouldn't
> be the problem of the XServer or the DISPLAY variable.
>
> The XServer is required for printing as PDF (getPrint) and I believe also
> for rendering SVG symbols or patterns. X-Server (or an X-Server
> replacement, such XVNC) is required for QGIS Server - even if it is quite
> uncommon that an X-Server runs on a machine that also runs the Webserver.
>
> BTW: you should never put your .qgs project files in a path readable by
> the Webserver, but always outside. Just because you list /var/www/html -
> which is often the Server Root.
>
> .qgs files may contain sensitive information (such as db connections,
> passwords, etc.) and it shouldn't be downloadable from a web client.
>
>
> Andreas
>
>
> On 25.11.2015 13:48, Jachym Cepicky wrote:
>
> Hi Andreas: yes, it's 2.12,
>
> command line works:
>
> QGIS_PROJECT_FILE=/var/www/html/tmp/pokus/vrstva.qgs
> QUERY_STRING="SERVICE=WFS=GetFeature=vrstva"
>
> /var/www/cgi-bin/qgis_mapserv.fcgi
>
> response as expected
>
> Is it possible, that it's related to DISPLAY variable? I've seen it in
> some documentation .. if set to :0 or :99 server returns ServerError
>
> Thanks
>
> Jachym
>
> st 25. 11. 2015 v 13:32 odesílatel Andreas Neumann 
> napsal:
>
>> Since your are now the third person who has the same problem, within the
>> couple of days, I suspect that there really is a bug in QGIS server in this
>> particular release.
>>
>> Is this on 2.12?
>>
>>
>> Andreas
>>
>>
>> On 25.11.2015 12:29, Jachym Cepicky wrote:
>>
>> hi Stefan,
>>
>> apache runs as www-data
>>
>> the file is accessible via http://localhost/tmp/pokus/vrstva.shp -  so I
>> assume, it is readable by www-data
>>
>> GetMap request as WMS works
>> GetFeatureType as WFS does not
>>
>> thanks
>>
>> Jachym
>>
>> st 25. 11. 2015 v 11:38 odesílatel Blumentrath, Stefan <
>> stefan.blumentr...@nina.no> napsal:
>>
>>> Is /var/www/html/tmp/pokus/vrstva.shp readable for user “www-data”
>>> (which is the default user for accessing QGIS Server I assume)? Or is that
>>> the ‘apache user’ you referred to or did you configure apache to explicitly
>>> access through another user than ‘www-data’?
>>>
>>>
>>>
>>> Cheers
>>>
>>> Stefan
>>>
>>>
>>>
>>> *From:* Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org] *On Behalf
>>> Of *Jachym Cepicky
>>> *Sent:* 25. november 2015 11:28
>>> *To:* qgis-user@lists.osgeo.org
>>> *Subject:* [Qgis-user] qgis server does not return any data from WFS
>>>
>>>
>>>
>>> Hi,
>>>
>>>
>>>
>>> several days, I'm fighting QGIS server - on lightttpd now on Apache
>>> server with *same* result: WFS GetFeatureType request does not return any
>>> data.
>>>
>>>
>>>
>>> I created project, set all necessary metadat, coordinate systems, made
>>> sure data are in readable path etc...
>>>
>>>
>>>
>>> I've published the service using qgis_mapserver.fcgi - WMS works
>>> (GetCapabilitiers, GetMap, GetFeatureInfo), but WFS works just for
>>> GetCapabilitiers, GetFeatureType request returns just the first response
>>> element
>>>
>>>
>>>
>>> http://www.opengis.net/wfs;
>>> xmlns:ogc="h .>
>>>
>>>
>>>
>>> and that's all - not even the closing tag. It seems, the server refuses
>>> to work in the middle of construction of the response :-(
>>>
>>>
>>>
>>> I have
>>>
>>>
>>>
>>> FcgidInitialEnv QGIS_AUTH_DB_DIR_PATH /var/www/qgis
>>>
>>> FcgidInitialEnv QGIS_DEBUG 1
>>>
>>> FcgidInitialEnv QGIS_SERVER_LOG_FILE  /tmp/qgis-server.log
>>>
>>> FcgidInitialEnv QGIS_SERVER_LOG_LEVEL  1
>>>
>>>
>>>
>>>
>>>
>>> but  /tmp/qgis-server.log is empty (even created)
>>>
>>>
>>>
>>> In the apache error log, only following lines can be found:
>>>
>>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> Warning 1: Unable to find driver ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> Warning 1: Unable to find driver JP2ECW to unload from GDAL_SKIP
>>> environment variable.
>>>
>>> ERROR 4: Unable to open /var/www/html/tmp/pokus/vrstva.shp or
>>> /var/www/html/tmp/pokus/vrstva.SHP.
>>>
>>>
>>>
>>>
>>>
>>> BUT, accessing the file vrstva.shp from
>>> http://localhost/tmp/pokus/vrstva.shp works, apache user can read it
>>> and, as I already said: WMS GetMap and GetFeatureInfo works
>>>
>>>
>>>
>>> I've tested QGIS mapserver 2.12 and 2.8 on lightttpd as well as apache,
>>>