Re: [Qgis-user] Pyqgis how to append existing gpkg layer

2023-04-26 Thread Germán Carrillo via QGIS-User
Hi all,

that's right Andrea. It actually depends on whether you want to append
features to an existing layer, or to "append" (one could also say "create")
a layer (in)to an existing GPKG database. The latter case is well covered
by Anne's answer.

See prior messages in this thread:
https://lists.osgeo.org/pipermail/qgis-user/2023-April/052855.html

Regards,

Germán


El mié, 26 abr 2023 a las 9:11, andrea antonello via QGIS-User (<
qgis-user@lists.osgeo.org>) escribió:

> Hi, from what I saw in the docs, you should be able to append to layers
> with the filewriter option AppendToLayerNoNewFields?
> The CreateOrOverwriteLayer overwrites the layer completely.
>
> Cheers,
> Andrea
>
>
> On Wed, Apr 26, 2023 at 2:58 PM Anne B. Nilsen via QGIS-User <
> qgis-user@lists.osgeo.org> wrote:
>
>> I’m not a pyQGIS-expert, but with help from gis.stackechange.com I have
>> managed to create an empty geopackage file and then adding several layers
>> to it with this code:
>>
>> …
>>
>> gpkg_reg = "karplanteregistrering.gpkg"   # the NEW gpkg
>> to be created
>>
>> if os.path.exists(gpkg_reg):  # If gpkg-file
>> already exists, delete it
>>
>> os.remove(gpkg_reg)
>>
>> …
>>
>> #
>> https://gis.stackexchange.com/questions/417916/creating-empty-layers-in-a-geopackage-using-pyqgis?noredirect=1=1
>>
>> def create_blank_gpkg_layer(gpkg_path: str, layer_name: str, geometry:
>> int,
>>
>> crs: str, fields: QgsFields, append: bool =
>> False
>>
>> ) -> bool:
>>
>> # To add a layer to an existing GPKG file, pass 'append' as True
>>
>> options = QgsVectorFileWriter.SaveVectorOptions()
>>
>> options.driverName = "GPKG"
>>
>> options.layerName = layer_name
>>
>> if append:
>>
>> options.actionOnExistingFile =
>> QgsVectorFileWriter.CreateOrOverwriteLayer
>>
>> writer = QgsVectorFileWriter.create(
>>
>> gpkg_path,
>>
>> fields,
>>
>> geometry,
>>
>> QgsCoordinateReferenceSystem(crs),
>>
>> QgsCoordinateTransformContext(),
>>
>> options)
>>
>> del writer
>>
>> return True
>>
>> …
>>
>> # Layer 1 oversikt – creating an empty layer with attributes read from a
>> csv-file
>>
>> f = open("./egenskaper/egenskaper_oversikt.csv",'r') # open file
>>
>> f.readline()  # read the first line of the file (the "metadata"/heading)
>>
>> layer_name = "oversikt"  # set layer name
>>
>> print('creates layer', layer_name)   # print layer name
>>
>> geom = QgsWkbTypes.PointZ# geometrytype
>>
>> crs = 'epsg:25832'   # coordinate system
>>
>> fields = QgsFields()
>>
>> for line in f:   # Read attrubutes from csv-file
>>
>>  r = {}
>>
>>  r = line.split(';')  # 0 navn, 1 QVariant-type, 2 lengde og 3
>> presisjon
>>
>>  fname = r[0]
>>
>>  l = int(r[2])
>>
>>  p = int(r[3])
>>
>>  try:
>>
>>   fields.append(QgsField(fname,set_variant(r[1]),'',l,p))  # add
>> field to layer
>>
>>  except:
>>
>>   print("Noe gikk galt - får ikke laget egenskaper fra " +str(f))
>>
>> f.close()  # close file
>>
>> create_blank_gpkg_layer(gpkg_reg, layer_name, geom, crs, fields)  # Do
>> NOT include True when the FIRST layer is created
>>
>>
>>
>> # Layer 2 arter (to be added to the same new gpkg-file just created above)
>>
>> f = open("./egenskaper/egenskaper_arter.csv",'r') # open file
>>
>> f.readline()
>>
>> layer_name = "arter"
>>
>> print('creates layer', layer_name)   # print layer name
>>
>> geom = QgsWkbTypes.PointZ# geometrytype
>>
>> crs = 'epsg:25832'   # coordinate system
>>
>> fields = QgsFields()
>>
>> for line in f:   # Read attrubutes from csv-file
>>
>>  r = {}
>>
>>  r = line.split(';')  # 0 navn, 1 QVariant-type, 2 lengde og 3
>> presisjon
>>
>>  fname = r[0]
>>
>>  l = int(r[2])
>>
>>  p = int(r[3])
>>
>>  try:
>>
>>   fields.append(QgsField(fname,set_variant(r[1]),'',l,p))  # add
>> field to layer
>>
>>  except:
>>
>>   print("Noe gikk galt - får ikke laget egenskaper fra " +str(f))
>>
>> f.close()  # close file
>>
>> create_blank_gpkg_layer(gpkg_reg, layer_name, geom, crs, fields, True)  #
>> Include True to add a new layer to the SAME gpkg-file
>>
>> …
>>
>>
>>
>> Note the difference in the use of True and not when calling
>> create_blank_gpk_layer().
>>
>> Perhaps something similar may be the solution to your problem.
>>
>>
>>
>> Kind regards
>>
>> Anne
>>
>>
>>
>>
>> ___
>> QGIS-User mailing list
>> QGIS-User@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> 

Re: [Qgis-user] [QGIS-Developer] New community voting member

2023-04-24 Thread Germán Carrillo via QGIS-User
Congratulations Adelcides!
Well done!

Regards,

Germán

El lun, 24 abr 2023 a las 8:32, Peter Petrik via QGIS-Developer (<
qgis-develo...@lists.osgeo.org>) escribió:

> Hi Adelcides,
>
> welcome and wish you many good and wise decisions as the voting member :)
>
> Peter
>
>
>
>
>
> On Mon, Apr 24, 2023 at 2:44 PM Adelcides Varela via QGIS-User <
> qgis-user@lists.osgeo.org> wrote:
>
>> It is with a great pleasure and sense of recognition that I receive this
>> special honour, particularly coming from a small african island nation with
>> a population under half a million.
>>
>> I hope with the help of all the community I will be able to do a good job.
>>
>> Best regards,
>> Adelcides Varela.
>>
>> Marco Bernasocchi via QGIS-User  escreveu no
>> dia segunda, 24/04/2023 à(s) 11:22:
>>
>>> Dear community,
>>> I'd like you to join me in welcoming Adelcides Varela as our newest
>>> community voting member.
>>>
>>> Adelcides is one of the admins of the QGIS Community - Official Virtual
>>> Group (which has almost 60K members) and has been key in helping
>>> various African QGIS communities.
>>>
>>> Thanks a lot, Adelcides for all you do and welcome!
>>>
>>> Please note that Adelcides was selected without the need for a ballot
>>> since he was the only candidate proposed by the community.
>>>
>>> Cheers Marco
>>>
>>> --
>>> Marco Bernasocchi
>>>
>>> QGIS.org Chair
>>> OPENGIS.ch CEO
>>> http://berna.io
>>> ___
>>> QGIS-User mailing list
>>> QGIS-User@lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>> ___
>> QGIS-User mailing list
>> QGIS-User@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>


-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
https://twitter.com/GeoTux2 


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


Re: [Qgis-user] [QGIS-Developer] Pyqgis how to append existing gpkg layer

2023-04-19 Thread Germán Carrillo via QGIS-User
Bonjour Sylvain,

J'espère que vous allez bien.


If you want to append features from a source layer to another layer that
already exists in a GPKG file, you can do this:

-
options = QgsVectorFileWriter.SaveVectorOptions()
options.driverName = "GPKG"
options.layerName = "my_existing_layer_name"  *# Write here the existing
layer name in the GPKG*
options.actionOnExistingFile = QgsVectorFileWriter.AppendToLayerNoNewFields
options.onlySelectedFeatures = True

path = "/tmp/existing_gpkg_file_path.gpkg"
layer = QgsVectorLayer("/tmp/my_source_layer.shp", "my source layer name",
"ogr")

result = QgsVectorFileWriter.writeAsVectorFormatV3(
layer,
path,  *# Existing GPKG file path*
layer.transformContext(),
options)
-


If on the contrary, you want to append a whole layer (with its own field
structure, crs, etc.) to an existing GPKG database, you can follow this
solution:

https://gis.stackexchange.com/a/417950


As you can see, the key is to define the options.actionOnExistingFile
property, whose possible values are well documented here:

https://api.qgis.org/api/3.28/classQgsVectorFileWriter.html#afda86eff21ac1da7dc42cbdde424acb1


*Note: SInce we're using writeAsVectorFormatV3(), you need at least QGIS
v3.20 for this solution to work.*


Regards,

Germán



El mié, 19 abr 2023 a las 3:55, PIERRE Sylvain via QGIS-Developer (<
qgis-develo...@lists.osgeo.org>) escribió:

> Hi dev and users
>
>
>
> I don’t understand how to append an existing gpkg layer with pyqgis.
>
> I’ve tried many QgsVectorFileWriter options
>
>
>
> self.options.actionOnExistingFile =
> QgsVectorFileWriter.CreateOrOverwriteLayer
>
>
>
> reset final layer
>
>
>
> And
>
> self.options.EditionCapability =
> QgsVectorFileWriter.CanAppendToExistingLayer
>
>
>
> does not change anything
>
>
>
> So what’s the good way to do this ?
>
>
>
> This is my code (I’m iterating over several other data sources)
>
> self.options = QgsVectorFileWriter.SaveVectorOptions()
>
> self.options.driverName = 'GPKG'
>
> self.options.onlySelectedFeatures = True
>
> self.options.layerName = 'parcelles'
>
>
>
> for dir in dirs:
>
> print(dir)
>
>
>
> if os.path.isdir(dir):
>
> db_GPKG = os.path.join(dir, 'MAEC2023.gpkg')
>
> if os.path.exists(db_GPKG):
>
> gpkg_layer = db_GPKG + "|layername=parcelles"
>
> RPG_layer = QgsVectorLayer(gpkg_layer, "RPG", "ogr")
>
>
>
> expr = (' "fk_mesure" is not null ')
>
> *#expr = ('"fk_mesure" = \'{}\'').format('MAEC
> Papillons')*
>
>
>
> RPG_layer.selectByExpression(expr)
>
> selected_feature = RPG_layer.selectedFeatures()
>
> print(len(selected_feature))
>
> if os.path.exists(self.db_GPKG): *# if the ouput file
> already exist*
>
> self.options.actionOnExistingFile =
> QgsVectorFileWriter.CreateOrOverwriteLayer
>
> *#self.options.actionOnExistingFile =
> QgsVectorFileWriter.AppendToLayerNoNewFields*
>
> *#self.options.actionOnExistingFile =
> QgsVectorFileWriter.AppendToLayerAddFields *
>
> self.options.EditionCapability =
> QgsVectorFileWriter.CanAppendToExistingLayer
>
> else:
>
> self.options.actionOnExistingFile =
> QgsVectorFileWriter.CreateOrOverwriteFile
>
>
>
> write_result, error_message =
> QgsVectorFileWriter.writeAsVectorFormatV2(RPG_layer, self.db_GPKG , self.
> context, self.options)
>
>
>
>
>
>
>
> Thanks
>
>
>
>
>
> Sylvain PIERRE
>
> Chef de projet système d’information
>
> Direction des Systèmes d’Information et du Développement Numérique
>
> Service Projets et Ingénierie Numérique
>
> *Collectivité européenne d’Alsace*
>
> Tél : 03 88 76 68 88
>
> sylvain.pie...@alsace.eu
>
> www.alsace.eu
>
> [image: facebook]  [image: twitter]
>  [image: insta]
> 
>
>
> ___
> QGIS-Developer mailing list
> qgis-develo...@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>


-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
https://twitter.com/GeoTux2 


___
QGIS-User mailing list
QGIS-User@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How to use QGIS plus-ins (QNEAT3, QChainage) in the Python custom applications?

2023-03-17 Thread Germán Carrillo via QGIS-User
Hi Stephen,


if I understand your intention well, yes, I think it's possible, since I've
used QGIS plugins in a custom PyQGIS application back in the days (namely,
2009!).

I created a post to show off the results and to indicate the procedure
(it's in Spanish). You can find it at [1].

Perhaps you intend to use those plugins in a non-GUI application, which
should also be possible.

Accessing the underlying plugin's API, if provided, would require an
analysis per plugin, which is feasible.

For instance, QNEAT3 is a "Processing provider" plugin, which is handy for
multiple reasons. For instance, you can use it via custom PyQGIS standalone
scripts (see "Using QGIS Processing algorithms from PyQGIS standalone
scripts (outside of GUI)" at [2]) or the "qgis_process" utility [3].

On the contrary, QChainage doesn't seem to be a "Processing provider"
plugin, so further exploration would be required.

I hope that helps you get started.


Regards,

Germán
-
[1]
https://geotux.tuxfamily.org/2009/08/31/cargando-plugins-de-qgis-en-el-visor-de-pyqgis/
[2]
https://gis.stackexchange.com/questions/279874/using-qgis-processing-algorithms-from-pyqgis-standalone-scripts-outside-of-gui
[3]
https://docs.qgis.org/3.28/en/docs/user_manual/processing/standalone.html?highlight=qgis_process#using-processing-from-the-command-line


El vie, 17 mar 2023 a las 4:28, LI, Xin Stephen [MIT] via QGIS-User (<
qgis-user@lists.osgeo.org>) escribió:

> Hello all QGIS users,
>
>
>
> Is there some approaches to import the QGIS plus-ins (QNEAT3, QChainage)
> as a library or package in the Python custom applications where PyQGIS
> imported?
>
>
>
> The functions of QNEAT3 to find shortest paths are expended to be used.
> Then, the shortest paths are expected to be marked/divided by points with
> the same distances.
>
>
>
> Do you have some experience about this or any other approaches/packages
> could achieve similar functions?
>
>
>
> Stephen
>
>
> ___
> QGIS-User mailing list
> QGIS-User@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>

-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
https://twitter.com/GeoTux2 


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


Re: [Qgis-user] Snap existing geometry to other layer

2022-04-08 Thread Germán Carrillo via Qgis-user
Hi,

also make sure you use QGIS 3.22.x or above, since the algorithm "Snap
Geometries to Layer" has been optimized just before that version.

Details at:
https://github.com/qgis/QGIS/pull/42781
https://github.com/qgis/QGIS/pull/44766

Regards,

Germán


El vie, 8 abr 2022 a las 9:55, Nicolas Cadieux via Qgis-user (<
qgis-user@lists.osgeo.org>) escribió:

> Backup backup backup!
>
> The snap geometries to layer works very well as Alexandre stated.
>
> Nicolas Cadieux
> https://gitlab.com/njacadieux
>
> Le 8 avr. 2022 à 07:12, Alexandre Neto via Qgis-user <
> qgis-user@lists.osgeo.org> a écrit :
>
> 
> Hi Uwe,
>
> The snap geometries to layer tool in processing toolbox can be used in
> in-place feature editing, which does the changes without creating a new
> layer.
>
>
> https://docs.qgis.org/3.22/en/docs/user_manual/processing_algs/qgis/vectorgeometry.html#snap-geometries-to-layer
>
>
> https://docs.qgis.org/3.22/en/docs/user_manual/working_with_vector/editing_geometry_attributes.html?highlight=place#the-processing-in-place-layer-modifier
>
> Best regards
>
> Alexandre Neto
> User support
> www.qcooperative.net
>
> Uwe Fischer via Qgis-user  escreveu no dia
> sexta, 8/04/2022 à(s) 11:34:
>
>> Hello,
>>
>>
>>
>> I need to snap individual features to another layer. It’s not new
>> features but existing ones. And, the process should not create a new
>> shapefile but it should modify existing features that were selected
>> beforehand for snapping.
>>
>>
>>
>> Google told me that there is a Plugin called „Geometry Snapper“ but I
>> could not find in for QGIS 3.22 LRT.
>>
>>
>>
>> Any ideas? Thank you so much!
>>
>>
>>
>> Regards, Uwe
>>
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>


-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
https://twitter.com/GeoTux2 


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


Re: [Qgis-user] Overlapping

2022-02-11 Thread Germán Carrillo
Hi Michael,

In line with Harrissou's advice, yesterday I tweeted [1] about an extension
to the "Overlap analysis" in QGIS, which works on exactly 2 layers and is
called "Overlap analysis by class".

The outputs are both overlap area and percentage per class. Perhaps it
could help you.

See installation instructions at [2].

Regards,

Germán
---
[1] https://twitter.com/GeoTux2/status/1491684612086636547
[2] https://github.com/gacarrillor/QGIS-Resources/#installation


El vie, 11 feb 2022 a las 15:49, Harrissou s. () escribió:

> Hi,
> A starting point can also be the Processing "overlaps analysis" algorithm
> [0] (sorry I don't know how the output actually looks like) followed by
> some aggregate analysis.
>
> [0]
> https://docs.qgis.org/testing/en/docs/user_manual/processing_algs/qgis/vectoranalysis.html#overlap-analysis
>
> Regards,
> Harrissou
>
> Le 11 février 2022 17:58:00 GMT+01:00, chris hermansen <
> clherman...@gmail.com> a écrit :
>>
>> Michael and list
>>
>> On Fri, Feb 11, 2022 at 8:49 AM Michael Williamson <
>> mich...@michaelandjane.org.uk> wrote:
>>
>>> I am sure this is easy but I can’t work out which facility to use
>>>
>>>
>>>
>>> I have two layers. Layer A is made up of some large polygons while Layer
>>> B is made up of smaller polygons. The Polygons in Layer A overlap one or
>>> more of the polygons in layer B. In most cases the overlap is 100% but
>>> there are a few cases where the overlap is less than that.
>>>
>>>
>>>
>>> Layer B contains population and other data as numerical attributes and I
>>> want to populate corresponding attributes in layer A with the weighted
>>> total of the attributes in layer B depending on the amount of overlap.
>>>
>>>
>>>
>>> I have found various tools but I cannot work out which one to use. The
>>> ones I have found seem to do part of the job but not all of it.
>>>
>>>
>>>
>>>
>>> Probably you want
>>
>> Vector > Geoprocessing Tools > Intersection
>>
>> That will give you a new layer C with the geometric intersections of your
>> Layer A and Layer B.  The attribute table for Layer C will contain the
>> attributes of both A and B.
>>
>> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS Server - serve WMS with basic authentication

2021-06-17 Thread Germán Carrillo
Hi Marco,


I published a blog where I configured permissions based on user roles for a
QGIS Server workshop.
Keep in mind that it was just a demo. It was based on some plugin examples
by Alessandro Pasotti.

One single project, one single WMS, several user roles and different
permissions (based on spatial and non-spatial filters) per role.

You can read here [1] the instructions.
They are unfortunately only in Spanish. Even though I created an English
version, we are migrating the whole website at the moment, so it's
unavailable.
I hope you manage to translate them.


BTW, according to your use case, you would need to focus on
"layerPermissions" (see the link Thomas posted earlier in this thread).


Regards,

Germán

[1]
https://geotux.tuxfamily.org/2019/05/07/accediendo-a-datos-de-qgis-server-con-base-en-roles-de-usuario/#qs-10


El jue, 17 jun 2021 a las 16:45, Thomas Gratier (<
osgeo.mailingl...@gmail.com>) escribió:

> Hi,
>
> You may create a QGIS Server plugin to manage your permissions e.g
> https://docs.qgis.org/3.16/en/docs/pyqgis_developer_cookbook/server.html#accesscontrol-py
>
> Regards
>
> Thomas
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Plugin to show 2 layers at once like with a curtain

2020-07-04 Thread Germán Carrillo
Hi,

that plugin is called "MapSwipe Tool":
https://plugins.qgis.org/plugins/mapswipetool_plugin/

A demo GIF:
https://raw.githubusercontent.com/lmotta/mapswipetool_plugin/qgis3/doc/mapswipe1.gif

Regards,

Germán



El sáb., 4 jul. 2020 a las 21:02, Priv.-Doz. Dr. Maria Shinoto (<
maria.shin...@zaw.uni-heidelberg.de>) escribió:

> Hi,
>
> at the moment I am preparing a presentation where I have to show a lot of
> comparisons, the lower layer raw data, the top layer with some processed
> infos etc.
>
> It might look good to show them at once with a vertical separator that I
> can move in order to show more or less of the bottom layer.
>
> Unfortunately, I do not find the right words to look for a plugin that
> does just this, although I think I have seen a plugin like that.
>
>
> Can somebody help me out with more information or an appropriate plugin?
>
>
> Best,
> Maria
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
Grupo de Usuarios QGIS Colombia
http://qgisusers.co
https://twitter.com/qgiscolombia


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

Re: [Qgis-user] Generate autofield

2019-06-12 Thread Germán Carrillo
Hi Jose,

it was possible in QGIS v2.x with the plugin AutoFields [1]. Now in QGIS
3.x some devs have partially implemented the AutoFields functionalities
into QGIS core, but your use case is still not supported.

However, a project in Colombia [2] is funding exactly that use case. It
could land into QGIS soon. I'll come back to this thread when it happens.

Regards,

Germán
---
[1] https://github.com/gacarrillor/autofields
[2] https://www.proadmintierra.info/



El mié., 12 jun. 2019 a las 4:09, Andreas Neumann ()
escribió:

> Hi José,
>
> QGIS has the concept of a virtual field - see
> https://docs.qgis.org/3.4/en/docs/user_manual/working_with_vector/attribute_table.html#creating-a-virtual-field
>
>
> Greetings,
>
> Andreas
>
> On 2019-06-12 11:06, Jose C. Rodríguez Durán wrote:
>
> Hi everybody,
>
> I'm trying to generate an automatic field, I mean, a field that depends
> for two others. We have FIELD1, FIELD2 and SUM. The result should be SUM =
> FIELD1 + FIELD2. The thing is, if I change the value of FIELD1, the value
> of SUM should change. Example: FIELD1 (8) + FIELD2 (10) = SUM (18)  ->
> FIELD1 (4) + FIELD2 (10) = SUM (14)
>
>
> Any idea??
>
> Thanks in advance for your help!!
>
> --
>
> *José C. Rodríguez Durán*
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
https://twitter.com/GeoTux2 


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

Re: [Qgis-user] GeoPython 2019 - Call for QGIS Contributions

2019-03-14 Thread Germán Carrillo
Dear Martin,


I'm elaborating a description for a short talk on behalf of the Swiss
cooperation in Colombia. It's about our QGIS plugin for land administration
(ISO:19152) [1]. This plugin is based on the QGIS Model Baker plugin [2],
which we also have contributed to. So, if everything goes well, QGIS will
be present in GeoPython 2019!


Regards,

Germán Carrillo
---
[1]
https://github.com/AgenciaImplementacion/Asistente-LADM_COL/blob/master/README_en.md
[2] https://github.com/opengisch/QgisModelBaker/

El jue., 14 mar. 2019 a las 6:03, Christen Martin ()
escribió:

> Hi all,
>
>
>
> The 4th GeoPython Conference takes place again in Basel, Switzerland this
> year June 24-26. ( http://2019.geoypthon.net ).
>
> The call for speakers will end tomorrow, we got many proposals so far but
> looking at them I didn’t really see anything QGIS related which is quite
> unfortunate.
>
>
>
> It would be great if someone wants to present something about QGIS Plugins
> / Automation using Python.
>
>
>
> I know the call will close tomorrow (March 15), but a title with short
> abstract would be enough, a detailed description could follow later. In
> addition, I will try to keep the call open until Sunday evening CET.
>
> Submissions can be done here: https://submit.geopython.net/geopython2019/
>
>
>
> Kind regards,
>
> Martin
>
>
>
>
>
>
>
>
>
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2

<http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] QGIS Voting Member Ballot Results

2019-02-19 Thread Germán Carrillo
Well deserved!
Congratulations Hugo!

Regards,

Germán

El mar., 19 feb. 2019 a las 14:41, Marco Bernasocchi ()
escribió:

> It is with great pleasure that I'd like to announce our latest community
> voting member Hugo Mercier.
>
> Thanks to everybody for voting and thanks already Hugo for your commitment.
>
> Here you can find the votes summaries:
>
>
> https://docs.google.com/spreadsheets/d/1ycJPCu9ylVKC9hefBx_BIi5yxrcLlYPwFCUwTvzHikI/edit?usp=sharing
>
> Cheers
>
> Marco
>
> --
> Marco Bernasocchi
>
> QGIS.org Co-chair
> http://berna.io
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Updating a field set with default global variable on edit

2017-08-22 Thread Germán Carrillo
Hi All,


to get field updates on vector layer edits (be they geometry or attribute
edits) you can use the AutoFields plugin [1]. You can use expressions just
like you do when setting default values in QGIS.


Regards,

Germán
---
[1]
http://geotux.tuxfamily.org/index.php/en/geo-blogs/item/333-autofields-plugin-for-qgis

2017-08-22 8:45 GMT-05:00 Casper Bertelsen :

> Hi Ross,
>
> If you make your project without saving username and password, the project
> will prompt for a user and password when opened. Then each member can login
> using their assigned login and thus making it possible to use current_user
> in postgres.
>
> To remove saved username and password from your current project file (make
> a copy, beforehand), you can open it in a text editor and seach for
>  untill you find
>
> dbname='xx' host=yy port=5432 four lines above 
> and remove the username and password-part only .
>
>
> Mvh. / Best regards
> Casper Bertelsen
>
> On 22/08/2017 15:36, McDonaldR wrote:
>
> Thanks Karl-Magnus
>
>
>
> We use triggers in the database already and they work perfectly but if we
> want to record the specific user creating and editing features then we’d
> have to create separate projects for each user.  At the moment the team of
> about 10 users all use a set of centrally stored project files – one for
> each different task.
>
>
>
> I found this post on Stackexchange (https://gis.stackexchange.
> com/questions/217011/how-to-automatically-update-wfs-edits-with-a-user-id)
> where global variables are used to populate fields when features are
> added.  However, as Matthias notes in the comments this doesn’t work on
> feature  “update”.  If this were possible then it would meet all our
> needs.  Maybe something that could be funded?
>
>
>
> Ross
>
>
>
> *From:* Karl Magnus Jönsson [mailto:karl-magnus.jons...@kristianstad.se
> ]
> *Sent:* 22 August 2017 12:34
> *To:* McDonaldR; qgis-user@lists.osgeo.org
> *Subject:* SV: [Qgis-user] Updating a field set with default global
> variable on edit
>
>
>
> Hi!
>
> I’ve made the same things with triggers in the database. To avoid getting
> same username I’ve chosen not to save the username and password in the
> project. But then the user have to enter it every time the projects opens.
> If you can find a solution to your suggested approach it would be nice.
>
>
>
> *Karl-Magnus *
>
>
>
> *Från:* Qgis-user [mailto:qgis-user-boun...@lists.osgeo.org
> ] *För *McDonaldR
> *Skickat:* den 22 augusti 2017 13:12
> *Till:* qgis-user@lists.osgeo.org
> *Ämne:* [Qgis-user] Updating a field set with default global variable on
> edit
>
>
>
> Hi List,
>
>
>
> Anyone know how to update a field that has a global variable set as the
> default value when records are edited (geometry and/or attributes)?
>
>
> We have a QGIS project with a PostGIS layer loaded and configured with
> look-ups and relations so the users can update all the relevant fields.
> There are also "*created_by*" and "*updated_by*" fields. These are
> updated by a trigger in the database with the "*current_user*" database
> variable. This works fine if you are the current user that added the layer
> to the project - the trigger works perfectly.
>
> If you give the project to someone else and they create and edit features
> in the layer the fields are still updated with your name as you are the
> person who added the layer to the project. Not what we want.
>
> QGIS has global variables and there are some new ones -
> *user_account_name* and *user_full_name* that can be set as default
> values for the fields. When a new feature is created the field is populated
> with the correct name. Which is what we want.
>
> However, when we update an existing record we'd like the "*updated_by*"
> field to be updated with the current "*user_account_name*". Like a
> trigger in the database would do on update. Then we would have a better
> idea of the history of the feature.
>
>
>
> Ross
>
>
>
> *Ross McDonald | *GIS Data Coordinator | Angus Council, People, IT |
> Angus House, Orchardbank Business Park, Sylvie Way, Forfar DD8 1AT* | t:
> 01307 476419*
>
>
>
>
>
> This message is strictly confidential. If you have received this in error,
> please inform the sender and remove it from your system. If received in
> error you may not copy, print, forward or use it or any attachment in any
> way. This message is not capable of creating a legal contract or a binding
> representation and does not represent the views of Angus Council. Emails
> may be monitored for security and network management reasons. Messages
> containing inappropriate content may be intercepted. Angus Council does not
> accept any liability for any harm that may be caused to the recipient
> system or data on it by this message or any attachment.
>
>
> This message is strictly confidential. If you have received this in error,
> please inform the sender and remove it from your 

Re: [Qgis-user] Unable to open XTF (INTERLIS 2) file in QGIS

2017-03-21 Thread Germán Carrillo
Thanks a lot Even!

Regards,

Germán

2017-03-17 8:15 GMT-05:00 Even Rouault <even.roua...@spatialys.com>:

> On vendredi 17 mars 2017 07:48:05 CET Germán Carrillo wrote:
>
> > Hi All,
>
> >
>
> > I'm attempting to visualize the data contained in a XTF file in QGIS (OGR
>
> > provider). I'm using these data [1], specifically the Lake polygon layer,
>
> > which has 3 features.
>
> >
>
> > QGIS displays the geometries but cannot distinguish among features, i.e.,
>
> > if I select one, all 3 lakes are selected. Moreover, all 3 records in the
>
> > attribute table have the same attributes. Strangely, printing each
>
> > feature's id using PyQGIS gives me -1.
>
> >
>
> > One could think it's an OGR issue; however, the following OGR command is
>
> > able to distinguish the 3 features properly, each one with its own id and
>
> > attributes:
>
> >
>
> > $ ogrinfo -ro data/CHBaseEx_WaterNet_V1.xtf
> CHBaseEx_WaterNet_V1.WaterNet_
>
> > WithModificationObjects.Lake
>
> >
>
> >
>
> > I've confirmed this issue in QGIS v2.14.x, 2.18.x, and 2.99 (built on
>
> > Monday). In the latter, the attribute table shows only one record,
> although
>
> > QGIS displays 3 polygons.
>
> >
>
> >
>
> > Is this a known problem? Should I create an issue in QGIS Issue Tracking?
>
>
>
> This is an issue in the OGR Interlis 2 driver that didn't set a feature id
> to the features, so it was left to its -1 default value (you could see it
> on the ogrinfo report)
>
>
>
> Fixed per https://trac.osgeo.org/gdal/ticket/6839
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>



-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
http://about.me/germancarrillo

<http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

[Qgis-user] Unable to open XTF (INTERLIS 2) file in QGIS

2017-03-17 Thread Germán Carrillo
Hi All,

I'm attempting to visualize the data contained in a XTF file in QGIS (OGR
provider). I'm using these data [1], specifically the Lake polygon layer,
which has 3 features.

