Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows

2014-11-20 Thread Nejia
1- see my response here
http://stackoverflow.com/questions/26920574/cannot-find-qgsapplication-h-and
-other-header-files/27035138#27035138

-Message d'origine-
De : qgis-developer-boun...@lists.osgeo.org
[mailto:qgis-developer-boun...@lists.osgeo.org] De la part de eliu1234
Envoyé : mercredi 19 novembre 2014 17:39
À : qgis-developer@lists.osgeo.org
Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis
application with QtCreator and MSVC2008 on Windows

1. So in the .proj file, what do i need to change?

2. My Python works in this case, it is the C++ part that is not working. 


Nejia wrote
 Hi,
 
 1- QGIS and Qt libraries shipped with Osgeo4W are compiled using 
 release mode so if you want to debug your application you can use 
 RelWithDebInfo mode.
 2- see:
 http://gis.stackexchange.com/questions/120823/how-to-load-a-wms-layer-
 using-
 pyqgis
 http://ieqgis.wordpress.com/2014/08/09/adding-esris-online-world-image
 ry-dat
 aset-to-qgis/
 
 Cheers
 Nejia





--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c-qgis-a
pplication-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5173838.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Fwd: QGIS for MacOSX Yosemite ?

2014-11-20 Thread Geo DrinX
William,

I can confirm :   QGIS runs also on Yosemite.   You can add it in your web
page

:)



Roberto

2014-11-17 4:08 GMT+01:00 William Kyngesburye wokl...@kyngchaos.com:

 The current package should work on Yosemite.

 On Nov 16, 2014, at 3:58 PM, Geo DrinX geodr...@gmail.com wrote:

  Hello,
 
 
  somebody knows if it just exist a QGIS binary version for MacOSX
 Yosemite ?
 
 
  Thank you for any info about this.
 
 
  Regards
 
  Roberto
  ___
  Qgis-developer mailing list
  Qgis-developer@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-developer

 -
 William Kyngesburye kyngchaos*at*kyngchaos*dot*com
 http://www.kyngchaos.com/

 We are at war with them. Neither in hatred nor revenge and with no
 particular pleasure I shall kill every ___ I can until the war is over.
 That is my duty.

 Don't you even hate 'em?

 What good would it do if I did? If all the many millions of people of the
 allied nations devoted an entire year exclusively to hating the  it
 wouldn't kill one ___ nor shorten the war one day.

 Ha, ha And it might give 'em all stomach ulcers.

 - Tarzan, on war


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Viewport rotation

2014-11-20 Thread Sandro Santilli
On Thu, Nov 20, 2014 at 09:01:55AM +1100, Nyall Dawson wrote:
 On 20 November 2014 07:46, Sandro Santilli s...@keybit.net wrote:
  Hi all,
  I'm looking at implementing viewport rotation support and wondering if
  anyone has already an idea about what it would take.
 
  Could adding support in QgsMapToPixel be possibly enough to make
  navigation tools aware of rotation ? Or would it be better to plug
  another transformation in between, as if it was a reprojection ?
 
 
 Hi Sandro,
 
 How are you thinking of implementing this? In the map canvas only?

I don't know yet, that's why I'm asking.

 Ideally, I think this should be supported in the map renderer -
 QgsMapRendererJob.

Would that be similar to considering it an additional transformation
on the input data, like reprojection ?

 Currently the composer supports rotated maps, but it's a bit of a
 hack. It's really just rendering the map and then rotating the result.
 As a result all labels, symbology, etc also get rotated, which isn't
 ideal. If support for rotating maps was added to the actual map
 renderer then the composer would also benefit, as we'd be able to
 properly rotate the map without messing up labels and symbology.

Yep, makes sense. I'll try to understand what it takes.
Thanks for the pointers so far.

--strk;

 ()  ASCII ribbon campaign  --  Keep it simple !
 /\  http://strk.keybit.net/rants/ascii_mails.txt  
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] PostGIS tables with missing gemoetries: how to handle them?

2014-11-20 Thread Paolo Cavallini
Hi all.
If one has a pg table with records with a missing geometry (e.g. there are 
records
with a geom in a point column, others in a line column, others with both), the 
table
will show only the records with a geom; if I click on Show all, I also get 
records
without a geom. Of course, selecting a record like this and clicking on Zoom to
selected does nothing.
I'm unsure this is the least confusing behaviour for the user: opinions?
All the best.
-- 
Paolo Cavallini - www.faunalia.eu
Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] PostGIS tables with missing gemoetries: how to handle them?

2014-11-20 Thread Bernhard Ströbl

Hi,

I wasn't aware of this. Although I do not understand why one should put 
points and lines in the _same_ table, geometries are allowed to be NULL 
if the field does not have a NOT NULL constraint. I see two possible 
solutions

1) mark the dataset as having no geometry
2) (preferred) do only load datasets which have a geometry

reasoning: As one can load any relation geometryless I would assume when 
loading the relation _with geometries_ there are geometries contained.


I am aware that solution 2) can be achieved with the user applying a 
filter like codegeom_column IS NOT NULL/code to the layer but 
that's for advanced users only


Bernhard



Am 20.11.2014 14:07, schrieb Paolo Cavallini:

Hi all.
If one has a pg table with records with a missing geometry (e.g. there are 
records
with a geom in a point column, others in a line column, others with both), the 
table
will show only the records with a geom; if I click on Show all, I also get 
records
without a geom. Of course, selecting a record like this and clicking on Zoom to
selected does nothing.
I'm unsure this is the least confusing behaviour for the user: opinions?
All the best.





__ Information from ESET Mail Security, version of virus signature 
database 10754 (20141120) __

The message was checked by ESET Mail Security.
http://www.eset.com


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] pic2map plugin crashes qgis at installation

2014-11-20 Thread Milani Gillian
Hello,

A special plugin (pic2map in the repository https://documents.epfl.ch/ 
groups/l/la/lasig-unit/www/ pic2map/lasigRepository.xml 
https://documents.epfl.ch/groups/l/la/lasig-unit/www/pic2map/lasigRepository.xml)
 failed to install on some machines (not experienced by me but as feedback from 
tester). Traceback below.

If you want to test, you need the pyopengl bindings:
apt-get install python python-opengl python-qt4 python-qt4-gl

I've test personnly on several machine and cannot say if the crash is 
reproductable.

Someone has any hints of path ?

===
QGIS died on signal 11[New LWP 14900]
[New LWP 14899]
[New LWP 14898]
[New LWP 14897]
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/ libthread_db.so.1.
0x7f9fc1c8d199 in __libc_waitpid (pid=14913, stat_loc=0x72460b7c, 
options=0)
at ../sysdeps/unix/sysv/linux/ waitpid.c:40
40 ../sysdeps/unix/sysv/linux/ waitpid.c: File o directory non esistente.
[Current thread is 1 (Thread 0x7f9fca68a200 (LWP 14896))]
#0 0x7f9fc1c8d199 in __libc_waitpid (pid=14913, stat_loc=0x72460b7c,
options=0) at ../sysdeps/unix/sysv/linux/ waitpid.c:40
resultvar = 142064536
oldtype = 0
#1 0x00504b77 in qgisCrash(int) ()
No symbol table info available.
#2 signal handler called
No locals.
#3 __strcmp_ssse3 () at ../sysdeps/x86_64/multiarch/.. /strcmp.S:286
No locals.
#4 0x7f9f45b844ef in QMetaType:: registerNormalizedType( QByteArray const, 
void
(*)(void*), void* (*)(void const*), void (*)(void*), void* (*)(void*, void 
const*),
int, QFlagsQMetaType::TypeFlag, QMetaObject const*) () from
/usr/lib/x86_64-linux-gnu/ libQt5Core.so.5
No symbol table info available.
#5 0x7f9f46091100 in ?? () from /usr/lib/x86_64-linux-gnu/ libQt5Gui.so.5
No symbol table info available.
#6 0x7f9fca4e69fa in call_init (l=optimized out, argc=argc@entry=3,
argv=argv@entry= 0x724669a8, env=env@entry=0x1deb4d0) at dl-init.c:78
j = optimized out
jm = optimized out
addrs = optimized out
init_array = optimized out
#7 0x7f9fca4e6ae3 in call_init (env=0x1deb4d0, argv=0x724669a8, argc=3,
l=optimized out) at dl-init.c:36
No locals.
#8 _dl_init (main_map=main_map@entry= 0x4612b00, argc=3, argv=0x724669a8,
env=0x1deb4d0) at dl-init.c:126
preinit_array = optimized out
preinit_array_size = optimized out
i = 1
#9 0x7f9fca4eac48 in dl_open_worker (a=a@entry=0x724615d8) at 
dl-open.c:577
args = 0x724615d8
file = optimized out
mode = optimized out
call_map = optimized out
dst = optimized out
__PRETTY_FUNCTION__ = dl_open_worker
new = optimized out
r = optimized out
reloc_mode = optimized out
nmaps = optimized out
l = optimized out
maps = optimized out
any_tls = optimized out
first_static_tls = optimized out
#10 0x7f9fca4e68b4 in _dl_catch_error (objname=objname@entry= 
0x724615c8,
errstring=errstring@entry= 0x724615d0, mallocedp=mallocedp@entry= 
0x724615c7,
operate=operate@entry= 0x7f9fca4ea970 dl_open_worker,
args=args@entry= 0x724615d8) at dl-error.c:187
errcode = 0
c = {objname = 0x724615c8, errstring = 0x724615d0, malloced =
0x724615c7, errcode = 0x724614b4, env = {{__jmpbuf = {140737258067672,
1100602835762729759, 2147483650, 73463776, 140737258088872, 3, 
1100602835825644319,
1118669940720587551}, __mask_was_saved = 0, __saved_mask = {__val = 
{140322487677008,
140324127448752, 140322487532928, 11782726505686307072, 1, 140737258068208, 
115, 0,
140322487532928, 140737258067376, 140737258068144, 140737258067376, 
14030051785,
140737258067776, 1, 257}
catchp = 0x7f9fca68a1d0
old = optimized out
#11 0x7f9fca4ea43b in _dl_open (file=0x460f7e0
/usr/lib/python2.7/dist- packages/PyQt5/QtGui.so, mode=-2147483646,
caller_dlopen=optimized out, nsid=-2, argc=3, argv=0x724669a8, 
env=0x1deb4d0)
at dl-open.c:661
args = {file = 0x460f7e0 /usr/lib/python2.7/dist- packages/PyQt5/QtGui.so,
mode = -2147483646, caller_dlopen = 0x7f9f4ffa2f45 
_PyImport_GetDynLoadFunc+293 ,
caller_dl_open = 0x7f9fb9b6f02b dlopen_doit+91, map = 0x4612b00, nsid = 0, 
argc =
3, argv = 0x724669a8, env = 0x1deb4d0}
objname = 0x724618b0 initQtGui
errstring = 0x724618b0 initQtGui
malloced = false
errcode = optimized out
__PRETTY_FUNCTION__ = _dl_open
#12 0x7f9fb9b6f02b in dlopen_doit (a=a@entry=0x724617f0) at dlopen.c:66
args = 0x724617f0
#13 0x7f9fca4e68b4 in _dl_catch_error (objname=0x1ad39c0, 
errstring=0x1ad39c8,
mallocedp=0x1ad39b8, operate=0x7f9fb9b6efd0 dlopen_doit, args=0x724617f0) 
at
dl-error.c:187
errcode = 32671
c = {objname = 0x1ad39c0, errstring = 0x1ad39c8, malloced = 0x1ad39b8,
errcode = 0x724616d4, env = {{__jmpbuf = {0, 1118783400970081055,
140737258067952, 2, 73459664, 73463776, 1100602835787895583, 
1118669940720587551},
__mask_was_saved = 1342395295, __saved_mask = {__val = {206158430232,
140737258068000, 140737258067808, 11782726505686307072, 64, 140322487677008,
140322487677008, 73459670, 127, 40165680, 140320876527665, 816, 12, 

[Qgis-developer] QGIS Server: Identify on wms features not working

2014-11-20 Thread Luca Manganelli
Hi,

it seems that QGIS Server doesn't permit to identify features from
external WMS sources.

If I use QGIS Desktop, I can do identify; in QGIS Web Client, I cannot do that.

It's a known bug?
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] VTerrain plugin version 1.0.2

2014-11-20 Thread Geo DrinX
Hello,

I uploaded a new version of  VTerrain plugin  ( 1.0.2 ) .

This fix a problem with QGIS  1.8 , using   the  VTerrain_XYZ  function


Please, test it (If you like) and approve it.

:)


Regards

Roberto
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGIS Server: Identify on wms features not working

2014-11-20 Thread Andreas Neumann

Hi,

You mean cascaded WMS?

Yes, this is a known issue.

Andreas

On 20.11.2014 14:46, Luca Manganelli wrote:

Hi,

it seems that QGIS Server doesn't permit to identify features from
external WMS sources.

If I use QGIS Desktop, I can do identify; in QGIS Web Client, I cannot do that.

It's a known bug?
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Viewport rotation

2014-11-20 Thread Sandro Santilli
On Thu, Nov 20, 2014 at 11:54:01AM +0100, Sandro Santilli wrote:
 On Thu, Nov 20, 2014 at 09:01:55AM +1100, Nyall Dawson wrote:

  Ideally, I think this should be supported in the map renderer -
  QgsMapRendererJob.
 
 Would that be similar to considering it an additional transformation
 on the input data, like reprojection ?

I've tried this approach, basically adding rotation support to
the QgsMapToPixel class. With such support I can see the map
rotated as requested while horizontal labels remain horizontal.
But parallel labels are completely off (and pretty funny).

  Currently the composer supports rotated maps, but it's a bit of a
  hack. It's really just rendering the map and then rotating the result.
  As a result all labels, symbology, etc also get rotated, which isn't
  ideal.

For parallel labels, it is actually good that they rotate with the map.
I guess there would need to be some rotation knowledge at various levels
for things to be flexible enough.

--strk;

 ()  ASCII ribbon campaign  --  Keep it simple !
 /\  http://strk.keybit.net/rants/ascii_mails.txt  
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Viewport rotation

2014-11-20 Thread Larry Shaffer
Hi Sandro and Nyall,

On Thu, Nov 20, 2014 at 10:40 AM, Sandro Santilli s...@keybit.net wrote:

 On Thu, Nov 20, 2014 at 11:54:01AM +0100, Sandro Santilli wrote:
  On Thu, Nov 20, 2014 at 09:01:55AM +1100, Nyall Dawson wrote:

   Ideally, I think this should be supported in the map renderer -
   QgsMapRendererJob.
 
  Would that be similar to considering it an additional transformation
  on the input data, like reprojection ?

 I've tried this approach, basically adding rotation support to
 the QgsMapToPixel class. With such support I can see the map
 rotated as requested while horizontal labels remain horizontal.
 But parallel labels are completely off (and pretty funny).

   Currently the composer supports rotated maps, but it's a bit of a
   hack. It's really just rendering the map and then rotating the result.
   As a result all labels, symbology, etc also get rotated, which isn't
   ideal.

 For parallel labels, it is actually good that they rotate with the map.
 I guess there would need to be some rotation knowledge at various levels
 for things to be flexible enough.


Yes, for map rotation to work properly, its delta would have to be passed
into the calculations for each type of labeling placement, to provide
'expected' results. Such a delta would have to include not only the
rotation but also the new location of the label's point of reference.

Towards that end, I would say the most straightforward means of
implementing map rotation for effective labeling is to pre-rotate the
duplicated, temporary feature geometries first, before they are acted upon,
i.e. before extent (view port) clipping, etc., which would be prior to
sending into the PAL library for processing. Such an approach should keep
from having to pass the rotation offsets into the labeling calculations,
since the rotated features would already be in their output juxtaposition.

Maybe the feature pre-rotation could be done in the map renderer, prior to
sending to the labeling engine.

Regards,

Larry


 --strk;

  ()  ASCII ribbon campaign  --  Keep it simple !
  /\  http://strk.keybit.net/rants/ascii_mails.txt
 ___
 Qgis-developer mailing list
 Qgis-developer@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows

2014-11-20 Thread eliu1234
Do you have a system setup that can write qgis c++ application? If you do,
can you create a valid raster layer from that?


Nejia wrote
 1- see my response here
 http://stackoverflow.com/questions/26920574/cannot-find-qgsapplication-h-and
 -other-header-files/27035138#27035138
 
 -Message d'origine-
 De : 

 qgis-developer-bounces@.osgeo

 [mailto:

 qgis-developer-bounces@.osgeo

 ] De la part de eliu1234
 Envoyé : mercredi 19 novembre 2014 17:39
 À : 

 qgis-developer@.osgeo

 Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis
 application with QtCreator and MSVC2008 on Windows
 
 1. So in the .proj file, what do i need to change?
 
 2. My Python works in this case, it is the C++ part that is not working. 
 
 
 Nejia wrote
 Hi,
 
 1- QGIS and Qt libraries shipped with Osgeo4W are compiled using 
 release mode so if you want to debug your application you can use 
 RelWithDebInfo mode.
 2- see:
 http://gis.stackexchange.com/questions/120823/how-to-load-a-wms-layer-
 using-
 pyqgis
 http://ieqgis.wordpress.com/2014/08/09/adding-esris-online-world-image
 ry-dat
 aset-to-qgis/
 
 Cheers
 Nejia
 
 
 
 
 
 --
 View this message in context:
 http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c-qgis-a
 pplication-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5173838.html
 Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
 ___
 Qgis-developer mailing list

 Qgis-developer@.osgeo

 http://lists.osgeo.org/mailman/listinfo/qgis-developer
 
 ___
 Qgis-developer mailing list

 Qgis-developer@.osgeo

 http://lists.osgeo.org/mailman/listinfo/qgis-developer





--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Problems-with-developing-custom-c-qgis-application-with-QtCreator-and-MSVC2008-on-Windows-tp5173711p5174130.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] How does QGIS display vrts where the underlying imagery has overviews?

2014-11-20 Thread Patrick Young
Hi,

I have been really impressed with how QGIS can quickly display a vrt of
say, a bunch of tifs, when the underlying tifs have overviews already
created.  I was curious how it is going about accessing the overviews of
the underlying imagery, as the gdal api doesn't seem to think the vrt has
overviews or subdatasets, and QGIS itself doesn't mention the vrt having
overviews.

Can anyone illuminate this for me?

Thanks!
-Patrick
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer