[QGIS-Developer] RES: QField 2.0 is here

2022-04-05 Thread Jorge Almerio via QGIS-Developer
GOOD NEWS!

 

Congratulations! Good Job!

 

Best regards,

 

Jorge Almerio

 

De: QGIS-Developer  Em nome de Marco 
Bernasocchi via QGIS-Developer
Enviada em: terça-feira, 5 de abril de 2022 03:30
Para: qgis-developer@lists.osgeo.org; qgis-u...@lists.osgeo.org
Assunto: [QGIS-Developer] QField 2.0 is here

 

Dear QGIS community,

it feels like yesterday when in 2011 my inbox received the following text:
"Congratulations! Your proposal “QGIS Mobile” as submitted to “OSGeo – Open 
Source Geospatial Foundation” has been accepted for Google Summer of Code 
2011." [0]

Back then my idea was already pretty clear, create a standard version of QGIS 
that would run on android devices and later on replace the UI with something 
more mobile friendly. 
QGIS mobile was quickly born and thanks to the help of many of you by the end 
of the GSoC I had it running. 
Years and commits went by, and out of the experiment QGIS mobile a new star was 
born in 2015: QField [1]

 

What followed was pure pleasure, a fantastic community response and a huge 
uptaking of the handy fieldwork app that now counts almost half a million 
downloads and is active on roughly 150K devices monthly.

 

That is why, it is with a heartfelt thankyou that I'd like to announce the 
official availability of QField 2.0

 

If you are interested in more details on the release, here you'll find all 
information on our latest blogpost [2]

Cheers Marco

 

[0] https://www.opengis.ch/2011/04/25/gsoc-2011-im-in/
[1] https://www.opengis.ch/2015/01/28/qgis-mobile-is-now-qfield/

[2] https://www.opengis.ch/2022/04/05/qfield-2-0-is-here/

-- 

Marco Bernasocchi
OPENGIS.ch CEO
QGIS.org Chair
OSGeo.org Board of directors

 

Find a meeting time on my calendar <https://calendly.com/mbernasocchi/30min> !
 <mailto:ma...@opengis.ch> ma...@opengis.ch
+41 (0)79 467 24 70  


 <https://opengis.ch/> 

 

 <https://qfield.org/get> 

QFIELD 2.0 IS HERE! - Hold the power of QGIS in your hand - learn more 
<https://www.opengis.ch/2022/04/05/qfield-2-0-is-here/>  - get it now 
<https://qfield.org/get> 

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


[QGIS-Developer] RES: QgsMeshLayer object has no attribute triangularMesh

2020-07-01 Thread Jorge Almerio
Hi,

 

Very good information!

Thank you, very much!

 

Jorgealmerio

 

De: Vincent Cloarec [mailto:vcloa...@gmail.com] 
Enviada em: terça-feira, 30 de junho de 2020 18:24
Para: Jorge Almerio 
Cc: qgis-developer 
Assunto: Re: [QGIS-Developer] QgsMeshLayer object has no attribute 
triangularMesh

 

Hi,

 

The triangular mesh of mesh layer is not accessible from the python API, only 
from the C++ API.

 

So for now, not possible to access directly to the triangular mesh from Python. 
It is possible to acces ro the native from  the provider, but it will not be in 
the map coordinates if different from the data : 

https://qgis.org/pyqgis/master/core/QgsMeshDataSourceInterface.html#module-QgsMeshDataSourceInterface

 

Vincent

 

Le mar. 30 juin 2020 à 12:23, Jorge Almerio mailto:jorgealme...@yahoo.com.br> > a écrit :

Hi devs,

 

I still can not get the triangular mesh from a Mesh Layer using Qgis version 
3.14.0-Pi.

The triangularMesh() attribute is present in the API documentation

https://qgis.org/api/classQgsMeshLayer.html#ae5d4ae367cfbd2abf6920d26701f0143. 

But I get an Error:

AttributeError: 'QgsMeshLayer' object has no attribute 'triangularMesh'

 

 

Is it possible to return the triangular mesh? I would like to use the 
triangular mesh for make an exact profile/cross section from the mesh using a 
polyline. The others plugins, like Crayfish and Profile tools does this profile 
using a defined interval offset, so it's accuracy depends on this interval.

 

My code below returns

AttributeError: 'QgsMeshLayer' object has no attribute 'triangularMesh'

:

proj = QgsProject.instance()

mdtLyr = proj.mapLayersByName("RA04_Surface")[0]

mdtLyr.updateTriangularMesh()

triang = mdtLyr.triangularMesh()

 

Best regards,

 

Jorge Almerio

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

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

[QGIS-Developer] QgsMeshLayer object has no attribute triangularMesh

2020-06-30 Thread Jorge Almerio
Hi devs,

 

I still can not get the triangular mesh from a Mesh Layer using Qgis version
3.14.0-Pi.

The triangularMesh() attribute is present in the API documentation

https://qgis.org/api/classQgsMeshLayer.html#ae5d4ae367cfbd2abf6920d26701f014
3. 

But I get an Error:

AttributeError: 'QgsMeshLayer' object has no attribute 'triangularMesh'

 

 

Is it possible to return the triangular mesh? I would like to use the
triangular mesh for make an exact profile/cross section from the mesh using
a polyline. The others plugins, like Crayfish and Profile tools does this
profile using a defined interval offset, so it's accuracy depends on this
interval.

 

My code below returns

AttributeError: 'QgsMeshLayer' object has no attribute 'triangularMesh'

:

proj = QgsProject.instance()

mdtLyr = proj.mapLayersByName("RA04_Surface")[0]

mdtLyr.updateTriangularMesh()

triang = mdtLyr.triangularMesh()

 

Best regards,

 

Jorge Almerio

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

[QGIS-Developer] QgsProcessing Parameter Multiple Type

2020-06-16 Thread Jorge Almerio
Hi devs,

 

How to create a input parameter that accepts multiple type layers, i.e:
Raster or Mesh for example.

 

Thanks,

 

Jorge Almerio

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

[QGIS-Developer] RES: QGIS / FreeCAD interoperability...

2020-05-11 Thread Jorge Almerio
Hi all,

 

It would be wonderful!!!

 

Excited Waiting!

 

Jorge Almerio

 

De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de 
Régis Haubourg
Enviada em: Monday, May 11, 2020 5:00 AM
Para: Luigi Pirelli 
Cc: qgis-developer 
Assunto: Re: [QGIS-Developer] QGIS / FreeCAD interoperability...

 

Hi Joel, 

 

Just a note on the QGIS-CAD-BIM "converging" roadmap everyone dreams about. 

What we see here is that many organisation up to now where using CAD software 
to manage city maps and assets management, where GIS - as a true database 
system - is far more accurate. 

We even see public entity allowing public grant only if data are transmitted in 
GIS exchange format in the end. So we see many CAD users switching to GIS - 
wether they like it or not. 

 

As a consequence, and thanks to funders who understand that free software 
allows to be active contributors, QGIS as a project is influenced a lot by CAD 
needs, at least for 2D editing.

We have some construction tools allowing to play with angles, parallels, build 
some inference temporary lines, and a lot of new shape editing tools. 

We still miss a lot of what user require, such as interactive snapping for 
instance or advanced 3D computation libraries. We also reach a point where 
geospatial standards draw a line with CAD world, for instance handling spline 
curves is at the limits. 

 

Concerning 3D and BIM buzz, we have a lot of questions from users, and 
sometimes even from national mapping agencies. And up to now, 3D plans for QGIS 
are focused on viewing datasets mainly.

We miss a lot 3D editing capabilities and FreeCAD is in my opinion the best 
candidate to provide an open source solution for this. 

 

The first bridge would be to ensure that FreeCAD deals with the main 
interchange standards to be able to edit BIM data. That would probably be 
cityGML and all the standards supported by the OGC, plus the main de facto 
standards like STL. I think we already have a challenge here to deals with 
those large datasets in reading and editing.  

 

FreeCad being able to edit those, we could already answer to the 100% open 
source BIM use case. Then an interoperability at API level between FreeCad and 
QGIS to easily open a dataset or a specific feature in QGIS<>Freecad would rock!

I would love as a user be able to view my city in 2D or 3D with QGIS, click on 
a building, open it in FreeCAD, update it, go back to QGIS, refresh, done.

 

Hope it helps

 

Best regards

 

 

 

 

Le dim. 10 mai 2020 à 23:24, Luigi Pirelli mailto:lui...@gmail.com> > a écrit :

Hi Joel

 

Since years ago a lot of new features can support a better integration. I did a 
rough investigation about integration and stopped due to the fact that data 
model were (or is) too different to imagine an integration.
BTW probably now is more simple (at least from the qgis point of view) thanks 
to the possibility to bridge different data models using a python data provider 
[1] [2].

I would give a try/look.

 

cheers


 

Luigi Pirelli

[1] https://github.com/qgis/QGIS-Enhancement-Proposals/issues/122

[2] https://www.itopen.it/qgis-vector-data-provider-python/

**
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Book: Mastering QGIS3 - 3rd Edition 
<https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition>
 

* Hire a team: http://www.qcooperative.net
**

 

 

On Sat, 9 May 2020 at 05:26, Joel Graff mailto:monograf...@gmail.com> > wrote:

I've been a part of the FreeCAD project for the last three years or so, 
focusing on developing Civil Engineering-related functions (specifically, 
transportation engineering).  On occasion, discussions emerge regarding GIS 
integration into FreeCAD, QGIS being the natural go-to.

Recently, the GIS thread on the FreeCAD forum pointed to a github issue on the 
QGIS repo about FreeCAD integration.  It was closed in late April, citing the 
developer's mailing list as the place to continue the discussion.