QGIS displays the geometries but cannot distinguish among features, i.e.,
if I select one, all 3 lakes are selected. Moreover, all 3 records in the
attribute table have the same attributes. Strangely, printing each
feature's id using PyQGIS gives me -1.

One could think it's an OGR issue; however, the following OGR command is
able to distinguish the 3 features properly, each one with its own id and
attributes:

$ ogrinfo -ro data/CHBaseEx_WaterNet_V1.xtf CHBaseEx_WaterNet_V1.WaterNet_
WithModificationObjects.Lake


I've confirmed this issue in QGIS v2.14.x, 2.18.x, and 2.99 (built on
Monday). In the latter, the attribute table shows only one record, although
QGIS displays 3 polygons.


Is this a known problem? Should I create an issue in QGIS Issue Tracking?

Regards,

Germán
--
[1] http://www.interlis.ch/interlis2/docs23/Testdatensatz_Basismodelle_
20120126.zip

-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
http://about.me/germancarrillo


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

Re: [Qgis-user] Embed layers and groups

2017-03-10 Thread Germán Carrillo
Hi All,

just to let you know that I recently wrote a plugin called "Copy layers and
groups to clipboard", which also creates an "unlinked copy" of
layers/groups from other projects.

Regards,

Germán

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

2017-03-10 12:31 GMT-05:00 Régis Haubourg :

> Hi guys,
> Paul Blottiere submitted a pull request to solve that issue here
> https://github.com/qgis/QGIS/pull/4247
>
> If it is doing the work and merged, that would deserve backporting to 2.18
> branch.
>
> And yes that issue deserves to be more advertised and also extended to a
> unlinked "copy" mode.
> Wiring it in browser would be a nice way to make it more known too.
>
> Side note: There is already a plugin called layers menu from project to
> build menu shortcuts to other's project layers. I can't live without it
> now, pushing that into core would be nice, if someone's willing to fund
> that, qgis devs would probably be happy to tackle that
>
>
>
> Le 10 mars 2017 3:19 PM, "Neumann, Andreas"  a
> écrit :
>
>> Hi Harrissou,
>>
>> Thanks for tackling this in the documentation.
>>
>> Some remarks:
>>
>> - embedded layers are shown with "italic" labels in the layer tree to
>> distinguish them from regular layers.
>>
>> - all layer properties are "read only", not only styling and labeling,
>> but also any other properties, like field aliases, display values, actions,
>> etc. That's why the layer properties can't be shown to avoid that the user
>> changes stuff which can't be saved in the project.
>>
>> - if the master project uses an alternative rendering order (defined in
>> the layer order panel of the master project), the layer ordering in the
>> project where the layers are embedded can only be retained "en bloc" and
>> only if you embed the parent group and not individual layers
>>
>> It may even be that you'll have to also activate the alternative
>> rendering order in the client project if you want to retain, but I am not
>> 100% sure. I just remember that it gave me headaches with the layer
>> rendering order in the past, because it was a bit buggy. Should work well
>> meanwhile though.
>>
>> Andreas
>>
>> On 2017-03-10 12:05, DelazJ wrote:
>>
>> Hi,
>>
>> Actually it's not a new feature. Has been there since (available in
>> 1.8 documentation http://docs.qgis.org/1.8/en/do
>> cs/user_manual/introduction/general_tools.html#nesting-projects)
>> And as you can see, the documentation has neither been improved since.
>> Given your discussion I tried to put some highlights on the feature and
>> any review is welcome https://github.com/qgis/QGIS-D
>> ocumentation/issues/1748 I'm more a default style user than an embedded
>> layer one so if I miss some advantages in this feature please, let me know.
>>
>> Laurence, I didn't check if you had reported the issues yet, otherwise I
>> think removal of some items can be added:
>> - Layer menu --> Labeling
>> - when right-clicking an embedded layer --> Style.
>>
>> Given that the Layer Properties dialog is not availbale, there are some
>> actions like "Set Scale visibility of layer", "Set layer CRS", "Filter"
>> (that belong to the Properties --> General menu) that make me fail to
>> understand the real scope of an embedded layer. Are they supposed to be
>> grayed too or not? What kind of changes are really allowed on such a layer
>> or what is really kept from the "source" file?
>>
>> Thanks,
>> Harrissou
>>
>>
>> 2017-03-09 21:07 GMT+01:00 Laurence Béchet :
>>
>>> Thanks Andrea. I'll create them.
>>> These are not big issues and easy to work around as a user.
>>>
>>> I agree with you this new embedded layers feature is awesome and for
>>> little mapping projects like Ark in the Park they are very useful as I have
>>> my layout already ready and just need to add what i want to plots: bird
>>> territories or past control results or . Also if something in the
>>> layout changes (new track, pest control grid altered) I only need to modify
>>> the 'master' map and it is propagated to all the other maps. Worth a try!
>>>
>>> Kind regards
>>> Laurence
>>> ARK IN THE PARK Volunteer Co-Ordinator
>>> Cascades Ranger Station
>>> Falls Road, Waitakere
>>> Phone:  (09) 810 7014
>>> www.arkinthepark.org.nz  www.forestandbird.org.nz
>>>
>>> On 9/03/2017 10:58 p.m., Neumann, Andreas wrote:
>>>
>>> Hi Laurence,
>>>
>>> I can confirm both issues.
>>>
>>> Embedded groups show empty (without the layers, only the groups are
>>> displayed) in QGIS 3 and they are stylable in the styling dock in 2.18 when
>>> they shouldn't be stylable.
>>>
>>> However, if your restyle embedded layers in the styling dock, they are,
>>> of course not saved back to the original layers. This would be dangerous
>>> and probably unwanted in most cases.
>>>
>>> The styling dock is fairly new and probably the devs where not aware
>>> about the embedded layers feature.
>>>
>>> Can you please issue 

Re: [Qgis-user] Miguel Ribot Guzmán

2016-11-03 Thread Germán Carrillo
¡Hola Miguel!

you can find solutions for this problem at GIS.StackExchange [1].

Regards,

Germán
(¡Viva Cuba!)
--
[1] http://gis.stackexchange.com/a/216481/4972

2016-11-03 8:25 GMT-05:00 Miguel Ribot Guzmán :

