Re: [Qgis-developer] Valid or invalid geom in PostGIS?

2017-01-16 Thread aperi2007

ok.

Thx.

A.



Il 16/01/2017 13:00, Paolo Cavallini ha scritto:

Il 16/01/2017 12:59, aperi2007 ha scritto:

Hi,

I dont know any postgis specific server-side simplification option.

:(

Perhaps you mean the "rendering --> Enable feature simplification by
default for newly added layers" ?

yes, there is an option for server side simplification
all the best



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

Re: [Qgis-developer] Valid or invalid geom in PostGIS?

2017-01-16 Thread aperi2007

Hi,

I dont know any postgis specific server-side simplification option.

:(

Perhaps you mean the "rendering --> Enable feature simplification by 
default for newly added layers" ?



Thx.

A.



Il 16/01/2017 12:43, A Huarte ha scritto:
Hi, do you have enabled the postgis server-side simplification for 
this layer? Maybe it could throw these errors.


Alvaro

----
*De:* aperi2007 <aperi2...@gmail.com>
*Para:* qgis-developer@lists.osgeo.org
*Enviado:* Lunes 16 de enero de 2017 12:16
*Asunto:* Re: [Qgis-developer] Valid or invalid geom in PostGIS?

QGIS retrieve geometry from postgis using WKT or WKB ?

AFAIK The WKT is less precision than WKB.

A.


Il 16/01/2017 11:37, Paolo Cavallini ha scritto:
> Hi all,
> when loading a layer in QGIS 2.18 I get from the PostGIS log panel a
> series of notices of the type:
>
> 2017-01-16T11:34:521NOTA: NOTICE: Self-intersection at or 
near point

> 619746.32941695023 4869530.4882389866
> 2017-01-16T11:34:521NOTA: NOTICE: IllegalArgumentException: 
Invalid

> number of points in LinearRing found 3 - must be 0 or >= 4
>
> Howevet, geoms seem valid:
>
> select ST_IsValid(the_geom) from istat where ST_IsValid(the_geom) = 
FALSE;

>  st_isvalid
> 
> (0 rows)
>
> I'm puzzled, any explanation?
> Thanks.

___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org <mailto:Qgis-developer@lists.osgeo.org>
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer




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

Re: [Qgis-developer] Valid or invalid geom in PostGIS?

2017-01-16 Thread aperi2007

QGIS retrieve geometry from postgis using WKT or WKB ?

AFAIK The WKT is less precision than WKB.

A.


Il 16/01/2017 11:37, Paolo Cavallini ha scritto:

Hi all,
when loading a layer in QGIS 2.18 I get from the PostGIS log panel a
series of notices of the type:

2017-01-16T11:34:52 1   NOTA: NOTICE:  Self-intersection at or near 
point
619746.32941695023 4869530.4882389866
2017-01-16T11:34:52 1   NOTA: NOTICE:  IllegalArgumentException: Invalid
number of points in LinearRing found 3 - must be 0 or >= 4

Howevet, geoms seem valid:

select ST_IsValid(the_geom) from istat where ST_IsValid(the_geom) = FALSE;
  st_isvalid

(0 rows)

I'm puzzled, any explanation?
Thanks.


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

Re: [Qgis-developer] [Server] performance questions

2016-02-23 Thread aperi2007

Hi Regis,

The shapefile is obviously more fast in opne than a postgres connection.
Is due to the different need of resources.
The postgres need to assign a lot of resources for every connection that 
it is opening.


I do't know quite well the pgpool solution, but I guess it cannot 
helpyou because AFAIK it is only for dirct connection.
You should set is with a fastcgis but you have heowever the problem that 
postgres interrupt brutally the connection after some ten of minutes 
without any byte exchanging with the clinet.


These mean that alsoif you use a fastcgi protocol but have a service not 
used for more than 30 minutes it will break connection from postgres 
side and so it need to restart the connection (and so take some time to 
do it) when the user ask for a new map.


To avoid also all these questions we use the spatialite db that is fast 
like a shapefile toopen and have no the problem of connection and break 
of connection like the postgres.


A.


Il 23/02/2016 16:11, Régis Haubourg ha scritto:

Andrea Peri wrote

I Guess the time difference between the qgis desktop and qgis-server
when using a postgres,

is due to the protocol.
Infact the http is a connection-less session-less protocoll,
so after every map the qgis-server disconnect from postgres.

Instead when you work on a qgis desktop as a user on its own pc you
are connectin with a postgres and sray connected for all the time.

So the postgres don't waste time to open and staryup your connection.

Also don't forget that if you stay about 18-20 minutes without do
nothing on qgis in a postgres connection.
The postgres kill your connection and your qgis go in crazy state.

A.

Hi Andrea,
You are right for the overhead part. This would not big a big issue if we
did not have the overhead on postgres side for extent querying on SQL views.
The same dataset in shape is open fast even at first connection.
We use pgpool here so we do not have such trouble with idle connections
being killed.
Cheers
Régis



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Server-performance-questions-tp5252233p5252247.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer


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

Re: [Qgis-developer] Label polygons only outside of polygons

2015-07-19 Thread aperi2007

Hi,
Andreas

An option to put always a label outside from a polygon seem a good 
solution only when all the polygon are quite similar size (all small).
Perhaps a better choice could be to have a label outside from a Polygon 
only when it is could not be all inside it ?


Andrea Peri.


Il 19/07/2015 15:14, Andreas Neumann ha scritto:

Hi,

I see that there are some recent new features regarding labelling:

https://github.com/qgis/QGIS/commit/388e4047a75d155be0e677866f80d7423937ea30 


and
https://github.com/qgis/QGIS/commit/3a44e294de08ee03c0386179693c61a3f76e5efe 



I have a question regarding Nyalls recent labelling improvements (the 
new options to act as obstacle layers).
For a polygon layer, would it be possible to force the labels to 
always label outside of the feature? As an example I have a 
waste-water layer with small polygons representing special-form 
manholes (irregularly shaped). These polygons are usually too small to 
properly display the label inside the polygon and I would prefer to 
automatically place the label fully outside of the polygon.


So, can I have a layer act both, as a label layer and as an obstacle 
layer? Or have another option, something like Force label to be 
outside of the polygon, to label always outside of the polygon of the 
feature?


Here are two screenshots:

This is how QGIS currently labels these polygons:
http://www.carto.net/neumann/temp/qgis_label_over_polygon.pdf

And this is how I would label them manually, outside of the polygon, 
but hope that a future QGIS version can do this automatically:

http://www.carto.net/neumann/temp/manual_label_outside_polygon.pdf

Thanks,
Andreas


___
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] Label polygons only outside of polygons

2015-07-19 Thread aperi2007

Sorry for my english.
I would mean

Perhaps a better choice could be to have a label outside from a Polygon 
only when it is could not be COMPLETELY CONTAINS ON it.




Il 19/07/2015 16:47, aperi2007 ha scritto:
Perhaps a better choice could be to have a label outside from a 
Polygon only when it is could not be all inside it ? 


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


Re: [Qgis-developer] RFC for python server plugins ready for voting

2014-10-04 Thread aperi2007

This require to define a distinct aliasing on webserver for every service.
And not allow to have one unique URL for all the services.

This is good for who have one only service, but not good for who plan to 
serve many services.


A.


Il 04/10/2014 14:52, Alessandro Pasotti ha scritto:

like

disable-python-server-side ?

Or enable it only for speciic project.

This could be easily implemented at the webserver level or directly
inside the plugins in case of need.



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


Re: [Qgis-developer] Proposal: move the Remove layer(s) button

2014-09-06 Thread aperi2007

Hi,
I guess in a GIS oriented product
Is necessary to avoid to mix the interface characteristics (the group is 
an interface object) and the data characteristics (the shapefile is not 
an interface object).


I guess more beter if add/remove dataset is separated phisically from 
add/remove a group.


The dataset is a phicical think. The shapefile is using separately from 
the qgis project.

The group is not separately from qgis project.

I guess is good question to have a remove group but avoiding to have a 
only button ADD Everything or an only button Remove everything


Also I guess is important to help to understand when we are on dataset 
(physical) and when we are on interface (logical).


Regards,

A.

Il 06/09/2014 07:10, Mathieu Pellerin ha scritto:

Greetings,

I'd like to circulate a UX proposal and see how people react.

For a very long time, QGIS' Layers toolbar has featured a Remove 
layer(s) button. I have seen two issues with the button:
- Its placement becomes really odd when plugins add button(s) to the 
Layers toolbar (for e.g. the New Memory Layer plugin as pictured here 
[ http://imgur.com/CEcIC3K,QvUzrti ])

- It can only remove vector/raster layers, won't remove groups

With the recent improvements done by Martin Dobias on the legend, and 
in particular with his addition of a layer panel embedded toolbar, I 
propose that:
- The Remove layer(s) button be moved to the layer panel embedded 
toolbar [ http://imgur.com/CEcIC3K,QvUzrti#1 ]
- The button functionally is improved so it can also deal with the 
removal of group(s)


Alternatively, we could get rid of the button altogether since layers 
and groups can be removed via right click or keyboard shortcut, but I 
suspect the touch screen based users might object.


Any objection to moving the button to the new layers toolbar?

Math


___
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] Proposal: move the Remove layer(s) button

2014-09-06 Thread aperi2007

I know this,
but my response is enlarged to a more conceptual problem.

How avoid that an user could be confusing from when it act on a logical 
level of interface,

and when it act on a physical data.

I understand that removing mean always remove and so 1 only button is 
better than two.


But my question is :
if we remove the remove layers leaving only the remove this that is 
available in the context-menu (i dont see the new legend again).


Seem quite logical to question:
why there is a remove this only command and there is instead an add 
layer and an add group seaprated.


Why two add and one remove ?

So the next logical question is why not remove the two add ad introduce 
only an unique add here in the context-menu ?

:)

So my response was to a path that can start with the remove button and 
logically end on the add button.


Regards,

Andrea.



Il 06/09/2014 08:12, Mathieu Pellerin ha scritto:


I don't think you should comparing adding group/dataset against 
deleting a group/dataset legend layer. The latter is already unified 
via either a single keyboard shortcut and a single mouse right-click 
- remove action.


On 6 Sep 2014 13:04, aperi2007 aperi2...@gmail.com 
mailto:aperi2...@gmail.com wrote:


Hi,
I guess in a GIS oriented product
Is necessary to avoid to mix the interface characteristics (the
group is an interface object) and the data characteristics (the
shapefile is not an interface object).

I guess more beter if add/remove dataset is separated phisically
from add/remove a group.

The dataset is a phicical think. The shapefile is using separately
from the qgis project.
The group is not separately from qgis project.

I guess is good question to have a remove group but avoiding to
have a only button ADD Everything or an only button Remove
everything

Also I guess is important to help to understand when we are on
dataset (physical) and when we are on interface (logical).

Regards,

A.

Il 06/09/2014 07:10, Mathieu Pellerin ha scritto:

Greetings,

I'd like to circulate a UX proposal and see how people react.

For a very long time, QGIS' Layers toolbar has featured a Remove
layer(s) button. I have seen two issues with the button:
- Its placement becomes really odd when plugins add button(s) to
the Layers toolbar (for e.g. the New Memory Layer plugin as
pictured here [ http://imgur.com/CEcIC3K,QvUzrti ])
- It can only remove vector/raster layers, won't remove groups

With the recent improvements done by Martin Dobias on the legend,
and in particular with his addition of a layer panel embedded
toolbar, I propose that:
- The Remove layer(s) button be moved to the layer panel
embedded toolbar [ http://imgur.com/CEcIC3K,QvUzrti#1 ]
- The button functionally is improved so it can also deal with
the removal of group(s)

Alternatively, we could get rid of the button altogether since
layers and groups can be removed via right click or keyboard
shortcut, but I suspect the touch screen based users might object.

Any objection to moving the button to the new layers toolbar?

Math


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



___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org mailto: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] QEP: QGIS Mapserver Python Plugins

2014-08-30 Thread aperi2007

Another question could be the timeout.

Infact. If a processing take too much time to end.
It should go in timeout.
So not only concurrency need, but also a timeout system to avoid the 
lock never ending of resources.


A.

Il 30/08/2014 13:21, Alessandro Pasotti ha scritto:

2014-08-29 18:05 GMT+02:00 René-Luc Dhont rldh...@gmail.com:

Le 29/08/2014 16:54, Alessandro Pasotti a écrit :


2014-08-29 16:39 GMT+02:00 René-Luc Dhont rldh...@gmail.com:

Hi Alessandro

Thanks for this interesting input.
I'm happy to test it and to develope some use case.
I thought it's a good feature and can help to enhance QGIS-Server easily
:
WPS, WMTS, Table Join Service, WFS2 or other that OGC does not already
know.

Regards,
René-Luc



Hello René-Luc,

I'm happy to hear that you are going to test it, please let me know how it
goes!

Keep in mind that it's just a proof of concept, and yes, we need a RFC
or QEP: the current implementation is the simplest, less obtrusive and
quickest that I could think about.

For example, I would consider adding real signals attached to plugins
slots and cached parsed projects passed to plugin instances...

I'm currently working on a WPS server plugin that bridges Processing
and PyWPS (version 3.2.2 since the latest version 4 is tightly bound
to werkzeug), now fighting with parameters but it basically works.


Can I help ?

I already done some works on it !



Regards



Hello,

I've got a first highly experimental Processing-PyWPS bridging plugin:
https://github.com/elpaso/qgis-wps

* I've only tested grass convex hull with a small shapefile
* GetCapabilties and other requests work with GET calls ony
* it needs Processing patches otherwise it hangs when reading pipes
from shell process (see [1])
* Processing needs other patches as well to support concurrent
requests (for example the grass temporary script storage should be
done in tempfile instead of the current processing folder)

I don't know Processing enough to say if there aren't any other big
showstoppers for this plugin.

Still a lot of work to do :)


  [1] 
https://github.com/elpaso/QGIS/commit/afbfb7f12b8f62731d40745035d919532ae5da1f



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

Re: [Qgis-developer] Resurrecting the RFC (QEP - QGIS Enhancement Proposal)

2014-08-25 Thread aperi2007

Hi,
only for better understanding every details,
there is a list of actual member list of PSC.

And my curiosity is for the affermations:


after all, only 3 out of 7 positions are
meant for developers


I guess a short curriculum of every psc member could help to understand 
the role of everyone.


Also, AOAIK an important question is undrstand the limit of a RFC.
Infact don't forget that the main enhancement are always covered by one 
or more funders.


Tipically they ask an enhancement with some request themself.

This RFC in the QGIS world is obviously after the real fund phase where 
the funders find the developer and contract him.

So what mean that the RFC is submittable to the PSC ?
If the PSC to accept the RFC required more changeables and these 
changeable require more fund, what happened ?


Or this RFC could be submitted before to find the developer and fund him ?

In this second situation, the RFC should be submited from the funders ?

Thx,

Andrea.


Il 25/08/2014 07:42, Martin Dobias ha scritto:

I had the same impression as Nyall. PSC is meant to steer direction of
the whole project, not to deal with technical details of
implementations in QEPs - after all, only 3 out of 7 positions are
meant for developers. At the same time I understand that creating
another developer committee would make things more complex.


I think that voting on QEPs could be started when the QEP's author has
impression that enough consensus was reached. Most projects also allow
their RFCs to go to 'deferred' state if the proposal is too
controversial.


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


Re: [Qgis-developer] Geospackage Slow in QGIS

2014-08-18 Thread aperi2007

Hi Zoltan.

Yes, this is the usual solution in the sqlite world.

I don't like it because is not a scalable solution when there are many 
records and there are relations with other tables.
Also an usual problem is to have a primary key filed with the same 
values of the original table.


The solution
create table as select ...

dont allow to have a primary key field of type integer incremental.

It need a more uggly
create table(...);
insert into  select .

But also this don't allow to have the same pk for the same records.

A.

Il 18/08/2014 22:41, Siki Zoltan ha scritto:

Dear Andrea,

what about using DB Manager's SQL window?
There you can input an SQL select.

To remove a column in SQLite you can create a new table without the 
column to delete and then use

INSERT INTO new_table SELECT ...

Regards,
Zoltan

On Mon, 18 Aug 2014, Andrea Peri wrote:


Just to explain why this is an important question.


On a sqlite db is impossible to remove a field.
So if a table is with two geometry field, it is never see-able from qgis.
Because is not possible a command like:

alter table remove filed geometry-2;

Bye,

Andrea Peri.


2014-08-18 16:52 GMT+02:00 Andrea Peri aperi2...@gmail.com:

Hi,

I have changed my opinin.
From +1 to +0

Infact I discovered just now that gdal driver for spatialite don't
seem to support tables with more than 1 geometrt field.
Almost on QGIS.

Andrea


2014-05-17 22:19 GMT+02:00 Jeremy Palmer jpal...@linz.govt.nz:
I'm wondered why QGIS needs a native SpatiaLite provider and 
connection dialogue any more. Unlike other database providers such 
as PostGIS, Oracle, MSSQL the SpatiaLite provider doesn't seem to 
have anything special that requires a QGIS provider. From a users 
perspective it just adds to the confusion and complexity for adding 
data. Why not just use GDAL/OGR for both Geopackage and Spatialite?


Cheers
Jeremy

From: Stefan Keller [sfkel...@gmail.com]
Sent: Sunday, 18 May 2014 12:24 a.m.
To: Martin Dobias
Cc: Jeremy Palmer; qgis-developer@lists.osgeo.org
Subject: Re: [Qgis-developer] Geospackage Slow in QGIS

Hi Martin

It has a different binary encoding compared to Spatialite.
And in addition it integrates raster tiles (MBTiles) and metadata.

-S.


2014-05-17 14:10 GMT+02:00 Martin Dobias 
wonder...@gmail.commailto:wonder...@gmail.com:

Hi

On Sat, May 17, 2014 at 2:32 PM, Jeremy Palmer 
jpal...@linz.govt.nzmailto:jpal...@linz.govt.nz wrote:
I've just been using the new implementation of Geopackage in QGIS 
:) However each map render or feature info is very slow for large 
database files - even with the new GDAL/OGR Geopackage spatial 
index support. Each time QGIS renders a new map view or executes a 
feature info it re-opens the Geopackage file in 
QgsOgrFeatureIterator via OGROpen, and the Geopackage driver open 
method runs PRAGMA integrity_check which is very slow (4 secs with 
my 2GB test file). This integrity check is actually a Geopackage 
requirement.


How can this be fixed? At the in QGIS or GDAL/OGR level?


Actually I am wondering how different is the format of GeoPackage from
the format of SpatiaLite... we could use our native SpatiaLite
provider also for GeoPackage files if they are close enough. Any
ideas?

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

This message contains information, which may be in confidence and 
may be subject to legal privilege. If you are not the intended 
recipient, you must not peruse, use, disseminate, distribute or copy 
this message. If you have received this message in error, please 
notify us immediately (Phone 0800 665 463 or i...@linz.govt.nz) and 
destroy the original message. LINZ accepts no responsibility for 
changes to this email, or for any attachments, after its 
transmission from LINZ. Thank You.

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




--
-
Andrea Peri
. . . . . . . . .
qwerty ˙˙
-






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


Re: [Qgis-developer] QGIS server ignores optional SVG symbols path

2014-08-14 Thread aperi2007

I guess the issue was resolved.

Look at this tickets.
http://hub.qgis.org/issues/10327
and this
http://hub.qgis.org/issues/8664

You should define one or more environment variables.
for path.

We use this approach succesfully.

A.

Il 14/08/2014 17:54, Alessandro Pasotti ha scritto:

Hi,

I noticed that when I use SVG symbols located in an optional path as
set in Settings-Options-System-SVG Paths the symbols are not
found from QGIS server.


The solution would be to add such information (currently missing) to
the project file, because this is mandatory for the server to locate
the symbols.


Should I file a ticket?




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


Re: [Qgis-developer] [Qgis-user] A discussion: is qgis still affordable in Europe if it violate the Inspire directive ?

2014-06-08 Thread aperi2007

Sorry Alx,

perhapsyou don't know well the WMS specs ?

The QGIS server is really far from be a good WMS sErver.

It has not the multy style rendering.
It has not the named groups if don't allow to change the html response .
It don't allow to return a GML response to the user in a GetFeatureInfo 
if don't active the WFS ption.

This is obviously unacceptable.
Because there is some layer that a Public Administration cannot put in 
download as they are.


The GeoServer and MapServer are real WMS Server and they allow all of 
this and more other thinks.


The ONLY question good of qgis is The project qgis is the the same in 
the server.


You think really that ths is a killer advantage that could put an 
administration to choose an incopmaptible with the WMS specs piece of 
software instead of a fully compliant with the WMS specs ?

:))