I cite the URL below as it contains links to relevant threads on the FreeCAD 
forum:


https://github.com/qgis/QGIS/issues/21623

 

The issue was five years old and not much discussion has happened.  Admittedly, 
I think it's one of those "seems like a good idea, but what can we really do 
with it?" kind of things.

I'm not really posting here to start a discussion on any particular topic or 
advocate for any sort of development effort.  I'm merely bringing it to the 
developer mailing list to give it the proper exposure.

That said, I should also mention that I and one other transportation 
engineering pro

[QGIS-Developer] RES: Mesh layer

2020-04-26 Thread Jorge Almerio
Many thanks!

 

You saved me!!

 

De: Vincent Cloarec [mailto:vcloa...@gmail.com] 
Enviada em: Sunday, April 26, 2020 11:35 AM
Para: Jorge Almerio 
Cc: qgis-developer ; 
qgis-developer-boun...@lists.osgeo.org
Assunto: Re: [QGIS-Developer] Mesh layer

 

Hi,

 

With QGIS master you can use  
<https://qgis.org/pyqgis/master/core/QgsMeshLayer.html#qgis.core.QgsMeshLayer.updateTriangularMesh>
 updateTriangularMesh.

Before, there is a workaround that consists to just call  
<https://qgis.org/pyqgis/3.12/core/QgsMeshLayer.html#qgis.core.QgsMeshLayer.createMapRenderer>
 createMapRenderer without using the renderer.

 

Vincent

 

Le sam. 25 avr. 2020 à 11:32, Jorge Almerio mailto:jorgealme...@yahoo.com.br> > a écrit :

Hi everyone,

Sometimes I got "NaN" return when trying to get scalar value to a point from a 
Mesh layer. I guess the reason is that it was not rendered previously as said 
in the documentation.

< 
<https://qgis.org/api/classQgsMeshLayer.html#a07cb62f04b64979500d3873afb580216> 
https://qgis.org/api/classQgsMeshLayer.html#a07cb62f04b64979500d3873afb580216>
QgsMeshDatasetValue:
"Note:
It uses previously cached and indexed triangular mesh and so if the layer 
has not been rendered previously (e.g. when used in a script) it returns NaN 
value"

When I turn ON and OFF the loaded mesh layer in the active project it Works!

I would like to know if there is a proper way to render the mesh layer, before 
get values.

Below is my code:

proj = QgsProject.instance()
layerPto = iface.activeLayer() # a Point layer
layer = proj.mapLayersByName("mesh01")[0] # a Mesh layer
dataset = QgsMeshDatasetIndex(0,0)
for feat in layerPto.getSelectedFeatures():
ptoGeo = feat.geometry()
pt = ptoGeo.asPoint()
value = layer.datasetValue(dataset, pt).scalar()
print('elevation={}'.format(value))



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

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

[QGIS-Developer] Mesh layer

2020-04-25 Thread Jorge Almerio
Hi everyone,

Sometimes I got "NaN" return when trying to get scalar value to a point from a 
Mesh layer. I guess the reason is that it was not rendered previously as said 
in the documentation.


QgsMeshDatasetValue:
"Note:
It uses previously cached and indexed triangular mesh and so if the layer 
has not been rendered previously (e.g. when used in a script) it returns NaN 
value"

When I turn ON and OFF the loaded mesh layer in the active project it Works!

I would like to know if there is a proper way to render the mesh layer, before 
get values.

Below is my code:

proj = QgsProject.instance()
layerPto = iface.activeLayer() # a Point layer
layer = proj.mapLayersByName("mesh01")[0] # a Mesh layer
dataset = QgsMeshDatasetIndex(0,0)
for feat in layerPto.getSelectedFeatures():
ptoGeo = feat.geometry()
pt = ptoGeo.asPoint()
value = layer.datasetValue(dataset, pt).scalar()
print('elevation={}'.format(value))



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

[QGIS-Developer] PyQgis Get Interpolated Z like identify Tool

2020-02-18 Thread Jorge Almerio
Hi devs,

 

How can I get the interpolated Z value (as shown in the picture below) of a
layer (PolygonZ) for a clicked or existent point with PyQgis?

 



 

I already know how to do it with a raster layer (sample raster), like code
below:

 

rastSample = Raster.dataProvider().identify(point,
QgsRaster.IdentifyFormatValue).results()

 

Anyone can help me?

 

Thank you,

 

Jorge Almerio

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

[QGIS-Developer] RES: Survey on If you use QGIS what do you like the most about it?

2019-07-08 Thread Jorge Almerio
Thanks to share!

Good survey!

 

De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de C 
Hamilton
Enviada em: segunda-feira, 8 de julho de 2019 16:14
Para: qgis-developer; qgis-user
Assunto: [QGIS-Developer] Survey on If you use QGIS what do you like the most 
about it?

 

I thought I would share with you some results of a survey I conducted earlier 
this year. There were 86 responses. Most users were using 2.x versions of the 
software, but some were using 3.x. Each person that responded may of had one or 
more items. I consolidated the similar responses so the number in front is the 
number of people that had the same basic answer.

17 - Easy to use and conduct analysis when compared with ESRI products.

1 - Editing is easier than with ArcGIS

2.- Supports excellent customization.

1 - Easier work flow for editing and creating figures.

13 - Much faster than ESRI products.

3 - Crashes less often than ArcGIS.

4 - More stable than ESRI software.

6 - Performs better than ESRI Desktop.

1 - Causes less headaches than ESRI software.

1 - Has better functionality and more useful tools than ArcGIS.

1 - More responsive than ESRI products to mouse and keyboard commands.

4 - Can do anything ArcMap can.

1 - Handles displaying big data points better than ArcGIS.

11 - Software is free.

1 - Saves the office $$$.

4 - Freedom from license restrictions.

2 - Free to download and use at home.

5 - Open source

4 - Being open source makes it easy to work with others.

2 - Conforms to OGC standards.

10 - Can easily be extended with plugins.

2 - Extensive 3rd party integration such as GRASS, TauDEM, SAGA, LASTools, and R

1 - Interesting addons not found in ArcGIS.

1 - Has great toolboxes.

10 - Works with hundreds of data formats.

2 - Produces a standards based GeoJSON file unlike ArcGIS that produces a 
modified format.

5 - Provides the very best interaction and support for PostgreSQL/PostGIS 
databases. ArcGIS does not work will with PostGIS.

2 - Better database integration.

1 - Can make PostGIS layers based on queries in QGIS.

4 - Full featured GIS application.

1 - 64 bit architecture.

2- Fast integrated GDAL/OGR library operations.

3 - Nice to have an integrated Python console.

1 - Easier to create a filter in QGIS than in ArcMap.

2 - Some QGIS tools work better than what ArcMap provides.

3 - Visualization tools are superior to ArcGIS including better rendering / 
blending capabilities.

1 - Has unique geoprocessing capabilities.

1 - Easy to write script to automate tasks.

1 - Like the persistent layer properties window, which makes infinitely more 
sense than endless pop-up clicking in Arc.

1 - Like how QGIS handles imagery stretching look-up tables.

1- Like draw pausing and cannot understand why ESRI can't get this right.

2 - Strong user community support.

1 - Can plot csv files onto a map and connect related tables of information.

Calvin

 

 

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

[QGIS-Developer] RES: show error message without exiting the plugin

2019-05-03 Thread Jorge Almerio
Hi,

 

I think in this case, as you do not want to close your gui, you should put the 
message bar in your gui, I suppose it's a dialog.

you have a code sample in Qgis cookbook 

 , may it can help you:

 

class MyDialog(QDialog):

def __init__(self):

QDialog.__init__(self)

self.bar = QgsMessageBar()

self.bar.setSizePolicy( QSizePolicy.Minimum, QSizePolicy.Fixed )

self.setLayout(QGridLayout())

self.layout().setContentsMargins(0, 0, 0, 0)

self.buttonbox = QDialogButtonBox(QDialogButtonBox.Ok)

self.buttonbox.accepted.connect(self.run)

self.layout().addWidget(self.buttonbox, 0, 0, 2, 1)

self.layout().addWidget(self.bar, 0, 0, 1, 1)

def run(self):

self.bar.pushMessage("Hello", "World", level=Qgis.Info)

 

 

 

 

 

De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de 
Roberta Fagandini
Enviada em: sexta-feira, 3 de maio de 2019 10:45
Para: qgis-developer@lists.osgeo.org
Assunto: [QGIS-Developer] show error message without exiting the plugin

 

Hi all,

I'm developing a plugin and I need to check if some features of the input 
vector layer are selected or not. If not I'd like to show an error message 
without closing the plugin gui:

 

This is the code at the moment:

 

if self.dlg.checkBox.isChecked():

check_sel = selectedLayer2.selectedFeatureCount()

if check_sel > 0:

intersec_layer = 
QgsProcessingFeatureSourceDefinition(selectedLayer2.id(), True)

else:

self.iface.messageBar().pushCritical("Error", "No features 
selected in layer {}.".format(selectedLayer2.name()))

return 

 

Any idea?

 

Thanks

Roberta

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

[QGIS-Developer] pylupdate5 Error

2019-02-26 Thread Jorge Almerio
Hi devs,

 

How to use 'pylupdate5' as described in the documentation

https://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/plugins.html?#ts-file

?

 

It's not recognized on my OSGeo Shell terminal. Only pylupdate4 is working

 

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

[QGIS-Developer] Plugins translation

2019-02-13 Thread Jorge Almerio
Hi devs,

 

For do the plugin translations I use

 

1) Linguist from QT5