> Hello.
>
> My name is Miguel Ribot Guzmán from Cuba. I have installed QGIS 2.18
> Las Palmas and when I want to use difference  geoproccesing get an
> error.
>
> global name 'QgsWKBTypes' is not defined See log for more details.
>
> May you help me?
>
> Thanks very much.
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
http://about.me/germancarrillo


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

Re: [Qgis-user] Using aggregates functions to count intersected features from another layer

2016-10-19 Thread Germán Carrillo
Hi All,


Harrissou, have a look at [1] for a very similar question and one possible
solution using the Function Editor (of course, instead of sum you would use
count).

Do you other devs find that approach useful? Any hint for keeping the index
up-to-date?

Is there any interest in having this kind of functions available for QGIS
expressions? I could help with that.


Regards,

Germán
--
[1] http://gis.stackexchange.com/a/212762/4972


2016-10-19 7:42 GMT-05:00 Neumann, Andreas :

> Good idea to use a virtual layer for that! It is probably also more
> efficient than a QGIS expression.
>
> Just to understand the virtual layers correctly:
>
> when is the query behind the virtual layer executed?
>
> - at every redraw?
>
> - once at creation?
>
> - at project reload?
>
> Aren't the virtual layers automatically updated, at least when the project
> reloads?
>
> Are the results cached or not?
>
> Would also make sense to add a "update" option for a virtual layer, if
> that doesn't exist yet.
>
> Greetings,
>
> Andreas
>
>
>
> On 2016-10-19 14:32, Nathan Woodrow wrote:
>
> Maybe using a virtual layer query via DB Manager will work.  You have full
> SQL join support. Speed isn't always the best but gives you the full power
> of SQL which is the correct way to do this IMO.
>
> E.g SELECT LayerA.id, COUNT(*) FROM layerA
> JOIN layerB ON ST_WithIn(layerA.geometry, layerB.geometry)
> GROUP BY layerA.type
>
> Although you can't do an update but you can make a new layer with the new
> counts.
>
> - Nathan
>
> On Wed, Oct 19, 2016 at 10:22 PM, Neumann, Andreas 
> wrote:
>
>> Well yes - but that is not a "live" point in polygon. It create separate
>> layers which need to be kept up-to-date.
>>
>> Harrissou was after a "live" point in polygon, which is automatically
>> kept up-to-date through a QGIS expression.
>>
>> Maybe Nyall knows how to write the correct aggregate expression for that?
>>
>> Greetings,
>>
>> Andreas
>>
>> On 2016-10-19 14:11, Nicolas Cadieux wrote:
>>
>>
>> Try this.
>>
>> http://www.qgistutorials.com/fr/docs/points_in_polygon.html
>>
>> Nicolas
>>
>> Le 19 oct. 2016 à 06:37, DelazJ [via OSGeo.org] <[hidden email]> a
>> écrit :
>>
>> Hi,
>>
>> I have a polygon layer and a point one.
>> I'd like to calculate for each polygon feature, the number of points that
>> it covers. I thought the aggregates functions could help me find an easier
>> and straight expression to perform this (without creating intermediate
>> layers) but I fail to find any correct syntax.
>>
>> I tried aggregate ('mypoint', 'count', "id", intersects ($geometry,
>> geometry($currentfeature)))
>>
>>  And many variants of the fourth option but It always return the total of
>> points or an error. Actually this option is a filter and I wonder if i'm
>> not missing a "group by" option in the aggregate function (which seems to
>> be the appropriate one in my case). Is it possible?
>> The work around I found is to populate an ad'hoc field in the point layer
>> with overlapping polygon id, thanks to the SpatialJoin plugin, then I
>> create a one-to-many relation in the project between the two layers in
>> other to use relation_aggregate function.
>> But I expected something more direct.
>>
>> Any hint, please?
>>
>> Thanks,
>> Harrissou
>>
>> ___
>> Qgis-user mailing list
>> [hidden email]
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>> --
>> If you reply to this email, your message will be added to the discussion
>> below:
>> http://osgeo-org.1560.x6.nabble.com/Using-aggregates-functio
>> ns-to-count-intersected-features-from-another-layer-tp5291420.html
>> To start a new topic under Quantum GIS - User, email [hidden email]
>> To unsubscribe from Quantum GIS - User, click here.
>> NAML
>> 
>>
>>
>> --
>> View this message in context: Re: Using aggregates functions to count
>> intersected features from another layer
>> 
>> Sent from the Quantum GIS - User mailing list archive
>>  at
>> Nabble.com.
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>>
>>
>> 

Re: [Qgis-user] Equirectangular images PyQt

2016-09-27 Thread Germán Carrillo
Hi Francisco,

this kind of questions are more suitable for the qgis-developer mailing
list. I suggest you to post it there.

Regards,

Germán

2016-09-20 10:21 GMT-05:00 Francisco José Raga López :

> Hi,
>
> I’m working on a plugin for Qgis, that consists in displaying spheric
> images, something similar to this:
>
> http://threejs.org/examples/css3d_panorama.html
>
> I’ve tried to implement it in html and js and embed it in a qwebview, but
> it doesn't render correctly.
>
> Another option is to implement it from scratch in a qgraphicsscene,
> similar to this code:
>
>
> https://forum.qt.io/topic/66310/panoramic-view-in-qgraphicsview/4
>
> Does anybody have any suggestion about how implement it? Or can you tell
> me which the best starting point would be?
>
> Thanks in advance
>
> Francisco José Raga López
>
> Analista/Desarrollador GIS Open Source "QGis"
>
> Móvil: (+34) 654275432 | e-Mail: franka1...@gmail.com | skype:
> francisco_raga
> Github: https://github.com/All4Gis
> Linkedin: https://es.linkedin.com/in/franciscojoseragalopez
>
>
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-user
>



-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
http://about.me/germancarrillo


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

[Qgis-user] New plugin: AutoFields

2016-08-22 Thread Germán Carrillo
Hi QGIS users!


I've released the AutoFields plugin [1] and would like to tell you about it.


You might have needed to get automatic calculations on some fields when you
create or modify features in a vector layer. Well, that's what the
AutoFields plugin allows you to achieve.

With the AutoFields plugin you can set an expression over new or existing
fields and get automatically calculated values as soon as you digitize
geometries. A field with such capabilities is called an AutoField.

You could close QGIS and AutoFields will be remembered for you next time
you use their corresponding layers in any other QGIS project.

Have a look at the documentation of the plugin [2], which contains usage
instructions, video examples, and FAQ, among other sections. If you know
Python, you can even create and use AutoFields from PyQGIS; instructions
are also in the documentation.

I recommend that you watch this video [3] to see AutoFields in action.


If you have any question, don't hesitate to ask. Hope you find the plugin
useful!


Regards,

Germán
--
[1] http://plugins.qgis.org/plugins/AutoFields/
[2]
http://geotux.tuxfamily.org/index.php/en/geo-blogs/item/333-autofields-plugin-for-qgis
[3] https://vimeo.com/germap/autofields-geometric-properties
-- 
---
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
http://about.me/germancarrillo


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

Re: [Qgis-user] How load Postgis layer from command line?

2014-12-10 Thread Germán Carrillo
Exactly Richard, that would be the expected behaviour.

Regards,

Germán

2014-12-10 4:37 GMT-05:00 Richard Duivenvoorde rdmaili...@duif.net:

 On 10-12-14 10:11, Uggla Henrik wrote:
  In Linux it is very easy to setup a ramdisk for fast temporal file
 storage.
 
  --help really gives the impression that loading Qgis with PostGIS layers
 using the FILE parameter is a breeze. Also, I still doesn't get what this
 PostGIS extension mentioned in --help is.

 cc'ing to dev list, original thread here:

 http://lists.osgeo.org/pipermail/qgis-user/2014-December/030180.html


 Me neither, best to bring this to the dev list then, to ask which this
 extension is.

 And IF we want a FILE parameter work for postgis we could come up with a
 design for that file param and do a feature request to get this
 implemented?

 For example, as this works:

 l = iface.addVectorLayer('dbname=bag host=localhost port=5432 user=geo
 password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992
 type=MULTIPOLYGON table=bag8mrt2014.provincie (geovlak) sql=',
 test, postgres)

 this is the actual uri:

 'dbname=bag host=localhost port=5432 user=geo
 password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992
 type=MULTIPOLYGON table=bag8mrt2014.provincie (geovlak) sql='

 so maybe prepend that with the provider part:

 postgres:'dbname=bag host=localhost port=5432 user=geo
 password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992
 type=MULTIPOLYGON table=bag8mrt2014.provincie (geovlak) sql='

 and add a --uri option to QGIS?

 qgis --uri postgres:'dbname=bag host=localhost port=5432 user=geo
 password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992
 type=MULTIPOLYGON table=bag8mrt2014.provincie (geovlak) sql='

 or something like that?

 Regards,

 Richard Duivenvoorde




-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How load Postgis layer from command line?

2014-12-09 Thread Germán Carrillo
Hi Richard,

thanks a lot for your response. However, I think we aren't talking about
the same :)
I understand this thread was opened to ask about how to open a PostGIS
Layer from the OS (say GNU/Linux) command line at QGIS startup.

From the GNU/Linux terminal, when I enter qgis --help I get:


Usage: /usr/bin/qgis.bin [OPTION] [FILE]
  OPTION:
[--snapshot filename] emit snapshot of loaded datasets to given file
[--width width] width of snapshot to emit
[--height height] height of snapshot to emit
[--lang language] use language for interface text
[--project projectfile] load the given QGIS project
[--extent xmin,ymin,xmax,ymax] set initial map extent
[--nologo] hide splash screen
[--noplugins] don't restore plugins on startup
[--nocustomization] don't apply GUI customization
[--customizationfile] use the given ini file as GUI customization
[--optionspath path] use the given QSettings path
[--configpath path] use the given path for all user configuration
[--code path] run the given python file on load
[--defaultui] start by resetting user ui settings to default
[--help] this text

  FILE:
Files specified on the command line can include rasters,
vectors, and QGIS project files (.qgs):
 1. Rasters - supported formats include GeoTiff, DEM
and others supported by GDAL
 2. Vectors - supported formats include ESRI Shapefiles
and others supported by OGR and PostgreSQL layers using
the PostGIS extension


The FILE section is what I'm (and Uggla was) asking about.
From that help info, it seems to be possible to load PostGIS layers when
triggering the qgis command from the GNU/Linux command line.
However, I cannot get it to work properly, and as soon as QGIS starts, I
get a Layer is not valid error.

Regards,

Germán




2014-12-09 6:02 GMT-05:00 Richard Duivenvoorde rdmaili...@duif.net:


 Hi Germán,

 it took some time for me too to make it work :-)

 This one was easy, and working immediately:

 uri = QgsDataSourceURI()
 #  host,   port,   dbase, user, password
 uri.setConnection(localhost, 5432, bag, geo, xxx)
 # schema,  table, geometry,  whereclause
 uri.setDataSource(bag8mrt2014, provincie, geovlak, )
 #  layername, providername
 vlayer = QgsVectorLayer(uri.uri(), test, postgres)
 # just checking, should return True
 vlayer.isValid()
 # add it to mapcanvas
 QgsMapLayerRegistry.instance().addMapLayer(layer)

 but the one you want to use, with a uri string, took me some time to
 figure out. Best is to run QGIS in debug mode in terminal, to see if it
 is a query problem ( which you get when you do sql=''), or other problems.

 But for the above postgis layer, this is working as an uri example:

 l = iface.addVectorLayer('dbname=bag host=localhost port=5432 user=geo
 password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992
 type=MULTIPOLYGON table=bag8mrt2014.provincie (geovlak) sql=',
 test, postgres)

 'problems' you face when you use this:
 - do NOT use quotes, EXCEPT for the schema/table value
 - the table value should be double quotes, so the full string is single
 - do NOT forget the (geovlak) - geometry! part as it returns a valid
 layer then, but you do not see anything.

 above uri string is actually taken from the debug output of QGIS when
 you load this layer via QGIS itself, and then stripped from quotes.

 hope this helps!

 Regards,

 Richard Duivenvoorde




 On 09-12-14 00:59, Germán Carrillo wrote:
  Hi all,
 
  could you please let me know of a working command that allows one to
  load a PostGIS layer into QGIS at startup?
 
  I've tried with the information provided in the PyQGIS Cookbook [1] with
  no success.
 
  Specifically, I tried with the uri.uri() string, something
  like: dbname='buscador' host=localhost port=4326 user='postgres'
  password='postgres' table='public'.'parques_nacionales' (geom) sql=
  But get a Layer is not valid error.
 
  I'm using QGIS v.2.6 on GNU/Linux.
 
  Regards,
 
  Germán
  --
  [1]
 
 http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/loadlayer.html
 
  2013-12-05 8:19 GMT-05:00 Richard Duivenvoorde rdmaili...@duif.net
  mailto:rdmaili...@duif.net:
 
  On 05-12-13 11:33, Uggla Henrik wrote:
   Is there no documentation about this? The extension mentioned is
 Postgis itself, not a specific Qgis extension, right?
 
  Off course there is documentation, did you not read it first ;-)
 
 
 http://www.qgis.org/en/docs/pyqgis_developer_cookbook/loadlayer.html#vector-layers
 
  Regards,
 
  Richard Duivenvoorde
 
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org mailto:Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 
 
 
  --
  ---
 |\__
  (:__)(
 |/
 
  Soluciones Geoinformáticas Libres
  http://geotux.tuxfamily.org/
  http://twitter.com/GeoTux2

Re: [Qgis-user] How load Postgis layer from command line?

2014-12-09 Thread Germán Carrillo
Thanks Richard for your time. Comments between lines.

2014-12-09 15:39 GMT-05:00 Richard Duivenvoorde rdmaili...@duif.net:

 On 09-12-14 16:41, Germán Carrillo wrote:
  Hi Richard,
 
  thanks a lot for your response. However, I think we aren't talking about
  the same :)
  I understand this thread was opened to ask about how to open a PostGIS
  Layer from the OS (say GNU/Linux) command line at QGIS startup.

 ah, sorry sorry :-(


well, I take this as a challenge...
 (short version: go to the end, either use a vrt file or a qgs file)

 looking into the code:

 https://github.com/qgis/QGIS/blob/master/src/app/qgisapp.cpp#L4206

 it looks like you can only use ogr provider for this...

 Good catch!


 here:


 http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/loadlayer.html


 there is an example to use a MySQL uri... so I tried that one first.


I sent the MySQL example to Martin :D
Do you see now why I was trying with the uri.uri()?


 All is based on ogr, so we need the ogr driver:

 http://www.gdal.org/drv_pg.html

 tried stuff like:

 PG:'dbname=bag host=localhost port=5432 user=geo
 password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992
 type=MULTIPOLYGON table=bag8mrt2014.provincie (geovlak) sql='

 but all that I got working was a simple:

 ogrinfo -ro PG:'host=localhost user=geo password=gwwvgeo dbname=bag
 sslmode=disable'

 but using that kind of uri's did not make QGIS load, it kept showing:

 Unable to load /tmp/PG:host=localhost user=geo password=xxx dbname=bag
 sslmode=disable

 apparently QGIS ALWAYS prepends the basepath (/tmp for me) in front of
 the 'filename'. It has to be a real file ??


Same here, QGIS prepends the user's folder.



 THEN: ok, so it has to be ogr AND a file...
 There is gdal's Virtual Format:

 http://www.gdal.org/drv_vrt.html

 so with some trial and error I prepared the following vrt file, for
 exact the same data as the earlier email:

 OGRVRTDataSource

 OGRVRTLayer name=test
 SrcDataSourcePG:host=localhost user=geo password=*** dbname=bag
 sslmode=disable/SrcDataSource
 SrcSQLselect * from bag8mrt2014.provincie/SrcSQL
 LayerSRSepsg:28992/LayerSRS
 /OGRVRTLayer

 /OGRVRTDataSource

 saved it as mypgconnection.vrt, and NOW I can load it with:

 qgis mypgconnection.vrt  \o/

 another option, is to create a qgs project file with that postgresql
 connection and fire up qgis with that one

 qgis mypgproject.qgs

 you could maybe create the qgs file dynamically to have your
 schema/table names in place


Yes, actually my main requirement is to generate string connections
dynamically. To be honest, I don't think writing to a file is the best way
to achieve such task.


 ok, it's all a little hacking, but hopefully of use :-)

 Regards,

 Richard Duivenvoorde


Thanks again!

Don't you think --help gives users misleading information? It says that you
can load PostGIS layers in the FILE parameter and, apparently, there is no
way of doing that.

The use case I have in mind is to select spatial tables from pgAdmin3 and
open them in QGIS.

Regards,

Germán

-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How load Postgis layer from command line?

2014-12-09 Thread Germán Carrillo
I think you're right Larry. I'd like to avoid files, though.

Regards,

Germán

2014-12-09 18:17 GMT-05:00 Larry Shaffer lar...@dakotacarto.com:

 HI,

 Another thing you might try is this command line option:

 [--code path] run the given python file on load

 Then, you could possibly load the PostGIS layer just as you would from the
 PyQGIS console, only it would be commands inside of a Python file.

 You could do other things as well, like verify the PostgreSQL server is
 up, etc.

 Please note: just guessing here, as I have not fully tested this yet.

 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota

 On Tue, Dec 9, 2014 at 1:39 PM, Richard Duivenvoorde rdmaili...@duif.net
 wrote:

 On 09-12-14 16:41, Germán Carrillo wrote:
  Hi Richard,
 
  thanks a lot for your response. However, I think we aren't talking about
  the same :)
  I understand this thread was opened to ask about how to open a PostGIS
  Layer from the OS (say GNU/Linux) command line at QGIS startup.

 ah, sorry sorry :-(

 well, I take this as a challenge...
 (short version: go to the end, either use a vrt file or a qgs file)

 looking into the code:

 https://github.com/qgis/QGIS/blob/master/src/app/qgisapp.cpp#L4206

 it looks like you can only use ogr provider for this...

 here:


 http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/loadlayer.html


 there is an example to use a MySQL uri... so I tried that one first.
 All is based on ogr, so we need the ogr driver:

 http://www.gdal.org/drv_pg.html

 tried stuff like:

 PG:'dbname=bag host=localhost port=5432 user=geo
 password=xxx sslmode=disable key=gid estimatedmetadata=true srid=28992
 type=MULTIPOLYGON table=bag8mrt2014.provincie (geovlak) sql='

 but all that I got working was a simple:

 ogrinfo -ro PG:'host=localhost user=geo password=gwwvgeo dbname=bag
 sslmode=disable'

 but using that kind of uri's did not make QGIS load, it kept showing:

 Unable to load /tmp/PG:host=localhost user=geo password=xxx dbname=bag
 sslmode=disable

 apparently QGIS ALWAYS prepends the basepath (/tmp for me) in front of
 the 'filename'. It has to be a real file ??

 THEN: ok, so it has to be ogr AND a file...
 There is gdal's Virtual Format:

 http://www.gdal.org/drv_vrt.html

 so with some trial and error I prepared the following vrt file, for
 exact the same data as the earlier email:

 OGRVRTDataSource

 OGRVRTLayer name=test
 SrcDataSourcePG:host=localhost user=geo password=*** dbname=bag
 sslmode=disable/SrcDataSource
 SrcSQLselect * from bag8mrt2014.provincie/SrcSQL
 LayerSRSepsg:28992/LayerSRS
 /OGRVRTLayer

 /OGRVRTDataSource

 saved it as mypgconnection.vrt, and NOW I can load it with:

 qgis mypgconnection.vrt  \o/

 another option, is to create a qgs project file with that postgresql
 connection and fire up qgis with that one

 qgis mypgproject.qgs

 you could maybe create the qgs file dynamically to have your
 schema/table names in place

 ok, it's all a little hacking, but hopefully of use :-)

 Regards,

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





-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How load Postgis layer from command line?

2014-12-08 Thread Germán Carrillo
Hi all,

could you please let me know of a working command that allows one to load a
PostGIS layer into QGIS at startup?

I've tried with the information provided in the PyQGIS Cookbook [1] with no
success.

Specifically, I tried with the uri.uri() string, something
like: dbname='buscador' host=localhost port=4326 user='postgres'
password='postgres' table='public'.'parques_nacionales' (geom) sql=
But get a Layer is not valid error.

I'm using QGIS v.2.6 on GNU/Linux.

Regards,

Germán
--
[1]
http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/loadlayer.html

2013-12-05 8:19 GMT-05:00 Richard Duivenvoorde rdmaili...@duif.net:

 On 05-12-13 11:33, Uggla Henrik wrote:
  Is there no documentation about this? The extension mentioned is Postgis
 itself, not a specific Qgis extension, right?

 Off course there is documentation, did you not read it first ;-)


 http://www.qgis.org/en/docs/pyqgis_developer_cookbook/loadlayer.html#vector-layers

 Regards,

 Richard Duivenvoorde

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




-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] How to calculate the transformation parameters for the QGIS Affine Plugin

2014-10-07 Thread Germán Carrillo
Just in case you  have R within reach, have a look at the post Similarity
and affine transformations in R [1], which explains how to use my R plugin
vec2dtransf to perform affine transformations.


Regards,

Germán

[1]
http://geotux.tuxfamily.org/index.php/en/geo-blogs/item/302-affine-and-similarity-transformations-in-r
[2] http://cran.r-project.org/web/packages/vec2dtransf/index.html





2014-10-07 13:59 GMT-05:00 Siki Zoltan s...@agt.bme.hu:

 Hello Marcel,

 to calculate affine transformation parameters you must have at least 3
 points in both coordinate systems.
 LV95_y = Y0 + a * local_y + b * local_x

 LV95_x = X0 + c * local_x + d * local_y

 If you set up the equations for the three points, you get to linear
 equation systems, one for Y0, a, b unknowns, and another fo X0, c, d
 unknowns.

 It is highly recommended to use more points and least squares estimation
 for the parameters.

 Best regards,
 Zoltan



 On Tue, 7 Oct 2014, Marcel Stadelmann wrote:

  Hi,

 I would like to make an affine transformation with a vector layer shape
 file, using the Affine Plugin. I know from two points the correct
 coordinates:
 local_y local_x LV95_y  LV95_x
 9.0650567.70714 2753308.44  1166381.26
 9.065056-5.085236   2753295.68  1166391.31

 How can I calculate the transformation parameters?

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

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




-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] add new spanish-speaking list ?

2012-09-20 Thread Germán Carrillo
 [...] Virtually anybody working/learning GIS understands English [...]

They might understand technical terms (layer, vector, spatial
selection, etc.) for sure, but not English.

Once a regular user from Latin America wants to ask a question
involving a use case or a simple description of an issue, problems may
arise. We have seen it already, the issue is not described properly,
and therefore, nobody in the mailing list can actually help, even if
they are willing to.

Regards,

Germán


2012/9/20, leyan ouyang ouyang.le...@hotmail.com:

 That everyone speaks English a very broad assumption, and one which does not
 hold true in China at least ... The lack of internationalization (interface,
 documentation, community) is one of the major obstacles for my QGis
 proselytism here.

 Additionally, having separate lists will not take you more time, you just
 have to subscribe to both and it is the same for you.

 Anyway, I support the creation of the list ! I may even join to try to
 freshen up my Spanish ;)

 Leyan

 Date: Thu, 20 Sep 2012 09:23:59 +0200
 From: alobolis...@gmail.com
 To: carrillo.ger...@gmail.com
 CC: qgis-user@lists.osgeo.org
 Subject: Re: [Qgis-user] add new spanish-speaking list ?

 Hi!
 I do not think this is a good idea. Virtually anybody working/learning
 GIS understands English
 and there are many advantages on keeping one single list, as the most
 difficult is to find time
 to answer questions. And there is the added value of exchanging
 opinions and ideas worldwide.
 Obviously this is not an obstacle for people wanting a separate list to do
 it.

 Agus

   


-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Help cutter raster

2012-08-29 Thread Germán Carrillo
Hi Lorena,

if you want to clip an image by using a mask layer, you must create first
that mask layer, which must be a polygon layer. You can do so in
Layer-New-New Shapefile Layer. Set for the mask layer the same reference
system of the image.

If you still have troubles please send to this list a detailed description
of the error you get, e.g., a screenshot or the error message.

I tried this out in QGIS 1.8.0 and it works.

Regards,

Germán

2012/8/28 lorena Coelho lorena.r.coe...@gmail.com

 Hola, Muchas Gracias.
  Voy a intentar explicarme. Estoy usando Quantum Gis 1.8.0 Lisboa. Para
 cortar un raster voy a RASTER/EXTRACCIÓN/CLIPPER. entonces se me abre un
 ventana que en el medio dice; Modo de corte y tengo dos opciones
 por extensión o por capa de mascara.

 Por extensión puedo cortar el raster sin problema pero..por capa de
 mascara no estoy pudiendo.
  Lo cual no me esta permitiendo realizar cortes irregulares.

 Espero me puedan ayudar...Gracias


 2012/8/28 Germán Carrillo carrillo.ger...@gmail.com

 Or post your question in Spanish here, I know there is some people who
 would understand, and  even if they are not able to solve your doubts, they
 would help you rephrasing your question in English.


 2012/8/28 Etienne Tourigny etourigny@gmail.com

 Hi I'm sorry but I don't understand your question... you mean that it
 doesn't work if the raster is a mask?

 By the way, there is a Spanish list at osgeo, although not specific to
 qgis

 http://lists.osgeo.org/pipermail/spanish/

 Etienne

 On Tue, Aug 28, 2012 at 3:39 PM, lorena Coelho
 lorena.r.coe...@gmail.com wrote:
  Hi, thanks for your quick response. The add gdaltools what I have on.
 In
  fact cut a raster if I can, so I can not cut the raster is a mask.
 That is
  asking that the court limit is determined mask. Thanks. Lorena
 
 
  2012/8/28 Germán Carrillo carrillo.ger...@gmail.com
 
  Believe it or not, names in 'Spanish' are:
 Ráster-Extraction-Clipper :)
  (Ráster-Extracción-Cortador/Cortar)
 
 
  2012/8/28 Etienne Tourigny etourigny@gmail.com
 
  make sure gdaltools plugins is enabled (plugins-Manage Plugins),
 then
  go to Raster-Extraction-clipper. Not sure what the names are in
  español though.
 
  On Tue, Aug 28, 2012 at 12:37 PM, lorena Coelho
  lorena.r.coe...@gmail.com wrote:
   Hello,
   I am a magister student in Uruguay. I'm working with QGIS. I can
 not
   cut a
   raster mask,  can someone help. What is the complement need? I'm
 using
   Quantum GIS 1.8.0 Lisbon
   thanks
  
  
   ___
   Qgis-user mailing list
   Qgis-user@lists.osgeo.org
   http://lists.osgeo.org/mailman/listinfo/qgis-user
  
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 
 
 
  --
  ---
 |\__
  (:__)(
 |/
 
  Soluciones Geoinformáticas Libres
  http://geotux.tuxfamily.org/
  http://twitter.com/GeoTux2
 
 




 --
 ---
|\__
 (:__)(
|/

 Soluciones Geoinformáticas Libres
 http://geotux.tuxfamily.org/
 http://twitter.com/GeoTux2





-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Help cutter raster

2012-08-29 Thread Germán Carrillo
Make sure that the mask layer has polygons (features) in it, or if you are
editing, make sure that you've saved the polygons you drew.

(Asegúrate que la capa que usas como máscara tenga polígonos, o si estás
editandola, asegúrate que has guardado los polígonos que dibujaste).

Regards,

Germán

2012/8/29 lorena Coelho lorena.r.coe...@gmail.com

 Hola, probe  y no puedo...el error dice ERROR: Did not get any cutline
 features. La mascara si la crea...pero no me corta el raster. Muchas Gracias


 2012/8/29 Germán Carrillo carrillo.ger...@gmail.com

 Hi Lorena,

 if you want to clip an image by using a mask layer, you must create first
 that mask layer, which must be a polygon layer. You can do so in
 Layer-New-New Shapefile Layer. Set for the mask layer the same reference
 system of the image.

 If you still have troubles please send to this list a detailed
 description of the error you get, e.g., a screenshot or the error message.

 I tried this out in QGIS 1.8.0 and it works.

 Regards,

 Germán


 2012/8/28 lorena Coelho lorena.r.coe...@gmail.com

 Hola, Muchas Gracias.
  Voy a intentar explicarme. Estoy usando Quantum Gis 1.8.0 Lisboa. Para
 cortar un raster voy a RASTER/EXTRACCIÓN/CLIPPER. entonces se me abre un
 ventana que en el medio dice; Modo de corte y tengo dos opciones
 por extensión o por capa de mascara.

 Por extensión puedo cortar el raster sin problema pero..por capa de
 mascara no estoy pudiendo.
  Lo cual no me esta permitiendo realizar cortes irregulares.

 Espero me puedan ayudar...Gracias


 2012/8/28 Germán Carrillo carrillo.ger...@gmail.com

 Or post your question in Spanish here, I know there is some people who
 would understand, and  even if they are not able to solve your doubts, they
 would help you rephrasing your question in English.


 2012/8/28 Etienne Tourigny etourigny@gmail.com

 Hi I'm sorry but I don't understand your question... you mean that it
 doesn't work if the raster is a mask?

 By the way, there is a Spanish list at osgeo, although not specific to
 qgis

 http://lists.osgeo.org/pipermail/spanish/

 Etienne

 On Tue, Aug 28, 2012 at 3:39 PM, lorena Coelho
 lorena.r.coe...@gmail.com wrote:
  Hi, thanks for your quick response. The add gdaltools what I have
 on. In
  fact cut a raster if I can, so I can not cut the raster is a mask.
 That is
  asking that the court limit is determined mask. Thanks. Lorena
 
 
  2012/8/28 Germán Carrillo carrillo.ger...@gmail.com
 
  Believe it or not, names in 'Spanish' are:
 Ráster-Extraction-Clipper :)
  (Ráster-Extracción-Cortador/Cortar)
 
 
  2012/8/28 Etienne Tourigny etourigny@gmail.com
 
  make sure gdaltools plugins is enabled (plugins-Manage Plugins),
 then
  go to Raster-Extraction-clipper. Not sure what the names are in
  español though.
 
  On Tue, Aug 28, 2012 at 12:37 PM, lorena Coelho
  lorena.r.coe...@gmail.com wrote:
   Hello,
   I am a magister student in Uruguay. I'm working with QGIS. I can
 not
   cut a
   raster mask,  can someone help. What is the complement need? I'm
 using
   Quantum GIS 1.8.0 Lisbon
   thanks
  
  
   ___
   Qgis-user mailing list
   Qgis-user@lists.osgeo.org
   http://lists.osgeo.org/mailman/listinfo/qgis-user
  
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 
 
 
  --
  ---
 |\__
  (:__)(
 |/
 
  Soluciones Geoinformáticas Libres
  http://geotux.tuxfamily.org/
  http://twitter.com/GeoTux2
 
 




 --
 ---
|\__
 (:__)(
|/

 Soluciones Geoinformáticas Libres
 http://geotux.tuxfamily.org/
 http://twitter.com/GeoTux2





 --
 ---
|\__
 (:__)(
|/

 Soluciones Geoinformáticas Libres
 http://geotux.tuxfamily.org/
 http://twitter.com/GeoTux2





-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Help cutter raster

2012-08-28 Thread Germán Carrillo
Believe it or not, names in 'Spanish' are: Ráster-Extraction-Clipper :)
(Ráster-Extracción-Cortador/Cortar)

2012/8/28 Etienne Tourigny etourigny@gmail.com

 make sure gdaltools plugins is enabled (plugins-Manage Plugins), then
 go to Raster-Extraction-clipper. Not sure what the names are in
 español though.

 On Tue, Aug 28, 2012 at 12:37 PM, lorena Coelho
 lorena.r.coe...@gmail.com wrote:
  Hello,
  I am a magister student in Uruguay. I'm working with QGIS. I can not cut
 a
  raster mask,  can someone help. What is the complement need? I'm using
  Quantum GIS 1.8.0 Lisbon
  thanks
 
 
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Help cutter raster

2012-08-28 Thread Germán Carrillo
Or post your question in Spanish here, I know there is some people who
would understand, and  even if they are not able to solve your doubts, they
would help you rephrasing your question in English.

2012/8/28 Etienne Tourigny etourigny@gmail.com

 Hi I'm sorry but I don't understand your question... you mean that it
 doesn't work if the raster is a mask?

 By the way, there is a Spanish list at osgeo, although not specific to qgis

 http://lists.osgeo.org/pipermail/spanish/

 Etienne

 On Tue, Aug 28, 2012 at 3:39 PM, lorena Coelho
 lorena.r.coe...@gmail.com wrote:
  Hi, thanks for your quick response. The add gdaltools what I have on. In
  fact cut a raster if I can, so I can not cut the raster is a mask. That
 is
  asking that the court limit is determined mask. Thanks. Lorena
 
 
  2012/8/28 Germán Carrillo carrillo.ger...@gmail.com
 
  Believe it or not, names in 'Spanish' are: Ráster-Extraction-Clipper
 :)
  (Ráster-Extracción-Cortador/Cortar)
 
 
  2012/8/28 Etienne Tourigny etourigny@gmail.com
 
  make sure gdaltools plugins is enabled (plugins-Manage Plugins), then
  go to Raster-Extraction-clipper. Not sure what the names are in
  español though.
 
  On Tue, Aug 28, 2012 at 12:37 PM, lorena Coelho
  lorena.r.coe...@gmail.com wrote:
   Hello,
   I am a magister student in Uruguay. I'm working with QGIS. I can not
   cut a
   raster mask,  can someone help. What is the complement need? I'm
 using
   Quantum GIS 1.8.0 Lisbon
   thanks
  
  
   ___
   Qgis-user mailing list
   Qgis-user@lists.osgeo.org
   http://lists.osgeo.org/mailman/listinfo/qgis-user
  
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 
 
 
  --
  ---
 |\__
  (:__)(
 |/
 
  Soluciones Geoinformáticas Libres
  http://geotux.tuxfamily.org/
  http://twitter.com/GeoTux2
 
 




-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] loading Web Map Tile Service in QGIS

2012-08-23 Thread Germán Carrillo
... and WPS.

2012/8/23 Yves Jacolin (free) yjaco...@free.fr

 Hello,

 I am not sure that QGIS support TMS service. Only WFS, WMS, WMS-C and WMTS
 services.

 Regards,

 Y.
 Le 23/08/2012 12:47, maning sambale a écrit :

  Hi,

 I'm trying to load MODIS Web Map Tile Service [0] in QGIS.  Using the
 TWMS version 1.1.1 spec, it can read the capabilities request via the
 Add WMS Layer dialog.  But I can't get any layer loaded, I get this
 error:

 Response: ?xml version='1.0' encoding=UTF-8 standalone=no ?
 !DOCTYPE ServiceExceptionReport SYSTEM
 http://wms.jpl.nasa.gov/**exception_1_1_1.dtdhttp://wms.jpl.nasa.gov/exception_1_1_1.dtd
 ServiceExceptionReport version=1.1.1
ServiceException
  Cannot read data files
/ServiceException
 /ServiceExceptionReport



 [0] http://earthdata.nasa.gov/**wiki/main/index.php/Global_**
 Imagery_Browse_Serviceshttp://earthdata.nasa.gov/wiki/main/index.php/Global_Imagery_Browse_Services
 [1] http://earthdata.nasa.gov/**wiki/main/index.php/GIBS_**
 Access_Methods#Service_**Endpointshttp://earthdata.nasa.gov/wiki/main/index.php/GIBS_Access_Methods#Service_Endpoints



 --
 Yves Jacolin

 __**_
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/qgis-userhttp://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] sobre vector resumen

2012-08-16 Thread Germán Carrillo
*** Español ***

¿Eduardo, las geometrías se mantienen en cada capa? ¿Lo único que cambia es
el área sembrada? Si es así, sigue estos pasos para conseguir lo que
quieres:

1. Has una copia de una de las capas, esta será la capa que vas a tomar
como resumen.
2. Podrías borrarle el campo area sembrada 1 que te ha quedado en la capa
de tal forma que quedes solamente con un id y la región.
3. Has un Join (desde el diálogo Propiesdades) tomando como base un
identificador común. Por ej. el id de la región. Cuando termines, tendrás
todos los campos area sembrada X en la capa resumen.
4. Abre la tabla de atributos de la capa resumen y activa la edición.
5. Abre el Field Calculator, dile que quieres un nuevo campo area
sembrada total de tipo numérico (supongo doble) y escribe algo como esto
en la expresión: area sembrada 1 + area sembrada 2 + ... + area
sembrada 12
6. Haces click en OK, cierras la edición, cierras la tabla de atributos y
quitas los Join creados (desde el diálogo Propiesdades).
6. Abre de nuevo la tabla de atributos de la capa resumen y listo, ahora
tienes tu area sembrada total.

Espero sirva. Saludos.

*** English ***

If I got it right, what Eduardo needs is to use the field calculator across
layers.

Don't know if there is a more direct solution, but I attempted it via Join
+ Field Calculator and it works if fields don't share the name, as it seems
to be the case here: area sembrada 1, area sembrada 2 ...

But, what if area fields have the same name in all layers? It seems that
in such a case you cannot use the field calculator because there is no way
to distinguish which fields belong to which layer even after a Join. Is it
true or am I missing something? It would be handy to have something like
layer1@area + layer2@area or layer1.area + layer2.area as valid
expressions for the field calculator.

Regards,

Germán

El 15 de agosto de 2012 23:33, Eduardo Arévalo eareval...@gmail.comescribió:

  en todos lo dbfs hay una columna en donde se ha registrado el total del
 area sembrada del mes .
 lo que quiero hacer es tener un nuevo dbf en donde se tenga la suma de
 todas las areas sembradas.


 2012/8/15 Alfonso Flaquer alfonsofla...@gmail.com

 Eduardo, no comprendo claramente el problema, estas buscando hacer una
 suma de áreas por región?
 Saludos
 Correo enviado utilizando el servicio BlackBerry de Entel

 -Original Message-
 From: Eduardo Arévalo eareval...@gmail.com
 Sender: qgis-user-boun...@lists.osgeo.org
 Date: Wed, 15 Aug 2012 15:31:29
 To: qgis-user@lists.osgeo.org
 Subject: [Qgis-user] sobre vector resumen

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



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




-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Is there a limit of loaded files in QGis 1.8 ?

2012-07-19 Thread Germán Carrillo
Hi,

indeed, it is an operating system (OS) restriction. In my GNU/Linux the
limit is 1024 by default, but you are able to change it. You would need to
search how to change it on your OS. See [1].

Regards,

Germán
---
[1] http://hub.qgis.org/issues/4013

2012/7/19 Juan M. Bernales jm_berna...@hotmail.com

  Do you really need that bunch of files in one project?
 I am a cartographer, geologist and i work in minning too, and i deal with
 rasters (DEM's, LANDSAT IMAGES, EPIPOLAR, SCAN'S, ETC), vector (poligons,
 lines, points), DXF'S files and other, GPS files (*.gpx), wms
 services, databases, etc etc, and i have never load that many files in my
 projects.

 *SALUDOS*
 *JUAN M. BERNALES*


  From: lorenzo.more...@enea.it
  Date: Thu, 19 Jul 2012 01:33:21 +0200
  To: qgis-user@lists.osgeo.org
  Subject: [Qgis-user] Is there a limit of loaded files in QGis 1.8 ?

 
  Hi all
 
  I have two big projects with many files, shape, geotiff and dxf files.
 
  In one project after loading the file number 64 it is impossible to load
 other files: I have always the error: This file is not recognized. I have
 to delete some files and I can load other files.
 
  In another big project i have several hundreds small files. After the
 number 220 I have the error. I have to delete some files and I can load
 other files until the limit.
 
 
  This is a big problem because there are projects with many files and I
 don't know the limit of QGis.
  It is a memory limit, I think.
 
  Is it possible to fix this problem?
 
  Thank in advance
  Lorenzo
 
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org
  http://lists.osgeo.org/mailman/listinfo/qgis-user

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


-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Is there a limit of loaded files in QGis 1.8 ?

2012-07-19 Thread Germán Carrillo
For those who want to try things out, in a Unix shell type:

lsof -p 10371

where 10371 is the QGIS process id (so, adjust it).

Each time you open a file, enter the same command and you'll see how many
files QGIS is opening.

Regards,

Germán

2012/7/19 maning sambale emmanuel.samb...@gmail.com

 would loading the shapefile as zip help?
 On Jul 19, 2012 4:10 PM, Giovanni Manghi giovanni.man...@faunalia.pt
 wrote:

 On Thu, 2012-07-19 at 09:15 +0200, Germán Carrillo wrote:
  Hi,
 
  indeed, it is an operating system (OS) restriction. In my GNU/Linux
  the limit is 1024 by default, but you are able to change it. You would
  need to search how to change it on your OS. See [1].

 yes, it is a OS limit and remember also that when opening a shapefile
 you are opening at least 3 files...

 cheers

 -- Giovanni --

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




-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
http://twitter.com/GeoTux2
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Spatial adjustment

2012-03-16 Thread Germán Carrillo
Hi Robin,

you will be likely interested in the qgsAffine plugin.

Regards,

Germán

2012/3/16 Zirneklitis e...@lanet.lv

 If both of the shape file use the same CRS, make a copy of the *.prj file.

 K.

 Robin Tolochko wrote:

 ..

 I have two vector shapefiles - one has a projection and the other
 doesn't. I want to georeference (spatially adjust?) the one without a
 projection to the one that does. Any thoughts on how to do this?
 ..

 __**_
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/qgis-userhttp://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] SQL console for the pgAdmin plugin PostGIS viewer

2012-02-07 Thread Germán Carrillo
Dear qgis users and devs,

this is just to inform you about the addition of an SQL console to the
pgAdmin plugin called PostGIS viewer [1]. It allows you to filter your
PostGIS data as well as run spatial functions visualizing the results.

The SQL console was taken from the QGIS plugin Fast SQL Layer by Pablo T.
Carreira.

I hope you enjoy it.

Regards,

Germán


[1]
http://geotux.tuxfamily.org/index.php/en/component/k2/item/293-consola-sql-para-plugin-pgadmin-postgis-viewer

-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] open a list of shapefiles directly into a group

2012-01-07 Thread Germán Carrillo
That's right!

Actually, I was thinking about a Python-based approach.

El 7 de enero de 2012 12:06, Alexander Bruy alexander.b...@gmail.comescribió:

 Loading shapefiles into group works for me in master.
 You need to check Add new layers to selected or
 current group in QGIS options

 2012/1/7 Germán Carrillo carrillo.ger...@gmail.com:
  Hi Michele,
 
  this has always been an issue. I did it for the v.1.5 but there were some
  changes in the table of contents (legend) and it doesn't work anymore in
  recent versions.
 
  So, if it somehow helps you, you can have a look at the Load Them All
  plug-in [1] with QGIS 1.5. You can get it installed from the QGIS
  repository.

 --
 Alexander Bruy


-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] warper for vector layers?

2011-10-25 Thread Germán Carrillo
Hi Agustin,

if I understood well, you would need the Affine transformation plugin,
anyway, the current implementation ask you to include the transformation
parameters, so you need to do some calculations on your own before.

Regards,

Germán

2011/10/25 G. Allegri gioha...@gmail.com

 I don't think Qgis has vector warping tools. The Georeferencer plugin
 manages only raster data, and for its polynomial transformations based on
 GCPs use GDAL directly, which itself implements warping for rasters only.

 I think that writing a warping plugin for vectors woudn't be too hard, but
 it's not what you were looking for ;)

 giovanni


 2011/10/25 Agustin Lobo alobolis...@gmail.com

 Hi!

 We have a vector layer that has been digitized over a raster with
 wrong settings (wrong pixel resolution).
 Is there any way to correct the geometry of the vector layer by
 defining control points with the new coordinates and apply
 a warping in qgis?

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



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




-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] pyqgis - adding an ogr vector layer and setting where clause

2011-10-10 Thread Germán Carrillo
Hi Duarte,

have you tried this?

 vLayer.setSubsetString( id = 5 )

where vLayer is your vector layer object and id is one of the field names in
the table.

Regards,

Germán


2011/10/10 Duarte Carreira dcarre...@edia.pt

 Hi there.

 ** **

 I would like to add a layer from an ogr source, and apply a –where option.
 How can this be done in QGIS through the python API?

 ** **

 I have seen examples of setting a uri string and using addvectorlayer. But
 this doesn’t set a query.

 ** **

 Thanks,

 Duarte

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




-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] PostGIS viewer -PgAdmin plugin

2011-03-05 Thread Germán Carrillo
Hi all,

I have added some functionalities to the plugin [1], now it:

* Has PostGIS rasters (WKTRaster) support (Based on WKTRaster QGIS plugin.)
* Has a layer list widget displaying a number of layer properties.

On the other hand, the antialiasing feature has been enabled (according to
the thread opened in the dev mailing-list) and the map units detection has
been checked and fixed (thanks Ivan).

Regards,

Germán

---
[1]
http://geotux.tuxfamily.org/index.php?option=com_myblogtask=viewid=277Itemid=59lang=en


2011/2/25 Germán Carrillo carrillo.ger...@gmail.com

 Hi Ivan,

 I am going to check those 2 points, I had not checked the linear units.

 Actually, I started with the first version of your viewer and I did not
 realize the 'Layer properties' until it was too late. It makes sense to
 display some properties for a layer, so, sure!

 Regards,

 Germán

 2011/2/25 Ivan Mincik ivan.min...@gmail.com

 I have uploaded Your version to Github [1] under 'multilayer' branch.
 Do You have any plans to recreate bottom 'Layer properties' window to
 support multiple layers ? If this would be done, I will completely
 turn to Your version.

 Thanks,
 Ivan


 [1] - https://github.com/imincik/QgsPostGIS-Viewer/tree/multilayer
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




 --
 ---
   |\__
 (:__)(
   |/

 Soluciones Geoinformáticas Libres
 http://geotux.tuxfamily.org/




-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] PostGIS viewer -PgAdmin plugin

2011-02-25 Thread Germán Carrillo
Hi Ivan,

I am going to check those 2 points, I had not checked the linear units.

Actually, I started with the first version of your viewer and I did not
realize the 'Layer properties' until it was too late. It makes sense to
display some properties for a layer, so, sure!

Regards,

Germán

2011/2/25 Ivan Mincik ivan.min...@gmail.com

 I have uploaded Your version to Github [1] under 'multilayer' branch.
 Do You have any plans to recreate bottom 'Layer properties' window to
 support multiple layers ? If this would be done, I will completely
 turn to Your version.

 Thanks,
 Ivan


 [1] - https://github.com/imincik/QgsPostGIS-Viewer/tree/multilayer
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] PostGIS viewer -PgAdmin plugin

2011-02-24 Thread Germán Carrillo
Hi Ivan,

thanks for your application. I have extended your pgAdmin plugin [1]. Now,
every new layer will be added to the same instance of the application
allowing to display more than one layer at the same time. Aditionally, the
scale and cursor coordinates are displayed providing some useful
information.

Regards,

Germán
--
[1]
http://geotux.tuxfamily.org/index.php?option=com_myblogtask=viewid=275Itemid=59lang=en

2010/11/14 Ivan Mincik ivan.min...@gista.sk

  Hi,
 I have created small standalone QGIS app, which I use as PgAdmin plugin to
 visualize my PostGIS layers.

 If anybody interested, You can download it here:
 https://github.com/imincik/QgsPostGIS-Viewer
 How to use it, look for __doc__ string at the very beginning of the file or
 run it without any arguments.

  --
 Ivan Mincik, Gista s.r.o.


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




-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Announcing Load Them All plugin

2010-10-20 Thread Germán Carrillo
Hi Paolo,

I just uploaded the plugin to the official repo, but I realized the author
name is not there (in the plugin installer). Do you know what could be
happening?

Regards,

Germán

2010/10/19 Paolo Cavallini cavall...@faunalia.it

 Il 19/10/2010 20:59, Germán Carrillo ha scritto:

  Sure Paolo and Giovanni, I'm going to do that at night.


 Thanks!

 --
 http://www.faunalia.it/pc




-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Announcing Load Them All plugin

2010-10-19 Thread Germán Carrillo
Sure Paolo and Giovanni, I'm going to do that at night.

Regards,

Germán

On Tue, Oct 19, 2010 at 2:48 AM, Giovanni Manghi
giovanni.man...@gmail.comwrote:


  Thanks a lot Germán. Any special reason not to put in a standard repo?

 +1

 cheers!

 -- Giovanni --

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


-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Announcing Load Them All plugin

2010-10-18 Thread Germán Carrillo
I'm pleased to announce the Load Them All plugin.

It's a simple plugin that allows you to load at the same time a number of
layers stored in a directory structure, based on a variety of filters you
can customize.

You may use an alphanumeric filter or a type (geometry or raster) filter for
selecting files you want to load.
Additionaly you can get the layers organized into groups.

Further information:
http://geotux.tuxfamily.org/index.php?option=com_myblogtask=viewid=264Itemid=59lang=en
Download the plugin:
http://downloads.tuxfamily.org/tuxgis/geoblogs/plugin_LoadThemAll//loadthemall.zip

Regards,

Germán

-- 
---
   |\__
(:__)(
   |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] is it possible to group rasters?

2010-01-15 Thread Germán Carrillo
Hi M.E.Dodd.

You can use the MultiQml plugin from the GIS-Lab Repository.


Germán

2010/1/15 Giovanni Manghi giovanni.man...@gmail.com

 Hi,


 On Fri, 2010-01-15 at 09:26 +, M.E.Dodd wrote:
  Is it possible to group together raster tiles so that you can set the
 properties of all of them together rather than laboriously having to go
 through to each one individually to set the properties?


 try creating a virtual raster. You can do now using the gdal tools
 plugin, then

 raster - build virtual catalog


 cheers

 -- Giovanni --

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

-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: QgsVectorLayer: SQL query

2009-12-02 Thread Germán Carrillo
Hi Pietro.

I guess you can do that only with PostGIS layers (I don't know if SpatiaLite
layers too). Just open the layer properties window, go to the General tab,
go to 'Query builder' and set a query.

Regards.

Germán

2009/12/2 Pietro Panzeri pietro.panz...@treuropa.com

 Thanks Anita,

 I have installed Find by Attribute plug-in and it's perfect but how could
 I show selected features only?

 Pietro

 On Tue, Dec 1, 2009 at 4:22 PM, Anita Graser anitagra...@gmx.at wrote:

 Hi Pietro,

 You can install Find by Attribute plug-in, it was designed to avoid
 opening Attribute Table.

 Best wishes,
 Anita


 --
 Erstellt mit Operas revolutionärem E-Mail-Modul:
 http://www.opera.com/mail/




 --
 Pietro Panzeri

 Software Development Manager

 Tele-Rilevamento Europa - T.R.E. srl
 Via Vittoria Colonna, 7
 20149 Milano – Italia
 Tel.: +39.02.4343.121 - Fax: +39.02.4343.1230
  pietro.panz...@treuropa.com - www.treuropa.com

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

 --
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: QgsVectorLayer: SQL query

2009-12-02 Thread Germán Carrillo
Great!

El 2 de diciembre de 2009 18:04, Alessandro Sarretta 
alessandro.sarre...@inwind.it escribió:

 Hi all,


 Germán Carrillo wrote:

 Hi Pietro.

 I guess you can do that only with PostGIS layers (I don't know if
 SpatiaLite layers too). Just open the layer properties window, go to the
 General tab, go to 'Query builder' and set a query.

 Regards.

 Germán


 using last QGIS 1.4.0 trunk you can do it also for shapefiles!
 Ale

-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] ImportError: No module named qgis.core

2009-10-13 Thread Germán Carrillo
Hi Stefan, maybe installing python-qgis?

Regards.

Germán

2009/10/13 Stefan m...@z107.de

 Hi,

 I just upgraded by qgis to version 1.3 by building qgis from source.

 After the start, qgis tells me, that PyQGIS could not be loaded and the
 python support is deactivated:

 --
 Couldn't load PyQGIS.
 Python support will be disabled.

 Traceback (most recent call last):
 File , line 1, in
 ImportError: No module named qgis.core

 Python version:
 2.5.2 (r252:60911, Jan  4 2009, 18:00:02)
 [GCC 4.3.2]

 Python path:
 ['/python', '/home/smu/.qgis//python/plugins', '/python/plugins',
 '/usr/lib/python2.5/site-packages/bpython-0.9.4-py2.5.egg',
 '/usr/lib/python2.5/site-packages/Pygments-1.0-py2.5.egg',
 '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2',
 '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload',
 '/usr/local/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages/Numeric',
 '/usr/lib/python2.5/site-packages/PIL',
 '/var/lib/python-support/python2.5',
 '/var/lib/python-support/python2.5/gtk-2.0']
 --

 But python qt4 is installed (python-qt4, python-qt4-common,
 python-qt4-dbus, python-qt4-dev) My system is debian lenny.


 Any ideas how to fix this?

 thanks,
  stefan
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] HELP!! DLL not found when importing qgis.core and qgis.gui

2009-10-08 Thread Germán Carrillo
Hi Maria Angelica.

Maybe you must post your question to developers-list. Anyway, I'll try to
answer you:

After a lot of problems like that you comment to us, I run the QGis
standalone installer [1], set the installation dir to c:\qgis and put in a
.bat file the next three lines:

set PYTHONPATH=c:\qgis\python
set PATH=c:\qgis\bin;%PATH%
set PATH=c:\Python25;%PATH%

After run the .bat everything work well with PyQGIS. Can you try this?

--

I guess you are from Latin America like me. So, please visit GeoTux [2],
there are some resources about PyQGIS. Also, if you like, you are invited to
contribute us :)

Regards.


Germán Carrillo


[1] http://download.osgeo.org/qgis/win32/QGIS-1.3.0-3-No-GrassSetup.exe
[2] http://geotux.tuxfamily.org



2009/10/8 Echavarria Gregory, Maria Angelica m.echavarriagreg...@umiami.edu



 Dear QGIS group,

 I have my application designed in PyQt and need to add a Qgis canvas to it.
 I followed the user guide ch. 12 to add things and convert my app into a
 PyQGIS application. Everything used to work fine in my PyQt4 and
 PyWin32 installation. Last night I installed the binaries of QGIS, then
 added the recommended environment variables (PATH, PYTHONPATH, QGISHOME) to
 my system, and now this is what my Pythonwin editor complaints about:

  import qgis
  import PyQt4
  from qgis.core import *
 Traceback (most recent call last):
  File interactive input, line 1, in module
 ImportError: DLL load failed: The specified module could not be found.
  from qgis.gui import *
 Traceback (most recent call last):
  File interactive input, line 1, in module
 ImportError: DLL load failed: The specified module could not be found.
  from PyQt4.QtCore import *
 Traceback (most recent call last):
  File interactive input, line 1, in module
 ImportError: DLL load failed: The specified procedure could not be found.
 

 I think the DLL existed before the QGIS installation because the
 PyQt4.QtCore install used to work perfect!!. Also seems to be the exact same
 DLL what is missing in both cases (PyQt and QGIS imports). Could someone
 give me a hand with this? I'M STUCKED!!! If you happen to know which is the
 missing DLL, could you please email it to me along with the location?

 Maybe it has something to do with the environmet variables?
 Could it be because Python is also inside the binary distribution and I'm
 using my usual 'alone' installation? Or is it Windows?

 Thanks very much,
 Angelica

 M. Angelica Echavarria-Gregory,
 Ph.D Candidate
 University of Miami
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Selecting features in attribute table using query builder

2009-10-01 Thread Germán Carrillo
Hi Zane, you can use the Table Manager python plugin to rename columns.

Germán

2009/10/1 Zane Selvans z...@amateurearthling.org

  I'm trying to select a subset of the features in a layer based on some
  values in their attribute table, and I keep getting the following
  error:
 
  syntax error, unexpected COLUMN_REF
 
  The where clause I'm using is:
 
  2_LIN_ID  1_LIN_ID
 
  Just a shot in the dark: Can column names begin with a digit? You might
 need
  to change to LIN_ID_1 and LIN_ID_2

 I had this thought too, but I didn't name the columns.  They were
 automatically generated when I used the line intersections tool to
 create the points shapefile from my digitized linear features.

 I *can* do a select based on another column though (with a non-numeric
 first character), so maybe this is the problem, and a bug in the Line
 Intersections tool?

 I don't seem to be able to re-name the columns in the attribute table
 unfortunately (I can see them and their types listed in the
 properties dialog, but can't change them, even when the layer is
 being edited).  I tried adding an alias for each of them (LIN_ID_1
 and LIN_ID_2) but they don't seem to stick: when I open up the
 attribute table again, the aliases don't show up, and when I open up
 the attributes under properties again, the aliases aren't there any
 more (despite having saved the layer immediately after adding them).

 So... does anyone have a workaround here?  Can I somehow re-name these
 columns, or create new columns a copy their content in?  Or force the
 Line Intersections tool to use particular names for its output
 columns?

 Thanks,
 Zane

 --
 Zane A. Selvans
 Amateur Earthling
 http://zaneselvans.org
 +1 303 815 6866
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] floating values crash qgis

2009-08-07 Thread Germán Carrillo
Hi Lionel, I was searching on QGis trac, this issue is already indentified
and it is caused by the gdal version.

You have to install QGis compiled against gdal 1.6.

See the ticket: http://trac.osgeo.org/qgis/ticket/1485

Regards.

Germán

El 31 de julio de 2009 09:37, Germán Carrillo
carrillo.ger...@gmail.comescribió:

 I get the same.

 2009/7/31 Lionel Roubeyrie lroubey...@limair.asso.fr

 Hi all,
 I try to apply colors to polygons based on a floating attribute
 (symbologyunique value or via the render layer plugin) but qgis (1.0.2 and
 1.1.0) crashes immediately. Is it a bug or is there something special to do
 (qgis installed  from PPA)?
 thanks

 --
 Lionel Roubeyrie - lroubey...@limair.asso.fr
 Chargé d'études et de maintenance
 LIMAIR - la Surveillance de l'Air en Limousin
 http://www.limair.asso.fr



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




 --
 ---
   |\__
 (:__)(
   |/

 Soluciones Geoinformáticas Libres
 http://geotux.tuxfamily.org/

 --
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] floating values crash qgis

2009-07-31 Thread Germán Carrillo
I get the same.

2009/7/31 Lionel Roubeyrie lroubey...@limair.asso.fr

 Hi all,
 I try to apply colors to polygons based on a floating attribute
 (symbologyunique value or via the render layer plugin) but qgis (1.0.2 and
 1.1.0) crashes immediately. Is it a bug or is there something special to do
 (qgis installed  from PPA)?
 thanks

 --
 Lionel Roubeyrie - lroubey...@limair.asso.fr
 Chargé d'études et de maintenance
 LIMAIR - la Surveillance de l'Air en Limousin
 http://www.limair.asso.fr



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




-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] python-qgis 1.1 in OSGeo4W

2009-06-01 Thread Germán Carrillo
Hi.
Is there a plan to put the python-qgis 1.1 package in OSGeo4W?

Thanks in advance.

Germán
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] python-qgis 1.1 in OSGeo4W

2009-06-01 Thread Germán Carrillo
Hi Jürgen.

In OSGeo4W when I select the QGis Unstable release (1.1), the 1.0.2.1
python-qgis version is automatically selected on libs tree. So I guess the
python-qgis 1.1 will not install.

I need the QgsMapTip available in PyQGIS 1.1 but not in 1.0.

Thanks.


2009/6/1 Jürgen E. j...@norbit.de

 Hi Germán

 On Mon, 01. Jun 2009 at 09:16:24 -0500, Germán Carrillo wrote:
  Is there a plan to put the python-qgis 1.1 package in OSGeo4W?

 No, the qgis1.1 package already contains python support.


 Jürgen


 --
 Jürgen E. Fischer norBIT GmbH   Tel. +49-4931-918175-20
 Dipl.-Inf. (FH)   Rheinstraße 13Fax. +49-4931-918175-50
 Software Engineer D-26506 Norden
 http://www.norbit.de

 --
 norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
 Rheinstrasse 13, 26506 Norden
 GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

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




-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] qtsql python

2009-05-21 Thread Germán Carrillo
Try this:

   sudo apt-get install python-qt4-sql libqt4-sql-psql

This will add QtSql and support for PostgreSQL.

2009/5/21 Jan Willem van der Lichte jwgvanderlic...@gmail.com

 Hi list,

 Some plugins don't work, they can't find the module qtsql
 My os is ubuntu 9.04 Below is the message
 Any ideas? BTW i'm new to ubuntu and qgis.
 Thanks


 Kan plugin niet laden PostGisTools door een fout bij het aanroepen van de
 classFactory()-methode

 Traceback (most recent call last):
   File , line 1, in
   File /home/limmyjw/.qgis//python/plugins/PostGisTools/__init__.py, line
 32, in classFactory
 from PostGisTools import PostGisTools
   File /home/limmyjw/.qgis//python/plugins/PostGisTools/PostGisTools.py,
 line 24, in
 from PyQt4.QtSql import *
 ImportError: No module named QtSql

 Python versie:
 2.5.4 (r254:67916, Apr  4 2009, 18:12:40)
 [GCC 4.3.3]

 Python pad:
 ['/usr/share/qgis/python', '/home/limmyjw/.qgis//python/plugins',
 '/usr/share/qgis/python/plugins', '/usr/lib/python2.5',
 '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
 '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/PIL',
 '/usr/lib/python2.5/site-packages/gst-0.10',
 '/var/lib/python-support/python2.5',
 '/usr/lib/python2.5/site-packages/gtk-2.0',
 '/var/lib/python-support/python2.5/gtk-2.0', '~/.qgis/python',
 '/home/limmyjw/.qgis/python/plugins/fTools/tools']

 --
 Met groet,
 Limmyjw



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




-- 
---
  |\__
(:__)(
  |/

Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user