Is really ore easy to invest on an author for GeoServer of for Mapserver 
rather than waste public fund in a Incompatible piece of software.


Because the laws deny to choose it.

I guess you can also hope to sell your service to someone .
But if it ask you:
Hey your software is compliant with OGC WMS ? This is a mandatory need 
for inspire.


You what say to your possible future client ?

Yes
or No but I hope you fund it to become.

We fund really many enhancement in qgis.
And fund also the repair when there was the break-api from 1.8 to 2.0

After funding the repair for 2.0 the compatibility was lost from 2.0 to 2.2.
And now we need to refund the repair of compatibility from 2.2 to 2.4

What credibility could have a fnd that point to grnt a compatibilit of 
qgis 2.4 on WMS specs.


Who put the GetPrint tags in the getprint ?

It has do this to have an advantage and probably to sell its product to 
someone.


I say :
ok you have your advantage, you have take your money, and now ?
You have destroyed the credibility of qgis as an WMS Server OGC.
You choose to eat the egg today instead of take the chicken tomorrow, 
and now ?

Are you happy of this ?

I guess who break repair.
So I guess the solution should be put and fund by who involontary or 
volontary (i don't know) break the WMS specs compatibility.


Or otherwise the qgis group say:

we don't care about the wms compatibility so choose other software for 
this work.


But I guess there many service seller that go around to sell service on 
qgis and say that it is a server wms compiant with WMS specs.


It is a really bad practice.
And is necessary to make understand to the reader of this miling list 
that they actualy are funding for a good desktop software,

but absolutely an incompatible server side component.

This is necessary to know ewhen a public administration choose a 
software instead of another.


Andrea.



Il 08/06/2014 07:08, Alex Mandel ha scritto:

You are assuming a new deployment and one where QGIS is not used on the
desktop, where some groups may decide to use it for both in order to cut
down on IT staffing requirements. You are also assuming the choice is as
simple as picking a new one, there is plenty of people time involved in
deploying a different strategy and redo-ing all the styling to fit the
new way. Sure QGIS can push to geoserver now but running geosever means
running a JAVA stack. Switching to Mapserver would be more similar with
an apache setup but the QGIS export to Mapserver has long since fallen
into disrepair so now you'd need to make separate style rules for 2
programs.

I completely agree, QGIS should maintain compliance. My argument is that
organizations that are shifting money from proprietary licenses should
invest in ensuring an open source product meets their needs. To not do
so means at any time there be no options that fit their requirements.

I think I've also provided the links that show QGIS can be WMS compliant
and still have extra options, the spec provides for how to do it, we
just need to make the modifications and test it.

Thanks,
Alex

On 06/07/2014 02:40 PM, Maurizio Trevisani wrote:

Hello,
you say

As to why fund it? If QGIS provides other value to your organization in
some other way, total cost of operation may be lower to simply ensure
it's compliant rather than to switch software or have to use multiple
software.

but as long you, Public Administration, can choose among several
GFLOSS to implement your OGC services (that must be completely
interoperable with all the potential clients and other PA), why should
you choose a product that has choosen not to be interoperable?

The problem is not the product, but the people who doesn't mind to
write interoperable code: they are not reliable - so why a PA should
fund them and their products?

Qgis is an important product in the GFLOSS reality, but now more than
ever should take care to complethely adhere to all the international
standards, especially those which are at the basis for
interoperability.

Bye.

2014-06-07 22:17 GMT+02:00, Alex Mandel tech_...@wildintellect.com:

On 06/07/2014 01:06 PM, Andrea Peri wrote:


Re: [Qgis-developer] [Qgis-user] A discussion: is qgis still affordable in Europe if it violate the Inspire directive ?

2014-06-08 Thread aperi2007


Il 08/06/2014 15:42, Andreas Neumann ha scritto:

You can help to make QGIS server more standards compliant, but you have
to properly document this (with links to specifications) and find a
developer willing to work on this.

I am quite confident that these issues can be resolved.


Sorry Andras
thx for your attention to this question, but
I'm not able to do what you say.

The specs:
What specs are you say ?

I have the iso specs of WMS 1.3.0 but they are payable.
Not availables to no one for free.

Instead on internet there are the OGC specs that are pretty equals.
They are free and available to everyone.
I sufficient to goto OGC download and read.


developer willing to work on this.


Also this is not clear to me.
:)