2) The command line: 

Pylupdate4 -noobsolete PluginName.pro (Is there a new version 5??)

3) and the classical code:

 

# initialize locale
locale = QSettings().value('locale/userLocale')[0:2]
locale_path = os.path.join(
self.plugin_dir,
'i18n',
'PluginName_{}.qm'.format(locale))

if os.path.exists(locale_path):
self.translator = QTranslator()
self.translator.load(locale_path)

if qVersion() > '4.3.3':

QCoreApplication.installTranslator(self.translator)

 

def tr(self, message):

return QCoreApplication.translate(QWaterPlugin.SETTINGS, message)

 

 

The problem is that the option to use self.tr('message string') is not working. 
It only works when I use QCoreApplication.translate('Escope', 'message string') 
even if a tr function defined.

 

It used to work with linguist from QT4.

 

What  Am I doing wrong? BTW Is there a new better way to translate plugins?

 

Another thing, every time I update the translations strings with Pylupdate4, I 
have to translate all my plugin forms again even without any changes, any 
help???

 

Thanks,

 

Jorge Almerio

 

 

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

[QGIS-Developer] RES: Widget type

2019-01-18 Thread Jorge Almerio
You are right, but how to use "setEditorWidgetSetup" method?

From doc reference:
QgsVectorLayer::setEditorWidgetSetup (int index, const QgsEditorWidgetSetup & 
setup)

The first argument is the field index, ok, it's easy.
But second is a QgsEditorWidgetSetup, I don't know how to create one.


My code:
pipeLyr = iface.activeLayer()
field_index = 3 #here just for test
pipeLyr.setEditorWidgetSetup(field_index,'EditText')

I got:
TypeError: QgsVectorLayer.setEditorWidgetSetup(): argument 2 has unexpected 
type 'str'


-Mensagem original-
De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de 
Tom Chadwin
Enviada em: sexta-feira, 18 de janeiro de 2019 13:20
Para: qgis-developer@lists.osgeo.org
Assunto: Re: [QGIS-Developer] Widget type

Ignore previous completely wrong answer! Sorry.

I think you call QgsVectorLayer::setEditorWidgetSetup() instead:

https://qgis.org/api/classQgsVectorLayer.html#a8a174ba67d0a16f544211088656af143

Tom



-
Buy Pie Spy: Adventures in British pastry 2010-11 on Amazon 
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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

[QGIS-Developer] RES: Browser Panel too slow Issue

2018-11-08 Thread Jorge Almerio
Hi devs,

 

I already opened a ticket 

https://issues.qgis.org/issues/20411

 

Thanks

 

De: Jorge Almerio [mailto:jorgealme...@yahoo.com.br] 
Enviada em: quarta-feira, 7 de novembro de 2018 17:55
Para: 'qgis-developer@lists.osgeo.org'; 'qgis-developer-boun...@lists.osgeo.org'
Assunto: Browser Panel too slow Issue

 

Hi devs,

 

After update from Qgis 3.3.x to Qgis 3.4.1, the browser panel became too slow. 
I had to close it to use QGis.

 

Does someone realized this issue?

 

Sorry if it is not the right place for this,

 

Regards,

 

Jorge Almerio

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

[QGIS-Developer] Browser Panel too slow Issue

2018-11-07 Thread Jorge Almerio
Hi devs,

 

After update from Qgis 3.3.x to Qgis 3.4.1, the browser panel became too slow. 
I had to close it to use QGis.

 

Does someone realized this issue?

 

Sorry if it is not the right place for this,

 

Regards,

 

Jorge Almerio

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

[QGIS-Developer] RES: Handle Bad Layers

2018-09-06 Thread Jorge Almerio
Hi devs,

About the changeDataSource plugin, there is a testing working version (it can 
be downloaded and installed from zip) for Qgis 3.x on 
https://github.com/enricofer/changeDataSource/tree/qgis3-migration-test still 
not on oficial repository.

Regards,

Jorge Almerio

-Mensagem original-
De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de 
Nyall Dawson
Enviada em: quarta-feira, 5 de setembro de 2018 18:50
Para: w...@mindspring.com
Cc: qgis-developer
Assunto: Re: [QGIS-Developer] Handle Bad Layers

On Thu, 6 Sep 2018 at 05:42, Worth Lutz  wrote:
>
> Hi Devs,
>
> I have a question about the "Handle Bad Layers" dialog. My scenario is 
> working offline and loading a project with WMS layers defined. As the WMS is 
> unreachable, the layers are marked as "bad". Since the layers are not fixable 
> while offline, they get deleted from the project.
>
> I would like to continue to edit the layers locally stored on my laptop and 
> not lose the definitions of the WMS layers when saving the project.
>
> I would like to see the "bad" layers marked as "disabled because bad" and not 
> deleted from the project. This would keep the stored information about the 
> layer in the project. When the project is next opened while connected to the 
> internet these layers would be available without having to enter them again.
>
> Is there currently a way to do this?  Or should I add an enhancement request 
> issue for this idea?

