Re: [Qgis-developer] html goodness in Map Composer

2012-09-03 Thread Marco Hugentobler

Hi Maning

There is already a html item in the map composer of the dev version 
(also using webkit). You may select 'add html item' and drag a 
rectangle. Then you can select an html file or a web resource (it is 
even possible to display a web page on the composer). The item can have 
several frames and thus go over multiple pages.


Regards,
Marco

On 04.09.2012 06:31, maning sambale wrote:

I just read the recent features of QGIS master from Nathan's blog [0].
  The HTML annotatons is ubercool.
Are there plans to integrate html tags and css to the Map Composer?



[0] 
http://woostuff.wordpress.com/2012/09/04/five-new-awesomely-awesome-qgis-features/



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


[Qgis-developer] html goodness in Map Composer

2012-09-03 Thread maning sambale
I just read the recent features of QGIS master from Nathan's blog [0].
 The HTML annotatons is ubercool.
Are there plans to integrate html tags and css to the Map Composer?



[0] 
http://woostuff.wordpress.com/2012/09/04/five-new-awesomely-awesome-qgis-features/

-- 
cheers,
maning
--
"Freedom is still the most radical idea of all" -N.Branden
wiki: http://esambale.wikispaces.com/
blog: http://epsg4253.wordpress.com/
--
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] error loading a shp

2012-09-03 Thread Giovanni Manghi
On Mon, 2012-09-03 at 11:24 +0200, Paolo Cavallini wrote:
> Not my lucky day. Adding a shp with double-click from the browser, I get:
> Sorry, I can't manipulate this type of layer (1100)
> but the shp is loaded anyway.
> All the best

not confirmed here on master on both linux and windows

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


Re: [Qgis-developer] cpt-city

2012-09-03 Thread Etienne Tourigny
It should be working now. You might have to restart qgis after getting
gradients with Color Ramp Manager.

Etienne

On Mon, Sep 3, 2012 at 10:09 AM, Etienne Tourigny
 wrote:
> sorry, there are a few issues to sort out. Will post here when all is OK
>
> Etienne
>
> On Mon, Sep 3, 2012 at 9:44 AM, Etienne Tourigny
>  wrote:
>> Hi,
>>
>> This should not happen with new users of the cpt-city ramps.
>>
>> Have you downloaded the new version of Color Ramp Manager?  cpt-city
>> file locations have changed, so you need to reset them in the color
>> ramp manager.
>>
>> To get the "buitlin" ramps (a tiny selection for now), you need to
>> select "Use gradients that ship with qgis" in the color ramp manager
>> (this is default for new users).
>>
>> You also have the option of downloading a more complete selection, and
>> also the full cpt-city package.
>>
>> Etienne
>>
>> On Mon, Sep 3, 2012 at 6:22 AM, Paolo Cavallini  
>> wrote:
>>> Hi all.
>>> I have problems in using the new ramps:
>>> - when I try to create a new ramp based on cpt-city I get
>>> Error - cpt-city gradient files not found.
>>> - then I add the free QGIS ramp, but apparently nothing is downloaded.
>>> A local problem, or a general issue?
>>> All the best.
>>> --
>>> Paolo Cavallini - Faunalia
>>> www.faunalia.eu
>>> Full contact details at www.faunalia.eu/pc
>>> Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
>>> ___
>>> 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] cpt-city

2012-09-03 Thread Etienne Tourigny
sorry, there are a few issues to sort out. Will post here when all is OK

Etienne

On Mon, Sep 3, 2012 at 9:44 AM, Etienne Tourigny
 wrote:
> Hi,
>
> This should not happen with new users of the cpt-city ramps.
>
> Have you downloaded the new version of Color Ramp Manager?  cpt-city
> file locations have changed, so you need to reset them in the color
> ramp manager.
>
> To get the "buitlin" ramps (a tiny selection for now), you need to
> select "Use gradients that ship with qgis" in the color ramp manager
> (this is default for new users).
>
> You also have the option of downloading a more complete selection, and
> also the full cpt-city package.
>
> Etienne
>
> On Mon, Sep 3, 2012 at 6:22 AM, Paolo Cavallini  wrote:
>> Hi all.
>> I have problems in using the new ramps:
>> - when I try to create a new ramp based on cpt-city I get
>> Error - cpt-city gradient files not found.
>> - then I add the free QGIS ramp, but apparently nothing is downloaded.
>> A local problem, or a general issue?
>> All the best.
>> --
>> Paolo Cavallini - Faunalia
>> www.faunalia.eu
>> Full contact details at www.faunalia.eu/pc
>> Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
>> ___
>> 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] Large raster (ecw) identify very long