I have just patched my server.
Why I should pay another to do the same think ?

Probably the problem is that the solution I apply is not so graceful to 
others

:)

We don't need the GetStle and GetPrint command.So for us is absolutely 
not imortant to preserve them.


The GetStyles is not available on GGeoserver and on MApServer , and we 
plan to create a federation of WMS servers

where every users use the wms server it like better.
But surely not plan to use a not standard wms server.
So no interest for GetStyle and GetPrint
command.

So why I should pay to preserve them ?

We pay many really many money in these year for QGIS.
And just now start to pay again because after three month qgis 2.4 start 
with another break that break some plugin we realize some time ago.
And more probably at the next 2.6 release should be again to pay for 
another break.


And just now we have payed to our actual QGIS partner to resolve some 
serious bg on SVG managing and also to support better the SVG on

qgis-server.
These are all ok for us. We are happy to fund the resolution of these bugs.

And I suppose other public administration do as us.

Also we plan some other enhancement to QGIS.
(francly I guess it will be the last)

But I don't like to pay for something that is not interested for us.

I'm capable now to transform my server qgis in a compliant wms server.
I simpli remove the GetStyle and GetPrint from the getcapabilities response.
Is easy and cheap.

I guess the problem to move the GetStyle and GetPrint in an enhancement 
section of getcapabilites should be fund by
who has interest to have a compliant qgis-server but also interest to 
have and use a proprietary solution like GetPrint.


We are not interested to save the GetStyle and GetPrint.

Why I should pay someone else?
To do what I have just do ?

For who interest in my change to code it is easy.
in a unique file .c change three or four row of code and comment other 
7-8 row.


However I put the code sample in the ticket I opened yesterday .
So who interested find all on it.

regards,

Andrea.

Il 08/06/2014 15:42, Andreas Neumann ha scritto:

You can help to make QGIS server more standards compliant, but you have
to properly document this (with links to specifications) and find a
developer willing to work on this.

I am quite confident that these issues can be resolved.


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


Re: [Qgis-developer] [Qgis-user] A discussion: is qgis still affordable in Europe if it violate the Inspire directive ?

2014-06-08 Thread aperi2007

Hi,

just for completation
(have I apologize before for my trmendous english ?)

The specs OGC WMS 1.3.0 final approval is dated year 2006.
http://portal.opengeospatial.org/files/?artifact_id=14416

Open Geospatial Consortium Inc.
Date: 2006-03-15
Reference number of this document: OGC® 06-042
Version: 1.3.0
Category: OpenGIS® Implementation Specification
Editor: Jeff de la Beaujardiere
OpenGIS® Web Map Server Implementation Specification
Copyright © 2006 Open Geospatial Consortium, Inc. All Rights Reserved.

Regards,

Andrea.

Il 08/06/2014 20:56, aperi2007 ha scritto:


Il 08/06/2014 15:42, Andreas Neumann ha scritto:

You can help to make QGIS server more standards compliant, but you have
to properly document this (with links to specifications) and find a
developer willing to work on this.

I am quite confident that these issues can be resolved.