I think this is a widely desired feature, and something I'd very much
like to see available "out of the box".

For 2.x there is a plugin "changeDataSource" which allows this
behavior. I don't think that plugin is available for 3.x yet.

Nyall

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

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

[QGIS-Developer] RES: Do we really need experimental and non-experimental plugins?

2018-08-27 Thread Jorge Almerio
Hi devs,

I agree with Andreas. I think we need experimental and non-experimental flags 
to plugins as it is.
And I think that we can NOT restrict the time to be experimental. Because it 
depends on the author available time to make his plugin stable. Restrict the 
experimental plugins would reduce the number of plugins been uploaded. To mark 
as experimental is important for the users and for the authors too, because one 
can help the other to fix bugs.

Jorge Almerio


-Mensagem original-
De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de 
Andreas Neumann
Enviada em: segunda-feira, 27 de agosto de 2018 09:42
Para: qgis-developer@lists.osgeo.org
Assunto: Re: [QGIS-Developer] Do we really need experimental and 
non-experimental plugins?

Hi Borys,

Personally, I think there is a need for the differentiation of 
experimental or not experimental.

I'd like to keep it as it is.

Andreas


Am 27.08.2018 um 02:06 schrieb Nyall Dawson:
> On Mon, 27 Aug 2018 at 04:11, Borys Jurgiel  wrote:
>> Hi Lists,
>>
>> Before I make a QEP I'd like to know your general thoughts.
>>
>> After I removed the deprecated plugins filter from the Plugin manager (and
>> make them always visible) [1], Alex suggested doing the same with the
>> Experimental status.
> I'm -1 on this. Experimental plugins can be dangerous (some result in
> crashes, data corruption, etc), and shouldn't be shown by default.
>
>> However, I'm not sure if it makes much sense nowadays. Releasing 'stable' and
>> 'experimental' versions seems a bit overscaled to me. And there is a simpler
>> solution: If the recent version is buggy, users can just download the last
>> working one from the repo and install from zip.
> I think that's overestimating some of our user's abilities -- it would
> take a lot of knowledge that:
> 1. a plugin is at fault
> 2. they can overwrite a plugin manually with an earlier version
> and
> 3. they can download earlier versions of plugins.
>
> Then, they'd also need to know *which* older plugin version is "good"
> and should be downloaded.
>
>> The former case, when the
>> whole plugin is experimental, seems to be often misused: authors can use it 
>> to
>> hide some specialised of localised plugisn from majority of users. In fact
>> even I committed such clear misuse, marking the Plugin Reloader as
>> experimental just to not clutter the list for normal users... Another reason
>> could be a shyness. But again, we have the rating stars now and don't need to
>> rely on the author's shyness anymore.
>>
>> So... Do you see important reasons to keep this tag? Maybe we should
>> completely drop it? Or just remove the option to hide them from manager,
>> leaving the flask icon on the plugin details page?
> I think it should be kept. I know of one buggy plugin which recently
> got marked as experimental, and I'm *very* glad to see this particular
> plugin hidden from the majority of our users by default.
>
> Nyall
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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

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

[QGIS-Developer] Plugins translation

2018-08-07 Thread Jorge Almerio
Hi devs,

 

For do the plugin translations I use

 

1) Linguist from QT5

2) The command line: 

Pylupdate4 -noobsolete PluginName.pro (Is there a new version 5??)

3) and the classical code:

 

# initialize locale
locale = QSettings().value('locale/userLocale')[0:2]
locale_path = os.path.join(
self.plugin_dir,
'i18n',
'PluginName_{}.qm'.format(locale))

if os.path.exists(locale_path):
self.translator = QTranslator()
self.translator.load(locale_path)

if qVersion() > '4.3.3':

QCoreApplication.installTranslator(self.translator)

 

def tr(self, message):

return QCoreApplication.translate(QWaterPlugin.SETTINGS, message)

 

 

The problem is that the option to use self.tr('message string') is not working. 
It only works when I use QCoreApplication.translate('Escope', 'message string') 
even if a tr function defined.

 

It used to work with linguist from QT4.

 

What  Am I doing wrong? BTW Is there a new better way to translate plugins?

 

Another thing, every time I update the translations strings with Pylupdate4, I 
have to translate all my plugin forms again even without any changes, any 
help???

 

Thanks,

 

Jorge Almerio

 

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

[QGIS-Developer] RES: QgsPluginManagerInterface

2018-07-25 Thread Jorge Almerio
Thank you, very much!

-Mensagem original-
De: Borys Jurgiel [mailto:li...@borysjurgiel.pl] 
Enviada em: quarta-feira, 25 de julho de 2018 18:29
Para: qgis-developer@lists.osgeo.org
Cc: Jorge Almerio
Assunto: Re: [QGIS-Developer] QgsPluginManagerInterface