2012-09-03 Thread Radim Blazek
On Fri, Aug 24, 2012 at 10:45 PM, Even Rouault
 wrote:
> I've tested the big ECW (1.8 GB, 141970 x 141970) provided by Jukka and could
> indeed reproduce a noticable performance issue when simulating picking with my
> tiny GDAL python script. In QGIS, the performance was still OK however, a few
> hundreds of milliseconds for each picking. It is just when you do a lot of
> iterations that you begin to notice the slowness, or if the dataset is really
> huge.
>
> I've fixed that in http://trac.osgeo.org/gdal/ticket/4790 in trunk and 1.9
> branch. So it will be in GDAL 1.9.2. Actually, as I think that the ECW driver
> is generally available through a plugin (and not built-in in GDAL DLL), this
> could be available sooner if the ECW plugin is rebuilt with the fixed sources.

Thanks,
QGIS is now using 2x2 only if following condition is matched:

#if !defined(GDAL_VERSION_NUM) || GDAL_VERSION_NUM < 1920
  if ( strcmp( GDALGetDriverShortName( GDALGetDatasetDriver(
mGdalDataset ) ), "ECW" ) == 0 )

Radim

> Best regards,
>
> Even
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] cpt-city

2012-09-03 Thread Etienne Tourigny
Hi,

This should not happen with new users of the cpt-city ramps.

Have you downloaded the new version of Color Ramp Manager?  cpt-city
file locations have changed, so you need to reset them in the color
ramp manager.

To get the "buitlin" ramps (a tiny selection for now), you need to
select "Use gradients that ship with qgis" in the color ramp manager
(this is default for new users).

You also have the option of downloading a more complete selection, and
also the full cpt-city package.

Etienne

On Mon, Sep 3, 2012 at 6:22 AM, Paolo Cavallini  wrote:
> Hi all.
> I have problems in using the new ramps:
> - when I try to create a new ramp based on cpt-city I get
> Error - cpt-city gradient files not found.
> - then I add the free QGIS ramp, but apparently nothing is downloaded.
> A local problem, or a general issue?
> All the best.
> --
> Paolo Cavallini - Faunalia
> www.faunalia.eu
> Full contact details at www.faunalia.eu/pc
> Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
> ___
> 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] WMS: disclaimers and tiles

2012-09-03 Thread Paolo Cavallini
Hi all.
Currently, WMS layers are printed by subdividing a single WMS request (ok for 
display
on a video) into multiple tiles. This works very well, apparently better than in
several proprietary systems.
One problem, however, arises: if the server adds a disclaimer (copyright text, 
or
similar) to each image produced, when the map is printed the text is replicated 
for
each tile, thus giving an horrible result.
I do not see an easy and foolproof way of avoiding this. A couple of approaches 
could be:
- add a setting for overlaying adjacent tiles, so that one could choose how many
pixels should be hidden by the left/right/top/bottom adjacent tile; a bad hack, 
and
fails when labels are placed in the middle of the tile
- add a proprietary extension to the server, i.e. "WMS series": the client 
could then
ask the tiles as a series, and the labels could be applied to e.g. the first 
tile
only; this would not solve the problem for other WMS backends.
Any better strategy? Thanks for suggestions and thoughts.
All the best.
-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] OGR2Layers Plugin - Output textbox directory is not active in QGIS 1.8 Mac OS X

2012-09-03 Thread Noli Sicad
On 9/3/12, Luca Delucchi  wrote:

>> Any Popup with do.
>>
>> I have not seen it (i.e. Popup for GeoJSON table attributes) in your
>> plugin.
>>
>
> there are, you have to select one of "query option" in "Optional" tab

OK. I got it. It has Popup.

Nice one.

Sorry.

Thanks.

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


Re: [Qgis-developer] OGR2Layers Plugin - Output textbox directory is not active in QGIS 1.8 Mac OS X

2012-09-03 Thread Luca Delucchi
2012/9/3 Noli Sicad :

>>
>> I don't understand, OpenLayers Popup is not enough?
>
> It is easier to use.
>

yes but it required another dependency..

> Any Popup with do.
>
> I have not seen it (i.e. Popup for GeoJSON table attributes) in your plugin.
>

there are, you have to select one of "query option" in "Optional" tab

> Noli



-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] OGR2Layers Plugin - Output textbox directory is not active in QGIS 1.8 Mac OS X

2012-09-03 Thread Noli Sicad
On 9/3/12, Luca Delucchi  wrote:

>> Yes, it works now at various screen resolutions.
>>
>
> well

>> It might be good to have Popup window for the GeoJSON similar to Leaflet.
>>
>> This SmartPopup for OpenLayers might work.
>>
>> https://github.com/ns-1m/SmartPopup
>>
>
> I don't understand, OpenLayers Popup is not enough?