Sorry Andras
thx for your attention to this question, but
I'm not able to do what you say.

The specs:
What specs are you say ?

I have the iso specs of WMS 1.3.0 but they are payable.
Not availables to no one for free.

Instead on internet there are the OGC specs that are pretty equals.
They are free and available to everyone.
I sufficient to goto OGC download and read.


developer willing to work on this.


Also this is not clear to me.
:)

I have just patched my server.
Why I should pay another to do the same think ?

Probably the problem is that the solution I apply is not so graceful 
to others

:)

We don't need the GetStle and GetPrint command.So for us is absolutely 
not imortant to preserve them.


The GetStyles is not available on GGeoserver and on MApServer , and we 
plan to create a federation of WMS servers

where every users use the wms server it like better.
But surely not plan to use a not standard wms server.
So no interest for GetStyle and GetPrint
command.

So why I should pay to preserve them ?

We pay many really many money in these year for QGIS.
And just now start to pay again because after three month qgis 2.4 
start with another break that break some plugin we realize some time ago.
And more probably at the next 2.6 release should be again to pay for 
another break.


And just now we have payed to our actual QGIS partner to resolve some 
serious bg on SVG managing and also to support better the SVG on

qgis-server.
These are all ok for us. We are happy to fund the resolution of these 
bugs.


And I suppose other public administration do as us.

Also we plan some other enhancement to QGIS.
(francly I guess it will be the last)

But I don't like to pay for something that is not interested for us.

I'm capable now to transform my server qgis in a compliant wms server.
I simpli remove the GetStyle and GetPrint from the getcapabilities 
response.

Is easy and cheap.

I guess the problem to move the GetStyle and GetPrint in an 
enhancement section of getcapabilites should be fund by
who has interest to have a compliant qgis-server but also interest to 
have and use a proprietary solution like GetPrint.


We are not interested to save the GetStyle and GetPrint.

Why I should pay someone else?
To do what I have just do ?

For who interest in my change to code it is easy.
in a unique file .c change three or four row of code and comment other 
7-8 row.


However I put the code sample in the ticket I opened yesterday .
So who interested find all on it.

regards,

Andrea.

Il 08/06/2014 15:42, Andreas Neumann ha scritto:

You can help to make QGIS server more standards compliant, but you have
to properly document this (with links to specifications) and find a
developer willing to work on this.

I am quite confident that these issues can be resolved.




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

Re: [Qgis-developer] Changing colour of SVG symbols

2014-05-23 Thread aperi2007

You mean this ?

http://www.sourcepole.com/svg-symbols-in-qgis-with-modifiable-colors

This need to modificate manually the svgs t add some tokens inside them.

Andrea.

Il 23/05/2014 10:31, Paolo Cavallini ha scritto:

Hi all.
I'm working on some SVG symbols for QGIS. I wish to make it possible to change 
their
colour in QGIS: anyone has a pointer to an howto?
Thanks.


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


Re: [Qgis-developer] Geospackage Slow in QGIS

2014-05-17 Thread aperi2007


I have really difficulty to write of a so complex question in english.
:(
However try to explain.
The shapefile is absolutely a bad solution for interchange usage.
We experiment every day troubles. Sometimes the troubles was discovered 
after many time.

The shapefile born as a simply format for a simply GIS product.
SO the major request was t be simpler possible.
And infact the shapefile is really simply.
The shp specs use the DBF format, but forgot that of DBF format there 
are many ,sometimes also really distinct to each other.
(read the old clipper dbf spec and the old ashton-tate dbf spec to 
understand what this mean).


So two shapefile could be not compatible at all.
Also the shapefile don't sauy nothing of character-set usage.
This is a bad question because often we must try more than one 
Character-set and hope to have no mixing of CS to retrieve correctly the 
texts.
Also the shapefile don't has a NULL definition and also it allow the 
strange mix of MULTIPART and SIMPLY geometries.


All this and so on are foe for a real interchangeable format because
usually this mean that I export from a remote system , from a distinct 
GIS solution to every other solution.


We every day use the gdal to transform (thx to gdal forever), but gdal 
cannot do miracles.


A format born for interchange is surely the GML.
It allow to define a different SRS for every geometry, also allow to 
host every typeof geometry ,
but the GML failed in the market because the geometric definition was 
not well explained and so every GIS software

choose to do its own interpretation of the geometrical tag in the GML.

Obviously the postgis , oralce and so on are not really nterchange 
formats because they are only dump of the DBMS information.

Another good candidate for interchange was the spatialite.
The lastversion 4.2 is really good.
It host metadata, host styles, host history and convert al to the UTF-8 
internal.

It has some limitation respect to the GML.
The GML allow to have a distinct SRS for every geometry instead the 
spatialite allow a SRS for every table (dataset).


But this limitation will not be a real limit today, perhaps in the next 
2-3 year it will became a limit.


But the spatialite has another limit for a good interchange format.
It is also an elaboration unit.
This is an advantage for me , but not for a real interchange format that 
need only host data.

And give the elaboration phase to the GIS.
This is a philosophy I don't like more, but has its own reasons .

So why the geopackage is not a good work format ?
The response is because it is a interchange format. The need of a work 
frmat are different from that of  a work format.
The first need to but not redundant, more compact, but without loss any 
information or setting and compressable.


The shapefile is nothing.
It is not a good interchange format, and not a good working format.
:)

The spatialite is like a DBMS, it is a good work format.
And has some point of interest in the interchange.
The capability internally to speak with shapefile, postgres, dxf, wfs 
and GML/XML are good options.


Also it hs a good elaboration capability.
Is has no the limit of the shapefile and this is good.
It host the styles and this is good.

But has also some bad points.
It is no so universal diffuse.
Only qgis know it, and the qgis seem to have an own spatialite dialect 
not fully compatible with the original spatialite.
The styles on spatialite are supported from qgis but they are 
incompatible respect at original spatialite version and this is a bad point.

The metadata tables of spatialite are ignored from qgis.
So the spatialite seem to be a chatedral in the desert.

The spatialite will never to be a real interchange format if the only 
software to use it is qgis and the same qgis is not real compatible with 
the original spatialite spec.


So the spatialite actually is a really good and strong work format .

Instead surely geopackage are no one strong point in elaboration so I'm 
not surprise that it is slow.

It don't born to do this work.
:)

A.

Il 17/05/2014 11:24, Paolo Cavallini ha scritto:

Il 17/05/2014 11:03, Andrea Peri ha scritto:

Do you know the requirements of gpkg ?

They should be really minimal.
This could help understanding speed issues:
http://openjump.blogspot.fi/2014/02/openjump-plus-reads-ogc-geopackages.html
All the best.


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


Re: [Qgis-developer] SQL Injection vulnerability

2014-03-06 Thread aperi2007

AFAIK in a SLD style should never be put a direct sql string.
The SQL is at datasource level for dataset filter and this is a question 
outside from the style.


In the style should be put only some filter for classifications.
This is more affordable with the CQL rather than SQL.

Apart from this,
in the SQL the more suitable character for sql injection is the ; char

The ; char is the break for every command and so
it allow some trick.

As example:

string= ;delete from name-table;
with the ; ias first char is capable usually to do work this string also 
in a system where it

is is a concatenation in

'select * from table-2 where (' || string || ');'

it became:

'select * from table-2 where ( ;delete from name-table; );'

a dbms that try to execute this will do an error of-course, because

select * from table-2 where ( ;

is an error, but after this it could execute the

delete from name-table;

and this is not an error.

my 2 ct.

Andrea.

On 06/03/2014 19:25, Jürgen E. Fischer wrote:

Hi Gino,

On Thu, 06. Mar 2014 at 18:51:58 +0100, Gino Pirelli wrote:

Thank you Jürgen, I feel safer ;) but... I can't figure out how postgres
quote_* methods manage -- Comments or String without Quotes that can
break SQL statement or introduce elements that can't be escaped...

quotedValue puts ' around the value and duplicates all inner ' so that they are
not interpreted as quotes that end the string, but as quotes inside the string
and also duplicates backslashes so that they are interpreted as backslashes
instead of giving the following character a special meaning.

What else is there to handle?



Jürgen



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


Re: [Qgis-developer] New feature: RFC saving style and ui in Spatialite

2014-02-05 Thread aperi2007

The 3MB size is the size of an empty DB spatialite .
A DB emty is 3MB size .

A DBspatialite with 1 single dataset of 10MB is

3MB +10MB = 13MB.

A DBspatialite with 3 dataset everyone of 10MB is

3MB + 10MB +10MB + 10MB = 33MB.

Also, AFAIK the goal of Luigi is storing in the spatialite the SLD 
finalized to rendering the same dataset stored in the spatialite,

not to store SLD for general usage.

Regards,

Andrea.

On 05/02/2014 22:24, Etienne Tourigny wrote:
Saving style as spatialite files would probably cause a significant 
file size overhead - don't all spatialite files take at least 3MB for 
the SRS tables?



On Wed, Feb 5, 2014 at 10:18 AM, Gino Pirelli lui...@gmail.com 
mailto:lui...@gmail.com wrote:


Hi,

I'm developing a new feature to save SLD and ui in Spatialite
provider in the same way this function is available for postgres.

this function developed for Faunalia is funded by ARPA Piemonte
fork is available at:
https://github.com/luipir/QGIS/tree/spatialite-savestyle
and actual modification are localized in this
commit: f058bea1fe51116b8231eb5c1ca4faee485c38b2

there are some question about how to develop it and are related
how to manage XML in a sqlite/spatialite table.

this code derive by the postgres provider code where QML and UI
xmls are recorded in a XML column. XML is a postgres type. This
type is not available in SQlite but it's available in SL 4.1
(called XmlBlob [1])
In this preliminary commit XML is saved in a text column, but
saving XML as a blog (blob type in sqlite or XmlBlob in SL) have
the advantage to avoid all encoding problems.

so the question is... sqlite blob or spatialite xmlbob?

Blob type can't allow XML parsing using SQL queries
XmlBlob allows this (using libxml2)

Blob type is sqlite native type
XmlBlob can be used only with SL 4.1

My preference is to use native data type Blob. What's you opinion
about blob/ xmlblob or whatever

regards,

Luigi Pirelli (luigi.pire...@faunalia.it
mailto:luigi.pire...@faunalia.it - lui...@gmail.com
mailto:lui...@gmail.com)

[1]
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=XmlBlob-intro


___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org mailto: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 mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Font for tests

2014-01-10 Thread aperi2007

The arial is not available on linux machines.

But the liberation Fonts are an Arial with an opensource licensing.
http://en.wikipedia.org/wiki/Liberation_fonts
We use they usually with MapServer and qgis-server.

If interested, follow this link for the download.
https://www.redhat.com/promo/fonts/

Regards,
A.

On 10/01/2014 19:45, Larry Shaffer wrote:

Hi Matthias,

On Fri, Jan 10, 2014 at 10:29 AM, Matthias Kuhn matthias.k...@gmx.ch 
mailto:matthias.k...@gmx.ch wrote:


Hi,

I was looking at some of the tests, and realized, that the
composerhtml test fails because of some slight font differences.

Firebug tells me that the following fonts are used (defined by
bootstrap.css):

Helvetica Neue,Helvetica,Arial,sans-serif

I don't have any of these Helvetica fonts installed and I am not
sure about their licensing, but it seems that no package includes
them just like that. Does anybody know a font which is just
available out of the box on all plattforms to get around such
issues? Arial maybe?

This option seems much better to me than fixing things with a
tolerance param.


About a year ago, I added a custom built, very lightweight font, 
FreeSansQGIS, just for tests [0], based off of FreeSans. Usage info is 
explained in its README [1], notably that the font not be installed on 
the system. It is intended to be loaded on-the-fly via Qt's 
font-handling routines, and is already available in the utilities.py 
module via loadTestFont() [2].


I have also added it to the startup functionality of the QGIS app and 
server [3], which loads the font if the testdata directory is 
available, e.g. when running ctest from build directory. Feel free to 
fix anything wrong with my implementation.


Regardless, I have still seen differences in how the same font is 
drawn by the different systems' window server, so some amount of 
tolerance (or a set of anomalies) is probably always going to be 
needed. Though, hopefully that's not a moving target because of the 
standardized test font.


Recently I came across another test font used by the MapServer 
project, which we might also consider using because it also has bold 
face [4]. Not sure how it compares to the 'normal' Vera font. However, 
I think if it is used it should still be renamed to FreeSansQGIS to 
avoid conflict with installed fonts, and make it easily searchable in 
the QFontDatabase.


[0] https://github.com/qgis/QGIS/tree/master/tests/testdata/font
[1] 
https://github.com/qgis/QGIS/blob/master/tests/testdata/font/FreeSansQGIS-README.txt
[2] 
https://github.com/qgis/QGIS/blob/master/tests/src/python/utilities.py#L218-L228

[3] https://github.com/qgis/QGIS/blob/master/src/app/main.cpp#L739-L746
https://github.com/qgis/QGIS/blob/master/src/mapserver/qgis_map_serv.cpp#L244-L253
[4] https://github.com/mapserver/mapserver/tree/master/tests/vera

Regards,

Larry

Have a nice weekend,
Matthias
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org mailto: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 mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread aperi2007

On 03/01/2014 13:06, Alessandro Pasotti wrote:

I also think it's not possible at the moment.
But I like the way it was implemented in other frameworks, all I need 
is a way to get the style image for a single class. I guess we need 
to add a custom WMS method to the QGIS Server.


This is possible using the optional parameter scale from wms specs.
Using it and the layers param.
You could identify a single layer and get the legend at a specific scale.

Apy attention:
if you do not specify the scale parameter the wms server will return the 
render to ALL the scale.

This mean tahat the renddering is
a point a little scale and a polygon at large scale,
it will return an mage with a point and a polygon.

Regards,

Andrea.


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


Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread aperi2007

The RULE ?

It need to know exactly the class name,
but AFAIK the rule name is not available from the GetCapabilities

don't ?

A.

On 03/01/2014 15:27, Alessandro Pasotti wrote:

2014/1/3 Yves Jacolin yjaco...@free.fr mailto:yjaco...@free.fr

Hello,

Le vendredi 3 janvier 2014 13:14:57 aperi2007 a écrit :
 On 03/01/2014 13:06, Alessandro Pasotti wrote:
  I also think it's not possible at the moment.
  But I like the way it was implemented in other frameworks, all
I need
  is a way to get the style image for a single class. I guess
we need
  to add a custom WMS method to the QGIS Server.

 This is possible using the optional parameter scale from wms
specs.
 Using it and the layers param.
 You could identify a single layer and get the legend at a
specific scale.

 Apy attention:
 if you do not specify the scale parameter the wms server will
return the
 render to ALL the scale.
 This mean tahat the renddering is
 a point a little scale and a polygon at large scale,
 it will return an mage with a point and a polygon.

Maybe I did not understand what alessandro said, but it seems to
me that it is
rather the RULE parameter for the GetLegendGraphic that allow you
to get the
legend for one class.

See https://github.com/qgis/QGIS/pull/901

Y.


Thanks Yves, this is exactly what I need.

This is only available in master but not in 2.0.1, correct?


--
Alessandro Pasotti
w3: www.itopen.it http://www.itopen.it


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

Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread aperi2007

On 03/01/2014 15:47, rldhont wrote:


Yes, but you can query the style in SLD and have the CLASS name.

Others clients like mapfish use it

Regards,
René-Luc D'Hont

Hi,

Is really interst this information.
I don't know this option.

Is a wms specs request ?

Thx,

Andrea.

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


Re: [Qgis-developer] QGIS Web Client improvements

2014-01-03 Thread aperi2007

Sorry, I don't understand before.

Obviously this mean that this solution is not for external wms where 
there isn't this little php addon.
Only for direct accessible server where is possible to add this 
php/python addon.


Also perhaps is better to add a vendor-specific parameter to the 
getcapabilites of qgis.

So you have no problem in evolutions of projects .qgs file formats

A.

On 03/01/2014 15:45, Alessandro Pasotti wrote:

2014/1/3 aperi2007 aperi2...@gmail.com mailto:aperi2...@gmail.com

The RULE ?

It need to know exactly the class name,
but AFAIK the rule name is not available from the GetCapabilities

don't ?



Yes, but as I wrote, with a small Python/PHP helper that parses the 
project file we can get that information and bind the two.


The SVG legend (if contains proper attributes to build the FILTER) 
would work without an additional helper.



--
Alessandro Pasotti
w3: www.itopen.it http://www.itopen.it


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

Re: [Qgis-developer] min/max for rasters

2013-12-13 Thread aperi2007


AFAIK

The strategy of 2-98 is usually useful when there a noised image, 
because we assume that the noise is a white noise and it

is randomized an isolated spikes.

THis is absolutely a right theory and really useful,
ma what kind of imagge are usually used in a gis system.

If we think at the ortophoto image the noise could be really happened 
because they came from a photo-sensor.


But is we think to a artificial image, like the 2-colors balck-white 
images named carta tecnica thata are trasposition of vectorial data.
Them are no noised images and has a really thin lines. Also the 
artifical thematic chars with colors and point and symbols and lines 
(outline and so on) are noise-less images.

Don't forget to think also to geological charts. Are all noise-less images.

So what kind of image are more used in a GIS system ?

This is not simple question.
The response is , it is dependent by the kind of work you should do..

But also another question is:
Usually the ortophoto are not simple to have . They are produced and 
have a license.
The thematic images are more easy to produce and are often without a 
license or has a free license.


More often the ortophoto images are available from a WMS system, and 
this is a solution that deny the use of the 2-98 strategy.


Andrea.

On 14/12/2013 07:17, Paolo Cavallini wrote:

Il 13/12/2013 20:18, Radim Blazek ha scritto:


Can you describe some examples where 2-98% is a problem (data type,
number of bands, map content, features/phenomena represented by those
2+2%,...) so that we can think about it better?

Example #1 (less problematic): dtm and their legend are always shown
wrong; newbies do not understand why
Example #2 (more serious): rasterizing sparse vectors (e.g. rivers)
results in a black rectangle, as the number of pixels with valid data is
2%.

In fact, I think we should help users more, e.g. by applying non linear
colour scaling (log, exp)  in case of very skewed raster values
distribution: if data are more or less normally distributed, no cut is
applied, and linear scaling is used; if they are badly skewdw or with
outliers, apply a non linear colour scaling. With some thinking, this
should solve most if not all user cases, without asking a normal user to
understand much about raster stats.

However, in my case the general setting use min/max does not seem to
be working.
Thanks for your thoughts.



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


Re: [Qgis-developer] Reliable way to determine a groupIndex in the legend tree

2013-10-10 Thread aperi2007
I guess instead that much better should be a group checkbox that 
enable/disable the under childs layer.


This allow OFF the actual configuration or ON that same configuration.
Actually the group checkbox when checked put ON all the layer.
This often is mean too much information .

Instead the mutual exclusive need to choose only one.
And in that case disable and ri-enable will reput the same original clayer.

Andrea.


On 10/10/2013 10:08, Vincent Schut wrote:

On 10/09/2013 11:41 PM, Nyall Dawson wrote:



Personally, I am also interested in enhancing group options in
the layer
tree. Groups are not just stupid containers with only toggling of
visibility. They could also have a group opacity and blending and
group
metadata. Later on we may also have clipping and masking on
groups. So
we really should have an extensible mechanism for groups as new group
features appear.


One thing I'd love to see is the ability to make the layers in a 
group mutually exclusive. (ie, imagine radio buttons instead of 
checkboxes for controlling the visibility of layers within that 
group). I find I'm often going through a process of switching one 
layer on, then switching a bunch of other layers off for comparison 
purposes. A mutually exclusive layer group which automatically 
switched the other child layers off when I select a layer would make 
this process much nicer!


+1 for this feature from a frequent user!

Best,
Vincent.


Nyall




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

Re: [Qgis-developer] Suppress rendering of small features

2013-09-11 Thread aperi2007

Not always is preferrable to suppress the small features.
Often in our rendering we prefere to substitute a small rendering of 
kind polygon with a point rendering at lowest scales.


This is possible using the Rule-Rendering
also is possible to use the rule-rendering to define a rule that in a 
scale interval and with a dimension interval the feature is render using 
a point rendering and change in a polygon rendering when the scale grow.


Andrea.

On 12/09/2013 02:13, Nyall Dawson wrote:

Hi all,

I've been chatting with Nathan about adding a feature to QGIS which 
would allow suppression of rendering features smaller than a set 
threshold for vector layers. (There's already a similar function in 
the labelling engine Suppress labeling of features smaller than). 
This feature would come in handy for me for several tables which 
contain a wide range of very small - very large features, which cause 
slow rendering at small scales.


I'm just checking that if I code this up it's not going to be 
duplicated effort - Nathan is under the impression that someone else 
has been talking about adding something similar. Is there currently 
any plans for a feature like this, or should I get started?


Nyall





___
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] Labels on topologically wrong polygons

2013-07-24 Thread aperi2007

On 24/07/2013 17:55, Larry Shaffer wrote:
I think QGIS should offer the option to on-the-fly try to fix those 
geometries. This was discussed previously [0]


The MakeValid is not a fast process.
Try to apply it on-the-fly will slow again the labelling flow.

Another problem is tht it could change little , but not less important, 
part of a geometry.

so if the user will decide to edit it .
Instead of editing the original geometry it will edit a changed geometry.
And save in the shapefile (o r other container) another more changed 
geometry.


Don't forgot that the original ST_MakeValid of postgis (and also 
spatialite) will return also the

removed parts of original geometry. (point , arc or other it was)

To not lost of view the original geometry.

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


Re: [Qgis-developer] Relative paths in mapserver

2013-06-20 Thread aperi2007

Hi,

in mapserver is possible to define more environment variables and rfer 
to each of they for each of projects called.


I guess this is a good and flexible approach.
I don't know but perhaps is possible also in  qgis-server.

Regards,
Andrea.

On 20/06/2013 07:50, Alex Mandel wrote:

On 06/19/2013 10:48 PM, Paolo Cavallini wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 20/06/2013 07:31, Alex Mandel ha scritto:
Shorter urls are easy with Apache using Alias (This is the same way 
recommended for

Mapserver too) and symlinks.


Thanks for the replies. Yes, I was aware of these solutions, I was 
kind of assuming

it should have worked also with relative paths.

All the best.
- -- 
Paolo Cavallini - Faunalia



The problem I see with that, is relative to what? Apache web root? 
fcgi location? Seems like a lot of possible options.


Thanks,
Alex
___
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] raster visualization

2012-04-22 Thread aperi2007

Hi Agus ,
thx for your informations.

 Opening the raster layers very fast but getting a bad visualization
 would not be a major
 waste of time? This is what currently happens to me: the initial
 display is always useless.


I understand your point of view, but i guess is not a need for every 
users. Same users can't wait the 4+ minutes need for the elaboration of 
a raster.
Again because an user could open usually more than 20 rasters for every 
session, I guess this elaboration should be absolutely optional to avoid 
a really big lost of time.


 If your raster layers have similar statistics and or you want to
 display them with the same stretching so
 that grey levels or colors are comparable (which is often my case
 also, with time series of ndvi for example), a common style file would
 be the best solution.

Your solution seem good to me.

We have more set of rasters of ortophoto type colors and grey.
Eachset of colors photo is surely with comparable levels, instead I 
don't know for the gray photo sets.

They are too older (1954 and so on).

Instead for raster cell (grid data) from Lidar:
Just now we begin to merge all our sets to have a full land-cover.
So we are merging 1x1, 2x2 and 3x3 meters cells.
I don't know if this could have some trouble with having a comparable 
set of values, but guess of no.


Surely is not possible to find a unique style good for all the sets, but 
is possible to establish a good style for each set.


...Perhaps, in
 case a raster style is present, the by default procedure and
 calculations could be bypassed. Would this be a good solution
 in your case?


You mean a file raster-style in the same folder of the raster set or of 
the catalog file ?
I guess this could be a good compromise to help the use in situation 
like ours.


Andrea.

Il 22/04/2012 19:43, Agustin Lobo ha scritto:

Andrea,

Opening the raster layers very fast but getting a bad visualization
would not be a major
waste of time? This is what currently happens to me: the initial
display is always useless.

If your raster layers have similar statistics and or you want to
display them with the same stretching so
that grey levels or colors are comparable (which is often my case
also, with time series of ndvi for example), a common style file would
be the best solution. Perhaps, in
case a raster style is present, the by default procedure and
calculations could be bypassed. Would this be a good solution
in your case?

Agus

El día 20 de abril de 2012 15:10, Andrea Periaperi2...@gmail.com  escribió:

- on initial load of a raster, generate a quicklook that is the larger
of 1/4 screen resolution or 500x500 pixels by sampling every nth pixel
- generate a histogram from the quicklook
- calculate clipped 2% - 96% range min max for each band
- apply a histogram stretch based on the above
- the histogram could be used for generating the graph in raster
props, and the quicklook could be used to create thumbs and previews
etc
- ideally we should cache these quicklooks and only regenerate them if
the underlying dataset has changed

I believe if we do this we will have fast initial load and the images
(grayscale and rgb) will 'look right' when first loaded (i.e with good
contrast) and it would not be necessary to assign any color value to
grayscales by default.

Regards


Hi,
just my 2 ct.

I guess the more important capability with raster is to open they faster
possible.

I fear calculate all these values on first opened take more time than what
is waitable for the open of a raster.

Perhaps this action should be choosable by settings ?

Of course I see our situation.

Our situation is of more sets of raster (7-800 each set) where every raster
is grey level or true color of 3-400 Mbyte each.
And all these raster are accessible by a remote shared server to our users.
For a total, actually, of about 13.000 rasters.

I don't understand if this new feature could be really usable in a situation
like our.

--
-
Andrea Peri
. . . . . . . . .
qwerty àèìòù
-


___
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] Re: WFS feature IDs: when required, when not?

2012-01-09 Thread aperi2007

Hi Bill,

I guess perhaps you could calculate the
PointOnSurface (don't the centroids) for every single feature received.

The PointOnSurface (available on spatialite for example)
Will Allow you to understand if a new Features received is the same or 
is another.


Another technics should be calculate the UUID of every feautre received.

I guess this technics should allow to understand almost pretty well if a 
feature is repeated or not.


Regards,
Andrea.


Il 09/01/2012 15:29, Bill Clay ha scritto:
 All,

 Thanks to Andrea Peri, I have just discovered that WFS 1.0.0 apparently
 does NOT require a WFS server to report a unique feature ID with every
 feature it transmits (a typical newbie misconception?).

 The OGC specs are so nested and versioned, it's hard to be certain I've
 understood them correctly. Could someone be kind enough to enlighten me
 on the following?

 1. Can you confirm or correct the following understandings:

 a. Every WFS server (versions 1.0.0 and 1.1.0) must have a permanent
 unique identifier for every feature.

 b. WFS GetFeature responses version 1.0.0 may or may NOT provide a
 unique fid attribute with each feature element, provided the layer
 is not editable (WFS-T).

 c. WFS GetFeature responses version 1.1.0 MUST provide a unique fid
 attribute with each feature element.

 2. Are you aware of any common implementation of WFS 1.0.0 that does NOT
 always report a fid attribute with every feature element? (I
 understand TinyOFS can be configured not to do so.)

 3. Do you believe that WFS services that do not always provide a fid
 with every feature are unusual enough that the QGIS WFS client can
 simply disable all feature caching for such servers?

 The proposal at item 3 would require GetFeatures to be requested for the
 entire canvas extent every time any previously un-fetched area is
 exposed on the canvas. Practically speaking, this means potentially long
 delays on every pan and zoom-out on maps containing WFS layers with many
 features that are hosted by such servers.

 Doubtless this is old news to everyone but me. Sorry for the static.

 Bill Clay



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


[Qgis-developer] In the Postgis driver don't list schema without geometries

2011-10-24 Thread aperi2007

Hi,

Using the postgis driver,
the option Also list tables with no geometry
work only on shemes where there is almost a table with geometry :)

Infact I create a scema with only one table and this single table has no 
geometry.


This schema and the table is not lists when try to connect to the DB.

I guess this is a bug

but I don't know if this is a problem for my qgis:
qgis-dev (b34f924) on windows,
with postgres 9.1.1 and postgis 2.0

someone can confirm it ?

Thx,

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


[Qgis-developer] Re: In the Postgis driver don't list schema without geometries

2011-10-24 Thread aperi2007

are you sure it is not a permission problem? There are permissions
schema usage and on table, views, and more. If you don't have the
permissions, it won't be listed.

Andreas

Hi,

I check my grant, its all ok.

Also I update to the 1a1f5eb.

But again I cannot see it.

More explain:

I can see all the tables without geometries.

This is my use-case:

I create a new schema
after this I create a single unique tables in this newly created schema.
This newly created table is without any geometry field.

After this I insert some records n this table.

After this,
I try to inquity the db using the
qgis postgis driver.
setting:

uncheck only look in the geometry_columns
uncheck only look in public schema
check also list tables without geometries
check use estimated table metadata

when I try to connect qgis list me another schema thata has many tables 
with geometries and tables without geometries.


But this new created schema with the only one table is not listed.

However I see there more problem because
I notice that never the public schema was showed (it has no geoemtries 
table in my db)


I notice also there is two checkbox named also list tables with no 
geometry.
One is in the create new postgis connection windows and the other is 
in the add postgis table.


Checking the checkbox in the create new postgis.. do nothing.
Instead if I check the version in the add postgis table will do appear 
the public schema.


Seem the checkbox also no geometry tables in the create new 
postgis... windows do absolutely nothing.


However my newly create schema with only one table without geometry 
never appair :)



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


[Qgis-developer] Re: In the Postgis driver don't list schema without geometries

2011-10-24 Thread aperi2007

I have found why my schema don't appear.

It was the
Only look in the 'public' schema.
Unchecking it was appeared.

I was beat before because,
when check the
Only look in the public schema
was reported me not only the tables in the public but also all the 
tables (with geometry) in other schemas .

Now I guess this was reported because listed in the geometry_columns view.

Regards,

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


[Qgis-developer] osgeo4w qgis-dev unknown version

2011-10-22 Thread aperi2007

Hi,

I notice the last available version of qgis-dev (from osgeo4w-setup)

is numbered as

b34f924

But this version (b34f924) is not listed in qgis-commit list.

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


[Qgis-developer] Re: shx missing

2011-10-07 Thread aperi2007

It must be possible, as there are utilities that do it, e.g.
http://arcscripts.esri.com/details.asp?dbid=10806 and shapecheck.
I do not know if there are free utils though.
All the best.
--
Paolo Cavallini - Faunalia

Yes The great shapecheck.

I use it from many years to resolve the missing shx file problem.

I can confirm, It work really.

The shx is only a position-link index.
It link the position number of geometry (shp) to the position number of 
fileds (dbf)


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


[Qgis-developer] Re: shx missing

2011-10-07 Thread aperi2007

Hi all.
If the .shx file is missing for a given .shp, qgis will correctly 
complain and will
not load the shapefile. Apparently in other sw this issue is solved by 
rebuilding the

shx[0] (it seems a common problem for CAD users, for instance[1]).
Would it be feasible for qgis to have the same option? I do not think 
it is supported

by OGR, so possibly it would be better to add it there?
All the best.

Hi,

Guess another really useful tools should be a tool capable to 
re-organize a dbf following the shp + shx file.


I explain better:

Surely one important option is be able to create the SHX file from the 
SHP and DBF if it is missing.


But also another very interesting situation is when the DBF is 
re-ordered wrongly.


A sample situation is when a user open the DBF using other softwares 
like excel or access or also other similar softwares (openoffice, and so 
on) all DB-manager like capables to understand only the dbf file.


This softwares when save the dbf unfortunately often they re-order the dbf.
This is a very bad situation because after this reorder, the couple 
shp+shx are not-sync with the dbf.
And a result of this is that the GIS tools begin the associate the wrong 
record to every geometry.


In this situation, the shp file and the shx file are surely correct. 
They are not touched from a tools DB-only that write the dbf file.


So I guess it should be possible to re-create a correct dbf correct 
ordered following the info of the SHX file.



Regards,

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


Re: [Qgis-developer] How should work the placement over on adv-label

2011-10-05 Thread aperi2007

 Hi Andrea

 I assume you are using old labeling system (Labels tab in layer
 properties) - this one does not handle collisions at all. Try new
 labeling instead (menu Layer  Labeling -or- look for the icon in
 toolbar) and use horizontal or free placement - it should do what
 you need.

 Martin


Great !

Thx Martin its exactly what I need.

Regards,

Andrea.

Il 05/10/2011 19:45, Martin Dobias ha scritto:

On Mon, Oct 3, 2011 at 5:38 PM, Andrea Periaperi2...@gmail.com  wrote:

Hi,

I have a situation of polygon like this:

   -
   | A  |
   ||
   |    |
   |  |  B ||
   |  |||
   |  |||
   |  |||
   |  |||
   |    |
   ||
   -

Where the poly A has a hole and the poly-B fill exactly the hole of poly-A


Hi Andrea

I assume you are using old labeling system (Labels tab in layer
properties) - this one does not handle collisions at all. Try new
labeling instead (menu Layer  Labeling -or- look for the icon in
toolbar) and use horizontal or free placement - it should do what
you need.

Martin



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


[Qgis-developer] Re: Approximate reprojection for vectors

2011-10-02 Thread aperi2007

Hi,
as you probably know, raster reprojection is using approximate
reprojection to get acceptable rendering speed. Now I am thinking
about a possibility to implement the same also for vectors, to speed
up vectors rendering. What do you think about that? Does it make
sense?

Radim

This is a very serious question.

I will give my 2ct.

What do you think about that? Does it make
sense?

I guess absolutely no.

The mix in the same maps of
data reprojected with lost precision
and data not reprojected
will produce wrongly maps.

Regards,

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


Re: [Qgis-developer] Re: Release plans for 1.7.1

2011-08-27 Thread aperi2007

Il 27/08/2011 03:59, Giuseppe Sucameli ha scritto:

If I remember the problem Andrea wrote, neither the plugin installer worked
under proxy in that case.
Probably it was due a unsupported authentication method because proxy settings
was well-filled.

@Andrea, could you investigate further and give us more details about
that proxy
configuration, e.g. auth methods supported?
I think we may find a solution sooner if people share our own
experience in proxies,
like Duarte did yet.

Thanks a lot.


Hi Giuseppe,

We have some situations of some Local Governments that was absolutely 
unable to access to the plugins lists.

Menawhile others was able to.
After some try, we discovered that all the Local Government that was 
unable to access the local plugin was with a proxy with user/password.
Unfortunately we don't have a proxy with user/pwd so we don't able to 
replicate.


However thx to this Local Governments we can do some tests.
We try with HttpProxy and with HttpProxyCaching , but no success.

We discover also that the same problem was on Layer-WMS that use the 
same proxy settings. Also it don't work if the proxy use the couple 
user/pwd.


To make the quest more complex was the fact that if the destination was 
inserted in a whitelist (of the proxy) then the proxy don't ask for the 
couple user/pwd and go directly to destination.


These make all more complex because meanwhile the repository of the 
plugin are of course not in whitelist. Often the destinations of 
LayerWMS was in whitelist (ie: another Local Government that has a Wms 
Server and so on).


Infact when the proxy see that the destination is in a whitelist don't 
ask the user/pwd but go to it directly.



BUT PAY ATTENTION:
if a destination is in a proxy whitelist don't mean is possible to go 
to it without setting the proxy.
The proxy need to be set however. Only the proxy to go directly without 
ask for user/pwd.



I don't know if the couple user/pwd that this proxies will ask for is 
really the couple user/pwd in the proxy settings page.

- perhaps they are two thing completely different-
Infact I don't understand why if the destination is in a whitelist the 
proxy should don't ask for usr/pwd.


Instead I think the couple usr/pwd of these proxies is a sort of 
super-protection.

Something like this
- if the destination is unknown then I (the proxy) want to know who are 
you before allow you to go to the destination.


Unfortunately is quite hard for me to do other tests using the Local 
Governments proxies.


I prefer to install a my own proxy and use it for some tests.
http://www.ausgamers.com/features/read/2638752
Let me know. If is need I try do it.

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


[Qgis-developer] Re: Release plans for 1.7.1

2011-08-24 Thread aperi2007

It would be nice to release 1.7.1 version with only bugfixes and no new
features.

I discovered that with QGIS 1.6-1.7 WMS connection never uses proxy
user/password authentication, this is a big problem in corporate
environments. I filed the bug #3844. The bug appeared after the
rewrite of
QGIS connection management (see this: #3912 it was fixed, but now it is
broken again).

+1

We discovered that also the plugin repository never uses proxy 
user/password.

Perhaps will use the same classes ?
It work only with proxy anonymous (without user/pwd).
So to update the plugins we need to put the repositories in the white-list
(very very bad practice for network administrators).

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


[Qgis-developer] Metatools: geographics box should be always in geograph. coords

2011-08-20 Thread aperi2007

Hi,

Testing the Metatools, I notice the geographics box is always load with 
coords from actual SRS od map-canvas.
Instead in the ISO19115 it should always be filled with Geographicals 
coords (lat. long).

So it should convert the coords from SRS of MapCanvas to EPSG:4326.

Regards,

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


[Qgis-developer] Updating to psycopg2.4.2 ?

2011-08-19 Thread aperi2007

Hi,

I notice there is avaliable a new psycopg2.
http://initd.org/psycopg/articles/2011/06/12/psycopg-242-released/

Should be effort to update the osgeo4w package to this new version ?
Some QGIS plugins need psycopg2.

I see this new version has some enhancement with PG 9.0
as reported here.
http://initd.org/psycopg/articles/2011/05/11/psycopg-241-released/

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


[Qgis-developer] qspatialite: error in the

2011-07-26 Thread aperi2007

Hi,
after update to last version qspatilaite,
opening the qspatialite plugin I see this error on windows .

An error has occured while executing Python code:

Traceback (most recent call last):
  File 
C:/Users/andrea/.qgis/python/plugins\QspatiaLite\qspatialite.py, line 
67, in run
dlg = 
QspatiaLiteDialog(self.load_to_canvas,self.get_layer_names,self.save_layer,self.delete_tmpshp, 
self.import_gis_files, self.viewresult, self.export2ogr, 
self.iface.mainWindow())
  File 
C:/Users/andrea/.qgis/python/plugins\QspatiaLite\qspatialitedialog.py, 
line 103, in __init__
if not self.connect_to_spatialite(): #get connectionSettings and 
connection to spatialite DB
  File 
C:/Users/andrea/.qgis/python/plugins\QspatiaLite\qspatialitedialog.py, 
line 1225, in connect_to_spatialite

self.prepare_tree() # prepare tree for new DB
  File 
C:/Users/andrea/.qgis/python/plugins\QspatiaLite\qspatialitedialog.py, 
line 726, in prepare_tree

columnsList = self.get_columns(record[0])
  File 
C:/Users/andrea/.qgis/python/plugins\QspatiaLite\qspatialitedialog.py, 
line 1182, in get_columns

rep=cursor.execute(query)
OperationalError: no such module: VirtualSpatialIndex

Python version:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]


QGIS version:
1.8.0-Trunk Trunk, 33c766c

Python path: ['C:\\Users\\andrea\\.qgis\\python\\plugins\\cswclient', 
'C:/osgeo4w/apps/qgis-dev/./python', 'C:/Users/andrea/.qgis/python', 
'C:/Users/andrea/.qgis/python/plugins', 
'C:/osgeo4w/apps/qgis-dev/./python/plugins', 
'C:\\osgeo4w\\bin\\python25.zip', 'C:\\osgeo4w\\apps\\Python25\\DLLs', 
'C:\\osgeo4w\\apps\\Python25\\lib', 
'C:\\osgeo4w\\apps\\Python25\\lib\\plat-win', 
'C:\\osgeo4w\\apps\\Python25\\lib\\lib-tk', 
'C:\\osgeo4w\\apps\\qgis-dev\\bin', 'C:\\osgeo4w\\apps\\Python25', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages\\win32', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages\\win32\\lib', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages\\Pythonwin', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode', 
'/usr/share/qgis/python', 
'C:\\osgeo4w\\apps\\qgis-dev\\python\\plugins\\fTools\\tools']


Regards,

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


Re: [Qgis-developer] Using SVG symbol with modifiable color-widths

2011-07-11 Thread aperi2007

Hi Marco

thx for response.
it work very well.

Just a little question for fill section.

My symbols was with
fill:none

I try using

fill:param(fill) none

but qgis seem don't recognize it
I guess the 'none' value is not supported right ?

Hovewer thx for this enhancement. It is very useful and save me from 
make many symbols for more colors and more sizes.


Andrea.



Il 11/07/2011 17:39, Marco Hugentobler ha scritto:

Hi Andrea

I'm not sure, but it could be the single quotes. Try to change

path style=fill:none;stroke:'param(outline) #00'...

to

path style=fill:none;stroke:param(outline) #00...

If it does not help, attach the svg symbol to test.

And the svg parametrisation works only with new symbology, not with the old
one.

Regards,
Marco

Am Samstag, 9. Juli 2011, 18.58:11 schrieb aperi2007:

Hi,
I'm try-ing the option to change the color/width of SVG symbol
following instruction in
http://www.sourcepole.ch/


After create the symbol with Inkscape I see the SVG has
this structure:

...
path
style=fill:none;stroke:#00;stroke-width:0.1;stroke-linecap:butt;
stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray
:none ...

so I try to change like this:

path style=fill:none;stroke:'param(outline)
#00';stroke-width:'param(stroke-width)
0.1';stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-mite
rlimit:4;stroke-dasharray:none ...

Unfortunately it don't seem work.

qgis don't render the symbol.

Because I'm not an SVG expert perhaps I do some odd error.

thx,

Andrea.
___
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] Using SVG symbol with modifiable color-widths

2011-07-09 Thread aperi2007

Hi,
I'm try-ing the option to change the color/width of SVG symbol
following instruction in
http://www.sourcepole.ch/


After create the symbol with Inkscape I see the SVG has
this structure:

...
path
style=fill:none;stroke:#00;stroke-width:0.1;stroke-linecap:butt; 
stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none

...

so I try to change like this:

path style=fill:none;stroke:'param(outline) 
#00';stroke-width:'param(stroke-width) 
0.1';stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;stroke-miterlimit:4;stroke-dasharray:none

...

Unfortunately it don't seem work.

qgis don't render the symbol.

Because I'm not an SVG expert perhaps I do some odd error.

thx,

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


[Qgis-developer] Update geos library in osgeo

2011-05-30 Thread aperi2007

Hi,
Just now was released the geos 3.3.0 version.

Is possible to update it in the osgeo package ?

Regards,

Andrea.

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


[Qgis-developer] Error installing CSW plugin

2011-05-25 Thread aperi2007

Hi,
updating the CSW plugin I have this error:

Couldn't load plugin cswclient due an error when calling its 
classFactory() method


Traceback (most recent call last):
  File C:/osgeo4w/apps/qgis-dev/./python\qgis\utils.py, line 138, in 
startPlugin

plugins[packageName] = package.classFactory(iface)
AttributeError: 'module' object has no attribute 'classFactory'

Python version:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]


QGIS version:
1.8.0-Trunk Trunk, b02d06b

Python path: ['C:\\Users\\andrea\\.qgis\\python\\plugins\\cswclient', 
'C:\\Users\\andrea\\.qgis\\python\\plugins\\cswclient', 
'C:/osgeo4w/apps/qgis-dev/./python', 'C:/Users/andrea/.qgis/python', 
'C:/Users/andrea/.qgis/python/plugins', 
'C:/osgeo4w/apps/qgis-dev/./python/plugins', 
'C:\\osgeo4w\\bin\\python25.zip', 'C:\\osgeo4w\\apps\\Python25\\DLLs', 
'C:\\osgeo4w\\apps\\Python25\\lib', 
'C:\\osgeo4w\\apps\\Python25\\lib\\plat-win', 
'C:\\osgeo4w\\apps\\Python25\\lib\\lib-tk', 
'C:\\osgeo4w\\apps\\qgis-dev\\bin', 'C:\\osgeo4w\\apps\\Python25', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages\\win32', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages\\win32\\lib', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages\\Pythonwin', 
'C:\\osgeo4w\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode', 
'C:\\osgeo4w\\apps\\qgis-dev\\python\\plugins\\fTools\\tools']


Regards,

Andrea Peri.

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


[Qgis-developer] Strange list in osgeo4w installer

2011-01-03 Thread aperi2007

Hi,

I notice the osgeo4w installer (I'm on windows 7) has some items 
repeated in the lib section of advanced install.


I notice two times
gdal17
gdal17-ecw
gdal17-mrsid

as items #8 and so on

and the same repeated as items #82 of the same section.

Apparently all seem work,
but I don't think this is a good think.

I don't know if and where report this situation.

perhaps to the osgeo4w site ?

Thx,

Andrea.

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


[Qgis-developer] Re:CAD Tools: icons not visible

2010-12-25 Thread aperi2007

Can anybody see the icons in other 64bit installations?
All the best.


In Win7 - 64bit installation from os4geo (qgis-dev)
I see them.

Andrea.


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


Re: [Qgis-developer] Re:CAD Tools: icons not visible

2010-12-25 Thread aperi2007

Il 25/12/2010 10:31, Paolo Cavallini ha scritto:

Il giorno sab, 25/12/2010 alle 10.14 +0100, aperi2007 ha scritto:

Can anybody see the icons in other 64bit installations?
All the best.

In Win7 - 64bit installation from os4geo (qgis-dev)
I see them.

Thanks - is this a real 64bit?
All the best.


The win7 I'm using is the 64bit version . Is a really 64bit version.
But qgis-dev is the 32 bit version (from osgeo4 installer)

Andrea.

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


[Qgis-developer] Table geometryless ask an unique index int4

2010-12-11 Thread aperi2007

Hi,

I'm try to test the geometryless capability of qgis.

I'm see-ing qgis report an error because
there were no columns in the table that are suitable as a qgis key (an 
unique index and int4 type).


This is true, my table geometryless is without an int4 field.

Meanwhile I know this is a must for a Geometry table I don't know
if this still a must for a geometryless table or is a bug.

Thx,

Andrea.

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