Hi,

QgsPluginManagerInterface is quite limited. Try this instead:

from qgis.utils import pluginMetadata
pluginMetadata('myPluginName', 'version')

For more info see https://github.com/qgis/QGIS/blob/master/python/utils.py#L290

Regards,
Borys


Dnia środa, 25 lipca 2018 18:30:26 CEST Jorge Almerio pisze:
> Hi devs,
> 
> 
> 
> I need to get the current version (in metadata.txt) of my plugin from
> python. I saw that there is a Class
> <https://qgis.org/pyqgis/master/gui/other/QgsPluginManagerInterface.html>
> to access Metadata, but I did not found any example how to use it.
> 
> I tried with the code below without success. Does anyone can help me?
> 
> 
> 
> from qgis.gui import QgsPluginManagerInterface
> 
> meta = QgsPluginManagerInterface.pluginMetadata('myPluginName')
> 
> print(meta)
> 
> 
> 
> Thanks is advance!





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

[QGIS-Developer] QgsPluginManagerInterface

2018-07-25 Thread Jorge Almerio
Hi devs,

 

I need to get the current version (in metadata.txt) of my plugin from python. I 
saw that there is a Class 
 to 
access Metadata, but I did not found any example how to use it.

I tried with the code below without success. Does anyone can help me?

 

from qgis.gui import QgsPluginManagerInterface

meta = QgsPluginManagerInterface.pluginMetadata('myPluginName')

print(meta)

 

Thanks is advance!

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

[QGIS-Developer] RES: DB Manager Plugin

2018-06-18 Thread Jorge Almerio
Hi,

 

For Windows OSGeo Install:

C:\OSGeo4W64\apps\qgis\python\plugins

 

Regards,

 

Jorge Almerio

 

De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de 
Shiva Reddy
Enviada em: segunda-feira, 18 de junho de 2018 12:49
Para: Tim Sutton
Cc: QGIS Developer
Assunto: Re: [QGIS-Developer] DB Manager Plugin

 

Thanks. And For windows?

Sent from my iPhone


On 18-Jun-2018, at 5:18 PM, Tim Sutton  wrote:

Hi

 

Look in /Applications/QGIS.app/Contents/Resources/python/plugins/db_manager

Regards

Tim




On 18 Jun 2018, at 11:24, shiva reddy  wrote:

Hi,
I am interested in modifying the DB manager plugin and test in my PC without 
need to build whole QGIS  from source. 
I want to see where the core plugins are placed in my system..
I use QGIS 3 in both windows and Mac.


Thanks & Regards
Shiva Reddy K.
Scientist/Engineer 'SC'
Indian Institute of Remote Sensing,
Indian Space Research Organisation
Department of Space
4-Kalidas Road
Dehradun
mobile: 8791806093
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

 

—









 

Tim Sutton

 

Co-founder: Kartoza

Ex Project chair: QGIS.org

 

Visit http://kartoza.com <http://kartoza.com/>  to find out about open source:

 

Desktop GIS programming services

Geospatial web development

GIS Training

Consulting Services

 

Skype: timlinux 

IRC: timlinux on #qgis at freenode.net

 

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

[QGIS-Developer] RES: RES: Highlighting selected vertex in vertex editor

2018-06-07 Thread Jorge Almerio
Now I understand, selecting rows on table it selects the respective node on 
canvas. But selecting the node on canvas it does not select it on table.

Sorry for the noise.

Cheers, 
Jorge

-Mensagem original-
De: matteo [mailto:matteo.ghe...@gmail.com] 
Enviada em: quinta-feira, 7 de junho de 2018 09:48
Para: DelazJ
Cc: Jorge Almerio; qgis-developer
Assunto: Re: [QGIS-Developer] RES: Highlighting selected vertex in vertex editor

> Do you mean this https://issues.qgis.org/issues/17806?

exactly!

Thanks Harrissou

Matteo

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

[QGIS-Developer] RES: Highlighting selected vertex in vertex editor

2018-06-07 Thread Jorge Almerio
Hi Matteo,

You can right click on the feature line and choose "Vertex editor" to show the 
Vertex editor table.

Cheers

Jorge Almerio

-Mensagem original-
De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de 
matteo
Enviada em: quinta-feira, 7 de junho de 2018 07:02
Para: qgis-developer
Assunto: [QGIS-Developer] Highlighting selected vertex in vertex editor

Hi all,

in the vertex editor of QGIS 2.x when a line of the table id selected
the corresponding vertex is highlighted in the map.

In QGIS 3 it seems that this super useful feature is not there anymore.
I just wanted to report this ;)

Cheers

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

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

[QGIS-Developer] RES: QgsFeatureRequest SortByOrder

2018-06-04 Thread Jorge Almerio
Hi Matthias,

Thank you very much!

Regards, Jorge

-Mensagem original-
De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de 
Matthias Kuhn
Enviada em: segunda-feira, 4 de junho de 2018 04:14
Para: qgis-developer@lists.osgeo.org
Assunto: Re: [QGIS-Developer] QgsFeatureRequest SortByOrder

Hi Jorge,

There are two possibilities, one is to use the full-blown API with
OrderBy class etc. And then there is a shorthand for this, called
QgsFeatureRequest.addOrderBy which is enough in 90% of the cases.

Short version:

  request = QgsFeatureRequest()
  request.addOrderBy('field_name')

https://qgis.org/pyqgis/master/core/Feature/QgsFeatureRequest.html#qgis.core.QgsFeatureRequest.addOrderBy

Long version:

  clause = QgsFeatureRequest.OrderByClause('field_name')
  orderBy = QgsFeatureRequest.OrderBy([clause])
  request = QgsFeatureRequest()
  request.setOrderBy(orderBy)

https://qgis.org/pyqgis/master/core/Feature/QgsFeatureRequest.html#qgis.core.QgsFeatureRequest.setOrderBy

Regards Matthias

On 06/01/2018 06:15 PM, Jorge Almerio wrote:
> Can anyone help me how to iterate through features using a Field as a
> sort order?
> 
>  
> 
> I saw that there is a function setOrderBy
> <https://qgis.org/api/classQgsFeatureRequest.html#ad9c11d4c88185fcfb0a54f8703699717>on
> QgsFeatureRequest, by it seems to request a OrderBy Class argument, but
> I could not get how to use it.
> 
>  
> 
> Simple example:
> 
> "
> 
> lyr = iface.activeLayer()
> 
> prov = lyr.dataProvider()
> 
> for feature in prov.getFeatures(QgsFeatureRequest()):
> 
> print feature.id()
> 
> "
> 
>  
> 
> Thank you
> 
> 
> 
> ___
> QGIS-Developer mailing list
> QGIS-Developer@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> 
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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

[QGIS-Developer] QgsFeatureRequest SortByOrder

2018-06-01 Thread Jorge Almerio
Can anyone help me how to iterate through features using a Field as a sort 
order?

 

I saw that there is a function  

 setOrderBy on QgsFeatureRequest, by it seems to request a OrderBy Class 
argument, but I could not get how to use it.

 

Simple example:

"

lyr = iface.activeLayer()

prov = lyr.dataProvider()

for feature in prov.getFeatures(QgsFeatureRequest()):

print feature.id()

"

 

Thank you

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

[QGIS-Developer] RES: Esri Personal geodatabase (*.mdb)

2018-05-10 Thread Jorge Almerio
Thank you very much!!!

Please, Can anyone put this answer and close my bug report 
(https://issues.qgis.org/issues/18234)?

Can I put this answer at 
https://gis.stackexchange.com/questions/129514/opening-esri-personal-geodatabase-mdb-using-qgis/282387?noredirect=1#comment451561_282387
 ?

Thanks again

-Mensagem original-
De: QGIS-Developer [mailto:qgis-developer-boun...@lists.osgeo.org] Em nome de 
andreaerdna
Enviada em: quinta-feira, 10 de maio de 2018 13:36
Para: qgis-developer@lists.osgeo.org
Assunto: Re: [QGIS-Developer] Esri Personal geodatabase (*.mdb)

andreaerdna wrote
> Therefore, to ensure that OGR_SKIP and PGEO_DRIVER_TEMPLATE are correctly
> set before QGIS 3 starts, you need to run qgis.bat (with the two line
> added).

and you can also, alternatively:

- set the two variables as User or System Windows Environment Variables (in
the Windows Advanced System Settings)

or

- set the two variables in QGIS through Settings -> Options | System |
Environment


The names and the values of the variables are:

variable name: OGR_SKIP
value: ODBC

variable name: PGEO_DRIVER_TEMPLATE
value: DRIVER=Microsoft Access Driver (*.mdb, *.accdb);DBQ=%s

note that there is only one percent sign in the value of
PGEO_DRIVER_TEMPLATE variable.


In both cases, you can launch QGIS normally through the Start Menu link.



-
Andrea Giudiceandrea
--
Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
___
QGIS-Developer mailing list
QGIS-Developer@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

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

[QGIS-Developer] Esri Personal geodatabase (*.mdb)

2018-05-09 Thread Jorge Almerio
On Qgis 2.18.19 I can load a Esri Personal geodatabase (*.mdb) by adding the 
lines below to qgis.bat:

 

"

set OGR_SKIP=ODBC
set PGEO_DRIVER_TEMPLATE=DRIVER=Microsoft Access Driver (*.mdb, *.accdb);DBQ=%%s

"

 

Anyone Can help on how to add a personal geodatabase on Qgis 3?

Or please change the bug report (https://issues.qgis.org/issues/18234) I opened 
to regression type.

 

Thanks

 

 

 

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