It is easier to use.

Any Popup with do.

I have not seen it (i.e. Popup for GeoJSON table attributes) in your plugin.

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


Re: [Qgis-developer] OGR2Layers Plugin - Output textbox directory is not active in QGIS 1.8 Mac OS X

2012-09-03 Thread Luca Delucchi
2012/9/2 Noli Sicad :
> Hi Luca,
>
> On 9/2/12, Luca Delucchi  wrote:
>
>> try to fix with release 0.8.8 (tested on a old mac and it works),
>> please could you test it?
>
> Yes, it works now at various screen resolutions.
>

well

> It might be good to have Popup window for the GeoJSON similar to Leaflet.
>
> This SmartPopup for OpenLayers might work.
>
> https://github.com/ns-1m/SmartPopup
>

I don't understand, OpenLayers Popup is not enough?

> Thanks.
>
> Noli



-- 
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] error loading a shp

2012-09-03 Thread Paolo Cavallini
Not my lucky day. Adding a shp with double-click from the browser, I get:
Sorry, I can't manipulate this type of layer (1100)
but the shp is loaded anyway.
All the best
-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] cpt-city

2012-09-03 Thread Paolo Cavallini
Hi all.
I have problems in using the new ramps:
- when I try to create a new ramp based on cpt-city I get
Error - cpt-city gradient files not found.
- then I add the free QGIS ramp, but apparently nothing is downloaded.
A local problem, or a general issue?
All the best.
-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Transparency plugin

2012-09-03 Thread Alexander Bruy
Hi Paolo,

seems this is because of API breakage in QgsRasterLayer.
I'll look at this ASAP

2012/9/3 Paolo Cavallini :
> Hi all.
> Getting back an oldish error:
>
> An error has occured while executing Python code:
>
> Traceback (most recent call last):
>   File
> "/home/paolo/.qgis//python/plugins/raster_transparency/rastertransparencydockwidget.py",
> line 102, in __updateSpinEnd
> self.updateRasterTransparency()
>   File
> "/home/paolo/.qgis//python/plugins/raster_transparency/rastertransparencydockwidget.py",
> line 71, in updateRasterTransparency
> layer.rasterTransparency().setTransparentSingleValuePixelList( 
> transparencyList )
> AttributeError: 'QgsRasterLayer' object has no attribute 'rasterTransparency'
>
> All the best.
> --
> Paolo Cavallini - Faunalia
> www.faunalia.eu
> Full contact details at www.faunalia.eu/pc
> Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
> ___
> Qgis-developer mailing list
> Qgis-developer@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer



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


[Qgis-developer] Transparency plugin

2012-09-03 Thread Paolo Cavallini
Hi all.
Getting back an oldish error:

An error has occured while executing Python code:

Traceback (most recent call last):
  File
"/home/paolo/.qgis//python/plugins/raster_transparency/rastertransparencydockwidget.py",
line 102, in __updateSpinEnd
self.updateRasterTransparency()
  File
"/home/paolo/.qgis//python/plugins/raster_transparency/rastertransparencydockwidget.py",
line 71, in updateRasterTransparency
layer.rasterTransparency().setTransparentSingleValuePixelList( 
transparencyList )
AttributeError: 'QgsRasterLayer' object has no attribute 'rasterTransparency'

All the best.
-- 
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] QgsLegendInterface implementation works only on top level items

2012-09-03 Thread Massimo
Hi all,

I'm trying to read and write an xml file with an hierarchical set of groups
and layer. So I've decided to write a python plugin that uses
QgsLegendInterface but than I've discovered that QgsLegendInterface
implementation is limited to top level legend items.
a simple xml fragment like this:

   
   
  
   

it is impossible to re-create inside qgis just because
QgsLegendInterface.moveLayer only works with .

The plugin should also be able to write an xml file starting from a qgis set
of layer and groups. But this is also impossible because of the limited
information handled by the QgsLegendInterface implementation.

Someone could say that I can directly manage qgis project files (.qgs) but
I've already done a lot of work to load layers and applaying the specified
style.

The goal for this plugin is to substitute a custom application for a
commercial gis viewer and continue to use the same xml file as
workset/project.

For these reason I did the following pull request 
https://github.com/qgis/Quantum-GIS/pull/217
https://github.com/qgis/Quantum-GIS/pull/217  that solves the group indexing
problem.
Then I would like to add a groupLayerHierarchy method to obtain a true
group<->layer relationship that will be very usefull to produce an output
xml file.

I'm looking forward to see some feedback/approvation before to go on with my
project.
Thanks everybody and best regards.

Massimo






--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/QgsLegendInterface-implementation-works-only-on-top-level-items-tp4999348.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