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

2014-11-21 Thread eliu1234
What is the m_ptInterface in your code?


Nejia wrote
> I use the same environment of Qgis to write c++ plugins:
> http://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master/doc/INSTALL.html#toc14
> 
> to add raster layer:
> m_ptInterface->addRasterLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true","raster";);
> 
> Regards,
> Nejia
> 
> -Message d'origine-
> De : 

> qgis-developer-bounces@.osgeo

>  [mailto:

> qgis-developer-bounces@.osgeo

> ] De la part de eliu1234
> Envoyé : jeudi 20 novembre 2014 21:40
> À : 

> qgis-developer@.osgeo

> Objet : Re: [Qgis-developer] Problems with developing custom c++ qgis
> application with QtCreator and MSVC2008 on Windows
> 
> 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-imag
>>> e
>>> 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.ht
>> ml 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@.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-tp5173711p5174285.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

Re: [Qgis-developer] Viewport rotation

2014-11-21 Thread Sandro Santilli
On Fri, Nov 21, 2014 at 10:28:53AM +0100, Sandro Santilli wrote:
> On Thu, Nov 20, 2014 at 12:44:29PM -0700, Larry Shaffer wrote:

> > Maybe the feature pre-rotation could be done in the map renderer, prior to
> > sending to the labeling engine.
> 
> That's possibly what I've done by implementing rotation in QgsMapToPixel,

I'm kind of stuck in QgsMapToPixel as that class currently has no
knowledge of map "center". It has both min and max values for the Y
direction but for X it only has min value. 

There is also no "viewport size" to compute xMax from, so basically
I'm still missing the center of the map, which is what I would
have liked to use as anchor point for rotation.

Should I refactor the class to additionally hold a center, or an xMax ?

--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] flex error while building QGIS from sources

2014-11-21 Thread Nejia
Hi,

 

While building QGIS from source
  I get this error :

/src/core/qgsexpressionlexer.ll", line 22: unrecognized %option: reentrant

/src/core/qgsexpressionlexer.ll", line 24: unrecognized %option:
bison-bridge

3>Project : error PRJ0019: A tool returned an error code from "Generating
flex_qgsexpressionlexer.cpp"

 

I use flex-2.5.4a-1

 

Thanks,

Nejia

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

Re: [Qgis-developer] Processing with raster files > 4GB

2014-11-21 Thread Paolo Cavallini
Il 21/11/2014 15:13, Giovanni Manghi ha scritto:

> grass of course does the job, especially when you use the grass data
> model from the cli, native grass gui or qgis plugin. Inside processing
> large raster suffer from the overhead that is needed to import/export
> the raster to, and out of, a temp location.

AFAIK Processing does not import the raster, but uses it as an external data 
source
(if not, it should).

> I agree anyway that it too bad that the qgis raster calculator (and
> georeferencer) are drawing so little attention. Maybe there isn't much
> people that uses them?

quite possible; however, maintaining multiple calcs seems more of a burden than 
an
advantage.

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] Processing with raster files > 4GB

2014-11-21 Thread Giovanni Manghi
Hi Andreas,

> It may also be an issue with SAGA or GRASS directly.

I have also tested a very large raster (8gb) and SAGA seems to choke
also when used natively from the cli interface.

grass of course does the job, especially when you use the grass data
model from the cli, native grass gui or qgis plugin. Inside processing
large raster suffer from the overhead that is needed to import/export
the raster to, and out of, a temp location.

gdal does the reclass job very quickly and I should be able to add the
tool to processing.

I agree anyway that it too bad that the qgis raster calculator (and
georeferencer) are drawing so little attention. Maybe there isn't much
people that uses them?

cheers!

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


[Qgis-developer] QGIS master compiles against Qt5

2014-11-21 Thread Matthias Kuhn
Hi,

Qt5 support has just been merged to master (78c5195)

This should not make any difference if you want to compile and link
against Qt4.

If you want to have a QGIS version that makes use of Qt5, please not that

  * You need to have the dependencies also linked against Qt5. You most
likely will not find that prebuilt and will need to do it yourself.
Segfaults of crssync when compiling indicate that there are dependencies
linked against Qt4.

  * In particular, check the following libraries:
* QScintilla2
* QWT
* QWTPolar

  * Python bindings are completely untested (Both, PyQt4 and PyQt5)

  * The class QgsHttpTransaction is no longer supported.

Have fun
Matthias



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


Re: [Qgis-developer] Viewport rotation

2014-11-21 Thread Sandro Santilli
On Thu, Nov 20, 2014 at 12:44:29PM -0700, Larry Shaffer wrote:

> 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.

Right, that was my idea of threating it like a reprojection.

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

That's possibly what I've done by implementing rotation in QgsMapToPixel,
as I do see features and label positions all correctly rotated. Only,
the PAL view on the source layer seems to be still the original one, as 
in "parallel" mode those labels are NOT parallel to the rotated but to
the original lines (I think, not really sure).

If you want to take a look, I pushed a branch here:
https://github.com/strk/qgis/tree/rotation

I think next I'll work on a widget to make it easy to specify rotation
in the GUI so further tests are easier to conduct.

--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] Problems with developing custom c++ qgis application with QtCreator and MSVC2008 on Windows

2014-11-21 Thread Nejia
I use the same environment of Qgis to write c++ plugins:
http://htmlpreview.github.io/?https://raw.github.com/qgis/QGIS/master/doc/INSTALL.html#toc14

to add raster layer:
m_ptInterface->addRasterLayer("http://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json&pretty=true","raster";);

Regards,
Nejia

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

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-imag
>> e
>> 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.ht
> ml 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 mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer