Re: [QGIS-Developer] C++ Plugin plugin_builder.py

2019-04-01 Thread Siki Zoltan

Dear Susann,

you have to install plugin builder plugin frm QGIS 3.4
Go to Plugins/Manage and Install Plugins in the menu and search for Plugin 
builder.


There are sources how to upgrade plugins:
https://gisforthought.com/updating-a-plugin-from-qgis-2-to-qgis-3/
https://github.com/qgis/QGIS/wiki/Plugin-migration-to-QGIS-3
https://github.com/gc-i/wntOS/wiki/QGIS3Port
https://new.opengis.ch/2018/04/13/porting-qgis-plugins-to-api-v3-strategy-and-tools/

Best regards,
Zoltan

On Mon, 1 Apr 2019, sschm...@gfi-gis.de wrote:


Hi,

I miss the plugin_builder.py in the src/plugins/ in ltr-3_4.

The last I found was in 2.18 but this doesn't work for me because the
version of Qt has been changed.

I need an example for upgrading my plugins, thanks for a hint.

Freundliche Grüße aus Leipzig
Susann Schmidt
Softwareentwicklung

**

GFI - Gesellschaft für Informationstechnologie mbH
Philipp-Rosenthal-Straße 9
D-04103 Leipzig
Geschäftsführer: Andreas Richter
Amtsgericht Leipzig HRB 12054
USt.-IdNr.: DE179049354 Steuer-Nr.: 231/109/06412
ESRI Solution Partner  und   ER Mapper Reseller
Tel. 0341 961 3310Fax 0341 961 3311   Mail i...@gfi-gis.de
Web  www.gfi-gis.de  und  www.themenbrowser.de
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Find unmaintained plugins

2019-02-03 Thread Siki Zoltan

Hi All,

there should be some mechanism to overtake a plugin.
For example the qgsaffine plugin [1], the last commit was in 2015 on 
github and there is a pull request [2] (more than one month old) which 
upgrades plugin to qgis 3.4.

Deadlock...

Zoltan

[1] https://github.com/eriktim/qgsAffine
[2] https://github.com/eriktim/qgsAffine/pulls

On Sun, 3 Feb 2019, Matthias Kuhn wrote:


Hi all,


Marking a plugin as "unmaintained" or "deprecated" is a heavy action which may 
discourage developers and make even useful plugins disappear.

Thus if this is done in any way, I am in favor of sending several reminders to 
a plugin author over a time period of at least 6 months before taking any 
action. It then needs to be super easy for a plugin maintainer to remove this 
status from their plugins.

Maybe alternative approaches could also be considered to move maintained plugins to the 
top and make stars / votings more relevant. Or have the possibility to flag a plugin as 
unmaintained (like stackoverflows "needs moderator attention") where it's 
required to post a link to an issue which has not received an answer in a long time.

There are various variables which need to be balanced in this discussion like 
losing useful plugins, adding maintenance burden (to plugin developers and 
plugin maintainers), having a credible plugin ecosystem. Let's make sure we 
keep all of them in mind.

Thank you
Matthias

On 2/2/19 8:30 AM, Paolo Cavallini wrote:

Thanks for your offer of help. I agree that the mail should be sent only
for plugins not updated in the last (3? 6? 9?) months.
Could you please start filling up a ticket on
https://issues.qgis.org/issues
so we can define specs resulting from this thread and start implementing it?
Cheers.

On 01/02/19 22:40, Thomas Baumann wrote:
> Hi Paolo,
>
> sounds like a good idea to send a reminder once a year to the maintainer
> and mark plugins as unmaintained if no feedback is received.
>
> I am available to help implementing it.
>
> Regards,
> Thomas
>
>
> Am Fr., 1. Feb. 2019, 19:01 hat Paolo Cavallini  > geschrieben:
>
> Hi Thomas,
>
> On 01/02/19 13:53, Thomas Baumann wrote:
>
> > I made the experience that there are QGIS-plugins which are not
> > maintained anymore.
> > Example:
> >
> 
http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-Rectangles-Ovals-Digitizing-plugin-deprecated-td5366686.html
> >
> > Recently I asked some maintainers if they have plans to update their
> > plugins to be QGIS3-ready because I was willing to update them if the
> > maintainer wouldn't do it... but again I got the impression that some
> > plugins are not maintained anymore.
> > Example:
> > https://github.com/NathanW2/selection-sets/issues/5
> >
> > Now that there is the change from QGIS2 to QGIS3 some unmaintained
> > plugins will just dissapear like through a "natural selection". But in
> > one or two years there could again be lots of unmaintained plugins
> which
> > could have bugs that slow down qgis or make them unstable like it
> > happened with the Rectangles-Ovals-Digitizing-plugin (
> > https://github.com/vinayan/RectOvalDigitPlugin/issues/6 ).
> >
> > Wouldn't it make sense to check once a year if all plugins are still
> > maintained?
> >
> > You could for example use something like LimeSurvey (
> > https://www.limesurvey.org/community ) and ask every maintainer to
> > respond if they still feel responsible for the plugin. In the
> backend of
> > Limesurvey you have a database with the responses so it should be
> quite
> > easy to automatically synchronize the results with your
> repository-items.
> > This way the unmaintained plugins could be marked as deprecated if no
> > response is sent back.
>
> thanks a lot for your suggestion. I agree that the move to QGIS 3
> automatically purges old unmaintained code, but this does not solve
> entirely the issue.
> In short do you suggest we should run a survey once a year, sending it
> to the list of plugin maintainers, and marking as deprecated all plugins
> for which we do not receive a positive response?
> I would be a bit skeptical, as many plugins are still useful even if not
> actively maintained. An alternative would be to add to our Django app an
> automatic reminder to be sent to maintainer, asking to confirm they
> maintenance; in absence of a feedback, we could mark it as unmaintained,
> and make this visible to users, so they have the options of adopting it,
> supporting it, or stopping using it before it actually stops working.
> How does it sound? in case you agree on this or a modified version of
> it, would you be available to help implementing this?
> All the best.
> --
> Paolo Cavallini - www.faunalia.eu 
> QGIS.ORG  Chair:
> http://pl

Re: [QGIS-Developer] [Qgis-tr] Missing translated strings in localized master

2018-09-20 Thread Siki Zoltan


Thanks Jürgen, in 3.2.3-Bonn the missing HUngarian translations in the 
menu came back.


Zoltan

On Thu, 20 Sep 2018, DelazJ wrote:


Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] [Qgis-tr] Missing translated strings in localized master

2018-09-19 Thread Siki Zoltan

Hi,

it is the same for the Hungarian translation.
In QGIS 3.2.x some menu options are shown in English, but those are 
translated from the very beginnig (version 0.9).


Regards,
Zoltan

On Wed, 19 Sep 2018, DelazJ wrote:


Transifex Webtranslation page for QGIS is on https://www.transifex.com/qgis/

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] Please help! - QGIS expressions don't evaluate as expected

2018-08-12 Thread Siki Zoltan

Dear Evan,

try to send your question to the https://gis.stackexchange.com/,
it is for GIS questions.

Zoltan

On Sun, 12 Aug 2018, Evan Kanter wrote:


Hi Devs,
I˙˙m sending you a link to my post on Stack Overlow, requesting assistance!
https://stackoverflow.com/questions/51812251/qgis-expressions-dont-evaluate-as-expected

I would really appreciate your help. I am pasting the content of my post on 
stack overflow below for your convenience.

Evan Kanter
evankante...@gmail.com

I am using QGIS with a vector layer and the attribute table stored at this 
link:https://docs.google.com/spreadsheets/d/1K7rRdlcSheclJ6MqzpBNwSZei911WDV1Bl2zBGV38-s/edit?usp=sharing
I then have the following code:
CASE

/*Kieran Winner*/
WHEN "r_Kieran" > "r_Wynne"
   THEN ramp_color('PCMarg', 
scale_linear(("r_Kieran"/"r_TOTAL"-"r_Possian"/"r_TOTAL"),  0,  1, 0, 1))
ELSE color_rgb(64, 224, 208)
END
Here's the problem: The code evaluates incorrectly.
Take row 15 of the attribute table for example. (Where PD_Number=14) You would expect that the 
condition would evaluate TRUE since "r_Kieran"=397 and "r_Wynne"=225.
But, it evaluates FALSE in QGIS, as indicated by the colour that is displayed 
on the map!
I've spent hours simplifying code, and pulling my hair out over this.
Please help!
Thanks, Evan

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [QGIS-Developer] PyQGIS: Check if layer is already loaded?

2017-06-04 Thread Siki Zoltan

Dear Magnus.

you can iterate through the layers:

for lay in QgsMapLayerRegistry.instance().mapLayers().values():
if lay.name() == your_layer_name:
your layer is loaded


Regards,
Zoltan

On Sun, 4 Jun 2017, Magnus Homann wrote:

I'm writing a plugin that adds feature to a SHP-layer, specified as a 
filename.
If the layer already is loaded in Qgis, I want to check for and use the 
loaded

layer instead of creating a new from the same SHP-file.

Is this even possible?
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

[QGIS-Developer] Python expression function

2017-05-17 Thread Siki Zoltan

Dear Developers,

I found some strange behaviour of Python expression functions if variable 
length parameter list is given (e.g args=-1).

If there is a NULL value among the parameters the function is not called.
See the discussion on
https://gis.stackexchange.com/questions/240470/qgis-expression-function/240480?noredirect=1#comment376061_240480

If it a feature or a bug?

Regards,
Zoltan
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] qgis 2.18

2017-02-15 Thread Siki Zoltan

Dear Dan,

QGIS uses Qt and pyQt (in python plugins).
You should install Qt4, pyQt4 and Python 2 for QGIS 2.x. The next 3.x QGIS 
release will use Qt5 and Python 3.


Regards
Zoltan

On Wed, 15 Feb 2017, Smith, Dan [US] (MS) wrote:


Is it possible to run a python gui using tkinter from the qgis application as a 
plugin.  It doesn't look like I am able to import Tkinter because it doesn't 
come with the python that's installed with qgis.


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

Re: [Qgis-developer] DXF/DWG import requirements document

2015-06-23 Thread Siki Zoltan

Dear Andreas,

beside "Import of layer names as attributes" I would prefer
1. setting layer filter in the import dialog (e.g. as a regexp or a
   selection list from the available CAD layers), unselected layers are
   skipped in input.
   It is not clear for me if the layer name rules can be used for this
   purpose.
2. import each CAD layer into separate QGIS layers by feature type (point,
   annotation, polyline, polygon), it could be a checkbox in the import
   dialog.

Optionally during the import polygon layers sould be cheched for islands 
(polygons inside other polygon) and remove the area of islands from the 
container polygon.


Regards,
Zoltan

On Tue, 23 Jun 2015, Andreas Neumann wrote:


Hi,

To all who have an interest in contributing to a DXF/DWG import 
function in 

QGIS:

I have started working on a requirements document - you can view it here:
https://docs.google.com/a/qgis.org/document/d/1NJv1lwd5TnWdV-fTuW7g5ts1O8r3vb46xYeAIQ_BwGw/edit?usp=sharing

If you want to contribute to the document, please send me your gmail account 
so I can give you write access.


After a couple of days (maybe 1.5-2 weeks) we can hopefully finish this 
document and ask for a quote. I will then ask again for organizations or 
companies who can contribute financially.


Thank you in advance for your support!

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


[Qgis-developer] Bug report #11588

2015-03-10 Thread Siki Zoltan

Hi List,

we would like to display selected items in composer and pdf from a Python 
plug-in. In the QgsComposerMap.render() method the next line


jobMapSettings.setFlag( QgsMapSettings::DrawSelection, false );

disables to do that.

In bug report #11588 there was similar issue reported, closed and 
reopened.


Any idea, workaround?

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


Re: [Qgis-developer] FOSS4G Europe 2015: Deadline for submissions is approaching! ( February 25, 2015 )

2015-02-13 Thread Siki Zoltan

Hi René,

there was no workshop submission from the QGIS community sofar.
It would be nice if we had a QGIS releated workshop in Como.

Zoltan
Workshop  track chair

On Fri, 13 Feb 2015, René-Luc Dhont wrote:


Hi devs,

Did someone has already submitted workshops or tracks about QGIS or QGIS 
Server ?

http://europe.foss4g.org/2015/Home#calls

The deadline for submission is the 25th february 2015.


Regards
___
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] GdalTools plug-in clipper

2015-01-09 Thread Siki Zoltan

Hi Paolo,

Bug report #11972 created.

Zoltan

On Fri, 9 Jan 2015, Paolo Cavallini wrote:


Il 09/01/2015 17:58, Siki Zoltan ha scritto:


I found a bug in GdalTools/Clipper, when a mask layer is used with a
filter expression, the generated gdalwarp command is is not valid.
The generated  command looks like this:
gdalwarp -q -cutline "poly.shp|layerid=0|subset=\"Nev\" = 'Heves'"
-crop_to_cutline input.tif output.tif

the correct command would be:
gdalwarp -q -cutline "poly.shp" -cwhere="Nev='Heves'"
-crop_to_cutline input.tif output.tif

I suppose in getArgsModeMask (doClipper.py) after line 167 the mask
should be processed if it contains "|".


Hi Zoltan,
thanks for this. Could you please open a ticket or a pull reqest?
All the best.

--
Paolo Cavallini - www.faunalia.eu
QGIS & PostGIS courses: http://www.faunalia.eu/training.html
___
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] GdalTools plug-in clipper

2015-01-09 Thread Siki Zoltan

Hi List,

I found a bug in GdalTools/Clipper, when a mask layer is used with a 
filter expression, the generated gdalwarp command is is not valid.

The generated  command looks like this:
gdalwarp -q -cutline "poly.shp|layerid=0|subset=\"Nev\" = 'Heves'"
-crop_to_cutline input.tif output.tif

the correct command would be:
gdalwarp -q -cutline "poly.shp" -cwhere="Nev='Heves'"
-crop_to_cutline input.tif output.tif

I suppose in getArgsModeMask (doClipper.py) after line 167 the mask should 
be processed if it contains "|".


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


[Qgis-developer] attribute index

2014-12-02 Thread Siki Zoltan

Dear List Members,

is there any chance to go through the features using an attribute index?
I would like to traverse sequentially the features in an order defined by 
an attribute (int).


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


Re: [Qgis-developer] set attributes of a new feature

2014-11-16 Thread Siki Zoltan

Dear List Members,

i found the solution to my problem in the QGIS API.
An internal Python vaiable must be created:

fields = lay.dataProvider().fields()
feat.setFields(fields, True)

Zoltan

On Sat, 15 Nov 2014, Siki Zoltan wrote:


Dear List Members,

i've got in trouble creating new point feature in a shape file using python 
(QGIS 2.2 on Fedora):


feat = QgsFeature()
feat.setFields(lay.dataProvider().fields(), True)
feat.setAttribute(feat.fieldNameIndex('point_id'), xxx)

The fieldNameIndex call makes QGIS crash

QGIS died on signal 11[Thread debugging using libthread_db enabled]
[New Thread 0x7f60fe021700 (LWP 12981)]
0x0034ef8ac30d in waitpid () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f610488b860 (LWP 12980))]
#0  0x0034ef8ac30d in waitpid () from /lib64/libc.so.6
No symbol table info available.
#1  0x0055d0d9 in qgisCrash(int) ()
No symbol table info available.
#2  
No symbol table info available.
#3  0x005bc8bb in QVector::count() const ()
No symbol table info available.
...

lay is a valid layer:
(Pdb) p lay.name()
u'coord_sample'

The feature has attributes:
(Pdb) len(feat.attributes())
6

but
(Pdb) p feat.attributes()
[None, None, None, None, None, None]

but
(Pdb) lay.dataProvider().fields()[0].name()
u'point_id'

How can I populate attributes of the new feature?

Thanks,
Zoltan


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


[Qgis-developer] set attributes of a new feature

2014-11-15 Thread Siki Zoltan

Dear List Members,

i've got in trouble creating new point feature in a shape file using 
python (QGIS 2.2 on Fedora):


feat = QgsFeature()
feat.setFields(lay.dataProvider().fields(), True)
feat.setAttribute(feat.fieldNameIndex('point_id'), xxx)

The fieldNameIndex call makes QGIS crash

QGIS died on signal 11[Thread debugging using libthread_db enabled]
[New Thread 0x7f60fe021700 (LWP 12981)]
0x0034ef8ac30d in waitpid () from /lib64/libc.so.6
[Current thread is 1 (Thread 0x7f610488b860 (LWP 12980))]
#0  0x0034ef8ac30d in waitpid () from /lib64/libc.so.6
No symbol table info available.
#1  0x0055d0d9 in qgisCrash(int) ()
No symbol table info available.
#2  
No symbol table info available.
#3  0x005bc8bb in QVector::count() const ()
No symbol table info available.
...

lay is a valid layer:
(Pdb) p lay.name()
u'coord_sample'

The feature has attributes:
(Pdb) len(feat.attributes())
6

but
(Pdb) p feat.attributes()
[None, None, None, None, None, None]

but
(Pdb) lay.dataProvider().fields()[0].name()
u'point_id'

How can I populate attributes of the new feature?

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


Re: [Qgis-developer] Invisible shapefile

2014-10-18 Thread Siki Zoltan

Dear Paolo,

recently I have something similar. I compared the bad and the good 
shapes with diff (octal dumps).

If you send me the bad shape I can try to find the cause of the problem.

Regards,
Zoltan

On Sat, 18 Oct 2014, Paolo Cavallini wrote:


Hi all.
I am creating shapefiles with SAGA (from Contour lines from grid) that are 
correctly
loading, but not shown. Once resaved, they are OK. Any hint? File available is
someone wants to test.
I'm working with current master and saga 2.1.2 from Debian sid.
All the best, and thanks.
--
Paolo Cavallini - www.faunalia.eu
Corsi QGIS e PostGIS: http://www.faunalia.eu/training.html
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


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


Re: [Qgis-developer] layer encoding

2014-09-06 Thread Siki Zoltan


Thanks Salvatore,

Zoltan

On Fri, 5 Sep 2014, Salvatore Larosa wrote:


Hi,

Il 05/Set/2014 19:48 "Siki Zoltan"  ha scritto:


Dear List,

I can't find a way to get the encoding of a vector layer from python.
Can someone give me a tipp?


from python console:


layer = iface.activeLayer()
layer.dataProvider().encoding()


more info
http://qgis.org/api/classQgsVectorDataProvider.html#a628c5bd63c2bf0637ac4c676ecdb921e

Best Regards,
-SL



Thanks,
Zoltan
___
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] layer encoding

2014-09-05 Thread Siki Zoltan

Dear List,

I can't find a way to get the encoding of a vector layer from python.
Can someone give me a tipp?

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


Re: [Qgis-developer] Python plugins mandatory metadata

2014-08-27 Thread Siki Zoltan

Hi all,

+1

I suppose the plugin approver should check if all the sources are 
available in the source (if no code repository is available), e.g. ui 
files. It would be important for those who would make a fork of a (already 
not supported) plugin.

A minimal documentation in the source may be obligatory.

Zoltan

On Wed, 27 Aug 2014, Matthias Kuhn wrote:


I would also prefer to keep the entry barrier low.

I.e. if a hobby-programmer does not add these fields to his plugin but
will happily make (the missing bits) of the source code available on
request (GPL states on request IIRC) it should be possible for him to
just upload the plugin, but get warned that he could make people a lot
more happier if he would set these fields. I can imagine people
struggle with git, do bugtracking by email or on an internal tracker,
don't have a homepage... But still make good plugins which could
eventually evolve into projects with all these parts included. There
are a lot of other things people can fail at. And just make these
things hard requirement because they are easy to check does not feel
right for me.

I would also vote for the solution of having different repos (
recommended, bood, creepy )

Matthias
___
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] Geospackage Slow in QGIS

2014-08-18 Thread Siki Zoltan

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 :

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 :

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 
mailto:wonder...@gmail.com>>:
Hi

On Sat, May 17, 2014 at 2:32 PM, Jeremy Palmer 
mailto: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.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 ˙˙
-




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

Re: [Qgis-developer] Regarding linear transformation in Georeferencer

2014-08-14 Thread Siki Zoltan

Dear Sajid,

checking the source of the plugin I realized that different scales are 
used in easting and northing direction. So the formulas look like:

E' = Eoffset + Escale * E
N' = Noffset - Nscale * N

The minus in N formula is because of the different axis direction in the 
screen coordinates and map coordinates.

The four unknowns are calculated from a least squares estimation.

Regards,
Zoltan

On Wed, 13 Aug 2014, sajid pareeth wrote:


Hi Zortan

Thank you for the reply.

Would be great to know, how this Offsets and scale is calculated from a set
of GCP's.
Any idea?

Regards

Sajid


On Wed, Aug 13, 2014 at 3:30 PM, Siki Zoltan  wrote:


Dear Sajid,

linear transformation (from my practice) use three unknowns
offset (Easting, Northing) and scale. No rotational angle.
The linear is not a good name for it.
E' = Eoffset + scale * E
N' = Noffset + scale * N

Zoltan



On Wed, 13 Aug 2014, sajid pareeth wrote:

 Hi,

Can anyone give me hints on statistical background behind linear
transformation in Georeferencer plugin?

I want to know the formulae used to calculate the residuals while using
linear translation.
Any related paper/material on which it is developed??

Thanks and Regards

Sajid


--
Sajid Pareeth
PhD Student

http://gis.cri.fmach.it/pareeth/

Fondazione Edmund Mach
Research and Innovation Centre
GIS and Remote Sensing Unit/Limnology and River ecology
Via Mach 1, 38010 San Michele all'Adige (TN) - Italy
Phone +39 461 615 669
spare...@gmail.com
sajid.pare...@fmach.it
skype: spareeth





--
Sajid Pareeth

http://gis.cri.fmach.it/pareeth/

Fondazione Edmund Mach
Research and Innovation Centre
GIS and Remote Sensing Unit/Limnology and River ecology
Via Mach 1, 38010 San Michele all'Adige (TN) - Italy
Phone +39 461 615 669
spare...@gmail.com
sajid.pare...@fmach.it
skype: spareeth


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


Re: [Qgis-developer] Regarding linear transformation in Georeferencer

2014-08-13 Thread Siki Zoltan

Dear Sajid,

linear transformation (from my practice) use three unknowns
offset (Easting, Northing) and scale. No rotational angle.
The linear is not a good name for it.
E' = Eoffset + scale * E
N' = Noffset + scale * N

Zoltan


On Wed, 13 Aug 2014, sajid pareeth wrote:


Hi,
Can anyone give me hints on statistical background behind linear
transformation in Georeferencer plugin?

I want to know the formulae used to calculate the residuals while using
linear translation.
Any related paper/material on which it is developed??

Thanks and Regards

Sajid


--
Sajid Pareeth
PhD Student

http://gis.cri.fmach.it/pareeth/

Fondazione Edmund Mach
Research and Innovation Centre
GIS and Remote Sensing Unit/Limnology and River ecology
Via Mach 1, 38010 San Michele all'Adige (TN) - Italy
Phone +39 461 615 669
spare...@gmail.com
sajid.pare...@fmach.it
skype: spareeth


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


Re: [Qgis-developer] Fwd: how to use gdal in custom plugin to convert png to geotiff with corner coordinates

2014-08-12 Thread Siki Zoltan

Dear Aamir,

you can uste gdal python bindings, see:
http://pcjericks.github.io/py-gdalogr-cookbook/

or you can start gdal_tranlate in the background to do the job
see: http://www.gdal.org/gdal_utilities.html

Zoltan

On Tue, 12 Aug 2014, Aamir Ali wrote:

Dear All

n  I am developing a plugin of QGIS in python, where it is needed to 

convert

png image to geotiff with known corner coordinates (wgs84). Any help would
be appreciated

Regards

Aamir Ali


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


Re: [Qgis-developer] [Qgis-user] Impossible to upload and share a plugin on QGIS plugin repository

2014-07-30 Thread Siki Zoltan

Dear Junior,

in the zip file you have to use the same directory structure as in the
.qgis2/python/plugins directory. If the name of your plugin is "xxx" then
in the zip there sould be a xxx directory which contains the __init__.py 
and metadata.txt and the main python file xxx.py, you can use other 
subdirectories too.

xxx.zip:
  xxx - __init__.py
metadata.txt
xxx.py
...
help
...

Try to download a plugin from plugins.qgis.org and check the structure of 
the zip file.

I hope this helps you.

Regards,
Zoltan


On Wed, 30 Jul 2014, Junior Delaz wrote:


Hi all
I'm tring to upload and share my first plugin at [1] but encountered an
error I don't really understand. It says:
*There were errors reading plugin package (please check also your plugin's
metadata). Cannot find __init__.py or metadata.txt in the compressed
package: this does not seems a valid plugin (I searched for
help/__init__.py and help/metadata.txt)*

I have __init__.py and metadata.txt files but they are in the main folder
(I use Plugin Builder plugin) and none of the plugin folders I looked at
has such files in help folder.
So, why is it looking for these files in the help folder?
What did I make wrong? Is it a bug? and if not, what should contain these
files?

Some help? Thanks a lot.

[1] http://plugins.qgis.org/plugins/add/


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


[Qgis-developer] joinning tables

2014-01-25 Thread Siki Zoltan

Dear List,

I got into trouble joining tables in QGIS.
When I try to join shape to a csv, ods or xlsx file using columns with 
textual data, it doesn't work. I get only NULL values in the joint 
columns.

Using integer values the join works.
Is it a feature or an error?

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


Re: [Qgis-developer] Ideas/proposal for Attribute Table

2014-01-07 Thread Siki Zoltan

Hi,

I would like to have spatial aggregation (which can not be done with the 
usual report generators). For example aggregated statistics on point 
features inside polygons.


Regards,
Zoltan

On Tue, 7 Jan 2014, Nathan Woodrow wrote:


On Tue, Jan 7, 2014 at 9:06 PM, Andreas Neumann  wrote:


QgsExpression



Adding to QgsExpression doesn't make much sense as QgsExpression is only
based on a single feature.  You would need layer on top of if with
functions that can do aggregates.

- Nathan


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


Re: [Qgis-developer] conversion between latitude, longitude and x, y coordinate

2013-12-14 Thread Siki Zoltan

Dear Siva,

try proj.4 api
http://trac.osgeo.org/proj/wiki/ProjAPI

Regards,
Zoltan

On Sat, 14 Dec 2013, SIVA RAMA KRISHNA wrote:


Hello,

I have a query related to conversion between lat long  to map x map y

I have a *lat ,lon *point with projection system and I wanted to know the*
map x map y *so that i can map on the map

I am working in c++

Any help in this context will be highly appreciated

Thanks in advance to all


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


Re: [Qgis-developer] Excel export

2013-10-22 Thread Siki Zoltan

Dear Victor,

save your data into a shape file and open the dbf table with excel or calc 
and save as xls.


Regards,
Zoltan

On Tue, 22 Oct 2013, Victor Gonzalez wrote:


Hi all,

I need to export some attribute tables from QGIS in .xls format. As far as
I know, the XYTools plugin [1] does what I want, but it does not work with
QGIS 2.0 yet, right? I can update it and contribute the changes, but I
would like to know if it has been already planned or maybe the plugin is
unmaintained and there's a better solution that I can use. Any thoughts?

Thanks in advance,
Víctor.

[1] http://plugins.qgis.org/plugins/xytools
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] implement "Open/Save File" option into QGIS plugins

2013-03-23 Thread Siki Zoltan

Hi Fegyi,

it is a qt or pyqt question, see
http://hohohuhu.blogspot.hu/2011/04/pyqt-open-file-dialog.html

Regards,
Zoltan

On Sat, 23 Mar 2013, fegyi001 wrote:


Dear Developers!

I'm writing a new plugin in which I'd like to implement some ways to enable
the user to open and save some contents. For that I need a file browser that
navigates through the file system. How can I make this happen?

On the QGIS documentation I discovered something called
"QgsStyleV2ExportImportDialog Class". Is this what I need? If yes, how can I
implement it? I'm quite a novice to Python programming and to the QGIS API.
Any help is highly acknowledged.

Best wishes
  Gergely

(PS. I know that there is a QGISFileBrowser plugin out there, but I don't
intend to use another plugin, just want a simple pop-up-file-browser
whenever the user hits the "Open" or "Save" buttons.)



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/implement-Open-Save-File-option-into-QGIS-plugins-tp5042520.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


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


Re: [Qgis-developer] join table [SOLVED]

2013-01-03 Thread Siki Zoltan

Dear Developers,

the solution to my problem is not to use the dataProvider's methods, those 
handle only the columns of the original layer. The layers' methods should 
be used instead.

So if you would like get joined column values
use layer.pendingAllAttributesList() instead of dataProvider.attributeIndexes()
use layer.pendingFieldList() instead of dataProvider.fields()
use layer.featureAtId(...) instead of dataProvider.featureAtId(...)

The answer was found in qgisvectorfilewriter.cpp.

Best regards

On Tue, 1 Jan 2013, Siki Zoltan wrote:


Dear QGIS DEvelopoers,

I'm writing a python plugin where I would like to handle the values in a dbf 
table which is joined to a shape file. I could join the table to the shape 
file using VectorLayer.addJoin, but I can't find any way to get the joined 
attributes of a feature. After joining the dataProvider.attributeIndexes 
returns only the original columns of the shape file. The fieldNameIndex 
returns -1 for all joined column names.

Any advice to get the values in joined columns in Python?

Thanks,
Zoltan
___
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] join table

2013-01-01 Thread Siki Zoltan

Dear QGIS DEvelopoers,

I'm writing a python plugin where I would like to handle the values in a dbf 
table which is joined to a shape file. I could join the table to the shape file 
using VectorLayer.addJoin, but I can't find any way to get the joined 
attributes of a feature. After joining the dataProvider.attributeIndexes 
returns only the original columns of the shape file. The fieldNameIndex returns 
-1 for all joined column names.

Any advice to get the values in joined columns in Python?

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