[QGIS-Developer] Make official Docker Image stable

2024-05-15 Thread Jakob Miksch via QGIS-Developer
Hi everyone!

The official docker image of QGIS (https://github.com/qgis/qgis-docker) states:
There are discussions on how to build these images and they are not considered 
stable. They are considered as NOT production ready.
I am interested in making the docker image stable, but I have not found a 
roadmap or a hint to features that are currently missing to make it "production 
ready".
 So far, I only found this thread: 
https://github.com/qgis/QGIS-Enhancement-Proposals/issues/221

Could you point me to any other relevant discussions, or could you tell me 
where I should ask to make this image "ready for production"?

Regards,
Jakob



 
[cid:siticom-logo-blue-final-black-a-logicalis-company_bc243344-6a69-4e78-9078-76e88dbcc994.png]

Jakob Miksch
Consultant

+49 170 9036956
siticom.online



siticom GmbH * Bahnhofsplatz 12 * 76137 Karlsruhe * Deutschland
Geschäftsführer: Jürgen Hatzipantelis, Stefan Höltken
Sitz der Gesellschaft: Weiterstadt * Amtsgericht Darmstadt * HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589

___
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] QGIS Server Caching Problem

2024-03-05 Thread Jakob Miksch via QGIS-Developer
Hello everyone,

I observed a situation where QGIS Server caches WMS responses where it should 
not. The env-var "QGIS_SERVER_PROJECT_CACHE_STRATEGY=periodic" should ensure 
(to my understanding) that QGIS Server periodically checks for updates in the 
QGIS project when it is stored in PostGIS. This works for WFS but it does not 
for WMS.
This issue describes the details: QGIS Server: WMS does not notice changes of 
QGIS Project in PostGIS, but WFS does * Issue #56622 * qgis/QGIS 
(github.com)<https://github.com/qgis/QGIS/issues/56622>

Is this a known problem, does anybody have a hint how to fix or work around 
this?

Thanks and best regards,
Jakob

 
[cid:siticom-logo-blue-final-black-a-logicalis-company_bc243344-6a69-4e78-9078-76e88dbcc994.png]

Jakob Miksch
Consultant

+49 170 9036956
siticom.online



siticom GmbH * Bahnhofsplatz 12 * 76137 Karlsruhe * Deutschland
Gesch?ftsf?hrer: J?rgen Hatzipantelis, Stefan H?ltken
Sitz der Gesellschaft: Weiterstadt * Amtsgericht Darmstadt * HRB 9276
Umsatzsteuer-ID Nr.: DE 197 925 589

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


Re: [QGIS-Developer] Approval and Maintainer-Change of ORSTools-Plugin

2023-04-05 Thread Jakob Schnell via QGIS-Developer
Hey Tim,

yeah, it looks like that's the setting influencing the `Maintainer` entry in
the plugin details.

Could you change that to "heigit"?
That would be much appreciated.

Could the "heigit" user also get the `plugins.can_approve`-permission mentioned
in the docs¹? What would be the process to apply for said permission?

Best regards,
Jakob

[1]:
https://docs.qgis.org/3.28/en/docs/pyqgis_developer_cookbook/plugins/releasing.html#permissions

On Tue, 4 Apr 2023 23:47:08 +0100
Tim Sutton  wrote:

> Hi Jakob
> 
> These are the things I can edit in the admin panel. I suspect you want to
> change the 'created by' field? Please indicate the osgeo id of the person
> it should be changed to.
> 
> Thanks
> 
> Tim
> [image: image.png]
> 
> On Tue, Apr 4, 2023 at 2:27 PM Jakob Schnell via QGIS-Developer <
> qgis-developer@lists.osgeo.org> wrote:
> 
> > Dear QGIS-devs,
> >
> > not sure if this is the correct point of contact, but i couldn't find
> > any information about plugin approval and maintainer changes on
> > https://plugins.qgis.org/. Please redirect me, if this is the wrong
> > contact.
> >
> > Our plugin (https://plugins.qgis.org/plugins/ORStools/) had a change in
> > the maintainer.
> > However there is no entry in the metadata.txt to change the maintainer
> > displayed in the Details tab.
> >
> > I did search quite a bit but couldn't find any solution to remove
> > nilsnolde as a maintainer from the Details.
> >
> > Is this probably saved somewhere internally on the website?
> > What would be the correct way to go about changing the maintainer?
> >
> > Is the maintainer responsible for approving the plugin? If not, is there
> > anything that we can do to facilitate the process of approval?
> >
> > Hope to hear from you.
> >
> > Best regards,
> > Jakob
> >
> > --
> > Jakob Schnell
> > HeiGIT gGmbH
> > Heidelberg Institute for Geoinformation Technology at Heidelberg University
> >
> > https://heigit.org | jakob.schn...@heigit.org | phone +49-6221-533 482
> >
> > Postal address: Schloss-Wolfsbrunnenweg 33 | 69118 Heidelberg | Germany
> > Offices: Berliner Str. 45 | 69120 Heidelberg | Germany
> >
> > Amtsgericht Mannheim | HRB 733765
> > Managing Directors: Prof. Dr. Alexander Zipf | Dr. Gesa Schönberger
> >
> >
> > ___
> > 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
> >  
> 
> 



-- 
Jakob Schnell
HeiGIT gGmbH
Heidelberg Institute for Geoinformation Technology at Heidelberg University

https://heigit.org | jakob.schn...@heigit.org | phone +49-6221-533 482

Postal address: Schloss-Wolfsbrunnenweg 33 | 69118 Heidelberg | Germany
Offices: Berliner Str. 45 | 69120 Heidelberg | Germany

Amtsgericht Mannheim | HRB 733765
Managing Directors: Prof. Dr. Alexander Zipf | Dr. Gesa Schönberger


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


Re: [QGIS-Developer] Approval and Maintainer-Change of ORSTools-Plugin

2023-04-04 Thread Jakob Schnell via QGIS-Developer
Hey,

thanks for your response.
Yes, we are able to edit our plugin details on https://plugins.qgis.org.

The list of owners there correctly has  "heigit" as the plugin owner.

This, however, doesn't seem to directly correspond to the information on the
plugin page itself, which states a Maintainer and Collaborators.

We'd like to change the Maintainer Information on the plugins page, since it's
no longer correct.

Best regards,
Jakob Schnell



On Tue, 4 Apr 2023 15:37:03 +0200
Etienne Trimaille  wrote:

> Hi,
> 
> Are you able to connect on the website ? https://plugins.qgis.org
> Go in your plugin page, "Manage" tab, then "Edit", at the bottom, you can
> edit the list of owners.
> 
> Le mar. 4 avr. 2023 à 15:27, Jakob Schnell via QGIS-Developer <
> qgis-developer@lists.osgeo.org> a écrit :
> 
> > Dear QGIS-devs,
> >
> > not sure if this is the correct point of contact, but i couldn't find
> > any information about plugin approval and maintainer changes on
> > https://plugins.qgis.org/. Please redirect me, if this is the wrong
> > contact.
> >
> > Our plugin (https://plugins.qgis.org/plugins/ORStools/) had a change in
> > the maintainer.
> > However there is no entry in the metadata.txt to change the maintainer
> > displayed in the Details tab.
> >
> > I did search quite a bit but couldn't find any solution to remove
> > nilsnolde as a maintainer from the Details.
> >
> > Is this probably saved somewhere internally on the website?
> > What would be the correct way to go about changing the maintainer?
> >
> > Is the maintainer responsible for approving the plugin? If not, is there
> > anything that we can do to facilitate the process of approval?
> >
> > Hope to hear from you.
> >
> > Best regards,
> > Jakob
> >
> > --
> > Jakob Schnell
> > HeiGIT gGmbH
> > Heidelberg Institute for Geoinformation Technology at Heidelberg University
> >
> > https://heigit.org | jakob.schn...@heigit.org | phone +49-6221-533 482
> >
> > Postal address: Schloss-Wolfsbrunnenweg 33 | 69118 Heidelberg | Germany
> > Offices: Berliner Str. 45 | 69120 Heidelberg | Germany
> >
> > Amtsgericht Mannheim | HRB 733765
> > Managing Directors: Prof. Dr. Alexander Zipf | Dr. Gesa Schönberger
> >
> >
> > ___
> > 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
> >  



-- 
Jakob Schnell
HeiGIT gGmbH
Heidelberg Institute for Geoinformation Technology at Heidelberg University

https://heigit.org | jakob.schn...@heigit.org | phone +49-6221-533 482

Postal address: Schloss-Wolfsbrunnenweg 33 | 69118 Heidelberg | Germany
Offices: Berliner Str. 45 | 69120 Heidelberg | Germany

Amtsgericht Mannheim | HRB 733765
Managing Directors: Prof. Dr. Alexander Zipf | Dr. Gesa Schönberger


___
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] Approval and Maintainer-Change of ORSTools-Plugin

2023-04-04 Thread Jakob Schnell via QGIS-Developer
Dear QGIS-devs,

not sure if this is the correct point of contact, but i couldn't find 
any information about plugin approval and maintainer changes on
https://plugins.qgis.org/. Please redirect me, if this is the wrong contact.

Our plugin (https://plugins.qgis.org/plugins/ORStools/) had a change in 
the maintainer.
However there is no entry in the metadata.txt to change the maintainer 
displayed in the Details tab.

I did search quite a bit but couldn't find any solution to remove 
nilsnolde as a maintainer from the Details.

Is this probably saved somewhere internally on the website?
What would be the correct way to go about changing the maintainer?

Is the maintainer responsible for approving the plugin? If not, is there
anything that we can do to facilitate the process of approval?

Hope to hear from you.

Best regards,
Jakob

-- 
Jakob Schnell
HeiGIT gGmbH
Heidelberg Institute for Geoinformation Technology at Heidelberg University

https://heigit.org | jakob.schn...@heigit.org | phone +49-6221-533 482

Postal address: Schloss-Wolfsbrunnenweg 33 | 69118 Heidelberg | Germany
Offices: Berliner Str. 45 | 69120 Heidelberg | Germany

Amtsgericht Mannheim | HRB 733765
Managing Directors: Prof. Dr. Alexander Zipf | Dr. Gesa Schönberger


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


Re: [QGIS-Developer] It's time to contribute to the Changelog for QGIS 3.20!

2021-06-07 Thread Jakob
Hello Tim et. al.

I think the changelog is pretty good explained and visualized. The use of
animation is a great help in some of the entries. Even though I use to live
in Odense, after reading the changelog a better name than QGIS 3.20 Odense
might be QGIS 3.20 Nyall Dawson.

;)
Jakob



--
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] OSGEO QGIS 3.18.0 broken?

2021-03-02 Thread Jakob
Just installed OSGEO QGIS 3.18.0 on Windows 10 on a clean machine. Now QGIS
cannot start claiming:

---
qgis-bin.exe - Entry point was not found
---
Procedure entrance point
?staticMetaObject@QgsPointCloudAttributeComboBox@@2UQMetaObject@@B was not
found in DLL-library C:\OSGEO4~1\apps\qgis\bin\qgis_app.dll. 

Installed OSGEO QGIS 3.18.0 on another Windows machine 3 days ago with no
problem.

Tried reinstall with no luck.



--
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] Library behind native plugin 'Check Geometries'

2020-11-18 Thread Jakob
What is the rutine or library behind - that the QGIS native plugin Check
Geometries uses. This plugin finds at lot more topological errors and other
data inconsistencies than PostGIS st_isvalid() by GEOS and the QGIS menu
Vector > Geometry Tools > Check Validity (Method QGIS or GEOS). 

Jakob



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

Re: [QGIS-Developer] "GetMap" URL from WMS layers

2020-04-02 Thread Jakob Miksch

Dear list,

@Jeff: Thanks for the tip. But I need a programmatic way using the 
Python API how to extract the "GetMap" URL.


Currently I fixed my problem with OWSlib:


```
d = parse_qs(source)
url_get_capabilities = d['url'][0]
layers = d['layers'][0]
# request getMap URL via OWSLib
wms = WebMapService(url_get_capabilities)
url_get_map = wms.getOperationByName('GetMap').methods[0]['url'] ``` 
However, I am not that happy with this approach, because OWSlib makes 
another request to the server. I mean, QGIS obviously knows the URL 
already, but I cannot easily access it Python. Does anyone else have an 
idea how the retrieve the "GetMap" URL? Thanks and best wishes, Jakob



On 31.03.20 16:54, Jeff McKenna wrote:
Try Richard's great 'QGIS Network Logger' plugin, to see all WMS 
requests.  I've recorded several options here to grab the GetMap url: 
https://github.com/mapserver/mapserver/wiki/Get-the-Raw-WMS-Request-Generated-by-QGIS 



-jeff


--
Jeff McKenna
MapServer Consulting and Training Services
https://gatewaygeomatics.com/



On 2020-03-31 11:37 a.m., Jakob Miksch wrote:

Dear list,

I want to extract the "GetMap" URL from WMS layers. For most of the 
WMS layers I can extract it from "layer.source()". However this does 
not work for WMS layers where "GetMap" and "GetCapabilities" is 
different. Like for this layer: 
https://www.geoportal.rlp.de/mapbender/php/wms.php?inspire=1_id=69694=1=1; 



The only place where I can find the "GetMap" URL is inside the 
"layer.htmlMetadata()" document. From there the URL can be extracted 
using REGEX. But every localization of QGIS (e.g. German, French ...) 
have different terms for the surrounding "GetMap" HTML element. This 
makes this approach quite tricky.


Is there any more elegant solution how to retrieve the "GetMap" URL 
from WMS layers?


Thanks in advance and best wishes,
Jakob



___
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


--
Jakob Miksch
Geospatial Development
www.jakobmiksch.eu

___
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] "GetMap" URL from WMS layers

2020-03-31 Thread Jakob Miksch

Dear list,

I want to extract the "GetMap" URL from WMS layers. For most of the WMS 
layers I can extract it from "layer.source()". However this does not 
work for WMS layers where "GetMap" and "GetCapabilities" is different. 
Like for this layer: 
https://www.geoportal.rlp.de/mapbender/php/wms.php?inspire=1_id=69694=1=1; 



The only place where I can find the "GetMap" URL is inside the 
"layer.htmlMetadata()" document. From there the URL can be extracted 
using REGEX. But every localization of QGIS (e.g. German, French ...) 
have different terms for the surrounding "GetMap" HTML element. This 
makes this approach quite tricky.


Is there any more elegant solution how to retrieve the "GetMap" URL from 
WMS layers?


Thanks in advance and best wishes,
Jakob

--
Jakob Miksch
Geospatial Development
www.jakobmiksch.eu

___
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] PGSYSCONFDIR environmental variable use in QGIS Postgres service

2020-02-27 Thread Jakob
I have a .pg_service.conf file with a Postgres connection use as a Service
connection in QGIS dialog "Create a New PostGIS Connection", running on
Windows 10.

This works fine when the pg_service is placed in the folder
"C:\Users\myuser\AppData\Roaming\Postgresql".

Now to change the folder of the pg_service file I somewhere read that the
folder is defined in environmental variable PGSYSCONFDIR, but setting a path
in this variable does not make QGIS look in the new folder for the
.pg_service.conf file. It still looks in the folder 
"C:\Users\myuser\AppData\Roaming\Postgresql".

Do I misunderstand the meaning of PGSYSCONFDIR variable use in QGIS?



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

Re: [QGIS-Developer] PostGIS out-of-db raster rendering as a black box in QGIS

2018-05-22 Thread Jakob Lanstorp
Anyone know of the approximate timeframe for a commit to GDAL master and 2.3
branch will be available in a QGIS release?

Thanks Jakob



-
Jakob Lanstorp
--
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] PostGIS out-of-db raster rendering as a black box in QGIS

2018-05-17 Thread Jakob Lanstorp
I load a geotiff with raster2pgsql with the -R param for having an out of db
stored raster in PostGIS.
The raster renders in QGIS through the DB Manager as a black box with no
values. Running a raster layer statistics in QGIS returns 0 for all values.
I have tried loading the raster as a in-db raster and this works fine
rendering in QGIS.

Out-db is enabled:
SET postgis.enable_outdb_rasters TO True;
SHOW postgis.enable_outdb_rasters;

ST_SummaryStats in PostGIS returns the same for both in- and out-of-db
raster.

The out-db raster is registered correct in PostGIS:

SELECT r_table_name, r_raster_column, out_db FROM raster_columns;
returning: sa_out, rast, {true,true,true,true}

Since raster2pgsql uses GDAL I suspect GDAL within QGIS is able to read the
raster to QGIS.

The sample tif is available for download here: 
3320D_2010_315_RGB_LATLNG.TIF
<http://lanstorp.com/files/3320D_2010_315_RGB_LATLNG.TIF>  

It is loaded into PostGIS with:
raster2pgsql -C -R -F -Y -I
C:\map\raster2pg\tif\3320D_2010_315_RGB_LATLNG.TIF myschema.sa_out | psql -U
postgres -d sandbox localhost -p 5432

Is this a GDAL or QGIS problem? Any solution? Anyone able to render an
out-of-db raster from PostGIS?

Jakob




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

Re: [QGIS-Developer] Order of algorithms in processing

2018-02-21 Thread Jakob Lanstorp
@Borys, Yes this is what happens, thanks.

Jakob



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

Re: [QGIS-Developer] Order of algorithms in processing

2018-02-20 Thread Jakob Lanstorp
Hi Alexander,

It does not seem like it sorted alphabetic (danish)

<http://osgeo-org.1560.x6.nabble.com/file/t365663/udklip.jpg> 





-
Jakob Lanstorp
--
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] Order of algorithms in processing

2018-02-20 Thread Jakob Lanstorp
How do you control the order of your algorithms in a group in a qgis
processing plugin?

def createAlgsList(self):
self.alglist = [
Test1GeoAlgorithm(u'Test1', u'Group1'),
Test2GeoAlgorithm(u'Test2', u'Group1'),
Test3GeoAlgorithm(u'Test3', u'Group1'),
Test4GeoAlgorithm(u'Test4', u'Group1')]

In the processing toolbox gui the menu items end up in a random order - and
not the order of the alglist?

Thanks
Jakob



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

Re: [QGIS-Developer] Processing plugin - Set style on resulting layer

2018-01-18 Thread Jakob Lanstorp
My bad ...

Actually I was not using the output.getVectorWriter object the correct way.
After fixing it the layer extracting from postgis by uri resulted in the
default layer style from postgis to be add automatically using the
getVectorWriter of the processing.core.outputs.OutputVector object.

If would still be smart if one could have an after processAlgorithm signal
for setting other stuff like adding feature count in TOC.

Jakob



-
Jakob Lanstorp
--
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] QGIS 3D needs a 2D profile windows

2018-01-15 Thread Jakob Lanstorp
For future consideration and funding I would like to list a feature request
for a 2D profile window in conjunction with the QGIS 3D map I just entered
at:  https://issues.qgis.org/issues/17856
<https://issues.qgis.org/issues/17856>  

Description

If the 3D windows reaches a point where data like subsurface geological
layers can be visualized - need will come for a 2D profile window. Working
with geological 3D models requires a lot of input like boreholes and
geophysical data. This massive input will obfuscate the 3D windows making it
almost useless. When we make 3D geological models at work with software like
Geoscene-3D nobody really use the 3D windows for anything. The 2D profile
window - defined from a buffered polyline in a 2D map window - is where you
model layers and add points in 2D. The points converts automatically to 3D
points in relation to either profile line or if they are snapped to an
existing 3D geometry in the 2D profile map. Interpolation on 3D points
delivers the resulting 3D layer.

Also other 3D subsurface data like drinking water pipes, sewer networks and
power lines could benefit from a 2D profile window.

Regards,
Jakob



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

Re: [QGIS-Developer] QGIS 3D: Support for 3DM (x,y,z,m)

2018-01-05 Thread Jakob Lanstorp
>>M values are ignored as their meaning is application specific. How 
>>would you like to use M values in the 3D view? 

M values is not for rendering in 3D, but just residing as part of my
existing 4D data. When the M value is present the Z value is reset to 0 -
and not rendered correct. Right now I would have to strip the M value from
my data before rendering in the QGIS 3D map. 

It could actually be useful rendering the M value as a label in the 3D map.
It could be age or velocity of a particle in groundwater particle flowmodel.

You 3D terrain model work with 2D draping works just fine. As I stated in
the qgis issue log - having rendering of negative Z values could be fine for
subsurface data.

Anyways a very good job done yet.



-
Jakob Lanstorp
--
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] QGIS 3D: Support for 3DM (x,y,z,m)

2018-01-05 Thread Jakob Lanstorp
Is it correct that the 3D engine currently does not understand measurement
values in 3DM format.
When having four numbers in a coordinate the z (and m) value is skipped
rendering the geometry af terrain = 0 meter (any 2d layer in 3D map is
default rendered at z=0).

Example:

/SELECT 
1 AS id, 
ST_GeomFromText('MULTIPOINT(505105 6305783 100 111, 504809 6305233 200
222)', 25832) AS geom/





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

Re: [QGIS-Developer] Processing plugin - Set style on resulting layer

2018-01-05 Thread Jakob Lanstorp
Yes, I would like to control the styling from my processing plugin code not
by context menu. The end user is not to worry about where to find a qml
style file.

Jakob



-
Jakob Lanstorp
--
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] Processing plugin - Set style on resulting layer

2018-01-03 Thread Jakob Lanstorp
I'm building a Processing plugin used as an interface between QGIS and a
geological PostGIS database. 

The resulting layer is as standard loaded automatically (Processing best
practices). This resulting load (shapefile) happens after method
processAlgorithm of GeoAlgorithm has run. 

This gives me no chance of setting the resulting layer style. Is there any
post-processingAlgorithm method or anything else I can use? I'm aware of
"qgis:setstyleforvectorlayer" but my script is not meant for the modeller
and would like the algorithm to be run in one step not two steps. 

I may be out of scoop for what a Processing plugin is meant for - but like
the non ui and direct algorithm approach.

Jakob




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

Re: [QGIS-Developer] PostGIS 3D cube lacks vertical faces

2017-12-20 Thread Jakob Lanstorp
Hi Anita et al,

How did you get the geometry into QGIS. I have tried running a sql from
within the db manager plugin on a postgis datebase like:

SELECT
'POLYHEDRALSURFACE Z (
((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)),
((0 0 0, 0 1 0, 0 1 1, 0 0 1, 0 0 0)),
((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)),
((1 1 1, 1 0 1, 0 0 1, 0 1 1, 1 1 1)),
((1 1 1, 1 0 1, 1 0 0, 1 1 0, 1 1 1)),
((1 1 1, 1 1 0, 0 1 0, 0 1 1, 1 1 1))
  )'::geometry

It show the polyhedral in 2D in both QGIS 2D and 3D window, but crashes QGIS
when changing properties.

I have also tried creating a view in postgis like:

CREATE OR REPLACE VIEW test.polyhedraltest AS (
  SELECT
row_number() OVER () AS row_id,
'POLYHEDRALSURFACE Z (
((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)),
((0 0 0, 0 1 0, 0 1 1, 0 0 1, 0 0 0)),
((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)),
((1 1 1, 1 0 1, 0 0 1, 0 1 1, 1 1 1)),
((1 1 1, 1 0 1, 1 0 0, 1 1 0, 1 1 1)),
((1 1 1, 1 1 0, 0 1 0, 0 1 1, 1 1 1))
  )'::geometry AS geom
);

This just loades an empty layer in QGIS.

regards
Jakob

Using the 64 bit OSGEO4W downloaded 2017-dec-14:
QGIS version 2.99.0-Master
QGIS code revision 010cb1567b



-
Jakob Lanstorp
--
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] OSGEO4W QGIS 2.12.0 crash on closing QGIS - ntdll.dll error

2015-10-26 Thread Jakob Lanstorp
Anyone have a working OSGEO4W QGIS 2.12.0. When I close QGIS it crashes
creating a windows dump file with the error: "symbols could not be loaded
for ntdll.dll"

Dump file by Windows debugging tools:


Loading Dump File
[C:\Users\JAL\AppData\Local\Temp\qgis-20151026-140430-7864-4176-cd9d645.dmp]
User Mini Dump File: Only registers, stack and portions of memory are
available

Symbol search path is: *** Invalid ***

* Symbol loading may be unreliable without a symbol search path.   *
* Use .symfix to have the debugger choose a symbol path.   *
* After setting your symbol path, use .reload to refresh symbol locations. *

Executable search path is: 
Windows 8.1 Version 9600 MP (8 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Built by: 6.3.9600.17031 (winblue_gdr.140221-1952)
Machine Name:
Debug session time: Mon Oct 26 14:04:30.000 2015 (UTC + 1:00)
System Uptime: not available
Process Uptime: 0 days 0:00:10.000



.
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(1eb8.1050): Access violation - code c005 (first/second chance not
available)
*** WARNING: Unable to verify timestamp for ntdll.dll
*** ERROR: Module load completed but symbols could not be loaded for
ntdll.dll
eax= ebx=04301040 ecx=02eea600 edx=0008 esi=04300ff8
edi=04301008
eip=770bd28c esp=0085e5dc ebp=0085e5e8 iopl=0 nv up ei pl nz na po
nc
cs=0023  ss=002b  ds=002b  es=002b  fs=0053  gs=002b
efl=0202
ntdll+0x3d28c:
770bd28c c20800  ret     8

Jakob



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/OSGEO4W-QGIS-2-12-0-crash-on-closing-QGIS-ntdll-dll-error-tp5232589.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Change qgis-bin dialog text in Python

2015-10-21 Thread Jakob Lanstorp
I have an Python action using a REST service to get picture. The picture is
rendered with a QLabel. How can I change the default dialog text 'qgis-bin'?

Dialog:

<http://osgeo-org.1560.x6.nabble.com/file/n5231588/Image4.jpg> 

WFS layer action code:

import urllib
from PyQt4.QtCore import Qt
img = QtGui.QImage()
lbl = QtGui.QLabel()
url = r'[% "cyklogram" %]'
data = urllib.urlopen(url).read()
img.loadFromData(data)
lbl.setPixmap(QtGui.QPixmap(img).scaled(650,250,Qt.KeepAspectRatio))
lbl.show()

Jakob



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Change-qgis-bin-dialog-text-in-Python-tp5231588.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Building plugin for Print Composer

2015-06-22 Thread Jakob Lanstorp
Is it possibly to build a Python plugin minded for the print composer alone? 

-Need to build a plugin with a new button inside print composer that lists
all labels in the composer in a new dialog for editing. This would be a tool
for easy handling of complex header and footers in the layout for the novice
user.



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Building-plugin-for-Print-Composer-tp5212187.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Building plugin for Print Composer

2015-06-22 Thread Jakob Lanstorp
Hi Giovanni, thanks for the update. Another solution would be to catch the
event when a user starts an existing print composer. Cannot in doc for the
pyqgis API find anything for this. Anyone who know is one can listens for a
print composer to startup by the user and act on it.



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Building-plugin-for-Print-Composer-tp5212187p5212221.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Referencing QgsComposerAttributeTable from a Print Composer Template

2015-05-28 Thread Jakob Lanstorp
When referencing a QgsComposerAttributeTable from a Print Composer template
like this:

composerView = composerList[0]
composition = composerView.composition()
attrtable = composition.getComposerItemById('MyComposerAttributeTable') 

I get a class 'qgis._core.QgsComposerFrame' returned in attrtable object.
I would expect a QgsComposerAttributeTable?

Need to set a filter on the attribute table in the print composer. 

Since the composer is large with a lot of items, I have made the template in
the print composer and getting the items with
getComposerItemById('MyItemId'). If I build the composer from scratch in
Python, I can of course use the QgsComposerAttributeTable, but is not an
option here.



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Referencing-QgsComposerAttributeTable-from-a-Print-Composer-Template-tp5207995.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Referencing QgsComposerAttributeTable from a Print Composer Template

2015-05-28 Thread Jakob Lanstorp
Thanks for the documentation. It's working:

attrtable =
composition.getComposerItemById('MyComposerAttributeTable').multiFrame() 

returns a QgsComposerAttributeTable

Jakob



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Referencing-QgsComposerAttributeTable-from-a-Print-Composer-Template-tp5207995p5207998.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Great HF organization in Noedebo. Many thanks

2015-05-28 Thread Jakob Lanstorp
Also thanks, from a local, for a great event at Nødebo. Lene also
instantiated the upcoming Danish QGIS user group. A round of applause 

Jakob 



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Great-HF-organization-in-Noedebo-Many-thanks-tp5207722p5208001.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

[Qgis-developer] Spatialite selection[0].geometry().asPoint() (0, 0)

2014-07-22 Thread Jakob Lanstorp
When using a point shapefile I can get the point of geometry of a selected
feature. When using a point layer from a Spatialite DB I can not?

Shapefile:
 lyr = QgsMapLayerRegistry.instance().mapLayersByName('point_shape')[0]
 selection = lyr.selectedFeatures()
 selection[0].geometry().asPoint()
(535265,6.25118e+06)

Spatialite:
 lyr =
 QgsMapLayerRegistry.instance().mapLayersByName('point_spatialite')[0]
 selection = lyr.selectedFeatures()
 selection[0].geometry().asPoint()
(0,0)

Why the (0,0) when point layer is from a Spatialite DB? Using OSGEO4W QGIS
2.4.

Thanks,
Jakob



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Spatialite-selection-0-geometry-asPoint-0-0-tp5152456.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Spatialite selection[0].geometry().asPoint() (0, 0)

2014-07-22 Thread Jakob Lanstorp
Sorry, did the test in QGIS 2.2. The issue is not shapefile vs. spatialite,
but QGIS 2.2 API vs. 2.4.
There must be a change in API in QGIS 2.4 returning (0,0) using
selection[0].geometry().asPoint() on an arbitrary data source.



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Spatialite-selection-0-geometry-asPoint-0-0-tp5152456p5152471.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Spatialite selection[0].geometry().asPoint() (0, 0)

2014-07-22 Thread Jakob Lanstorp
Somehow my table was a multipoint table, converting it to a point table fixed
the problem. Sorry for the noice.



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Spatialite-selection-0-geometry-asPoint-0-0-tp5152456p5152486.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Spatialite version in QGIS 2.3.master

2014-06-05 Thread Jakob Lanstorp
I have a 64-bit QGIS 2.3.0-Master on Ubuntu with a Spatialite version of
3.0.0-beta.
On a Windows machine with a OSGEO4W QGIS 2.2 32-bit the Spatialite version
is 4.1.1.

Why is the Spatialite version older on the newer QGIS version?

thanks,
Jakob



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Spatialite-version-in-QGIS-2-3-master-tp5144205.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] libxml2 missing in OSGEO4W

2014-03-18 Thread Jakob Lanstorp
In Ubuntu QGIS 2.3 I can in the Python console run import libxml2. If I try
the same on a OSGEO4W QGIS 2.2 I get: ImportError: No module named
libxml2. If I look under OSGEO4W advanced install I can see that the
libxml2 library is included. But the library is not importable in the Python
console of QGIS?

How can I get the libxml2 library available in Windows QGIS 2.2?

http://osgeo-org.1560.x6.nabble.com/file/n5129607/Image3.jpg 

Thanks,
Jakob



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/libxml2-missing-in-OSGEO4W-tp5129607.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Enable snapping on intersections

2014-01-31 Thread Jakob Lanstorp
Snap to intersection makes you snap to just that intersection point. Did a
test with two polygon layers and a point layer. Adding a point to the point
layer, while within the snap tolerance, made the point appear right on the
intersection between the two polygon layers. Removing the 'Enable snapping
on intersection' made the point not snap to the intersection.

I have set snapping settings to both polygon layers, prehaps you missed that
in the snap options.



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Enable-snapping-on-intersections-tp5101200p5101219.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] SOAP from the Python console in QGIS

2013-11-13 Thread Jakob Lanstorp
I´m trying to install a SOAP API kaldet SUDS, on a Windows 7 OS, to be able
to run SOAP from the QGIS Python console and pyQGIS/Python scripts.

The only Python I have installed is the one comming with QGIS 2.01
standalone. How can I install an external Python library like SUDS, to be
used within QGIS Python?

Thanks,
Jakob





-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SOAP-from-the-Python-console-in-QGIS-tp5088922.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Re: [Qgis-developer] Tutorial Atlas

2013-08-30 Thread Jakob Lanstorp
You can only iterate over one layer in one composer, at one time, but you can
show all the layers you want in the resulting maps. 

The layer that works as a iterator is define in the 'Coverage layer' in the
Atlas tab. The zoom level is either fixed to a predefined scale, or dynamic
set to the bound of each geometry of the Coverage layer, when the iterator
works through the records of the Coverage layer.

This feature is very powerful: Thanks goes to the sponsors and developers
for making this available :)

I am not quite sure what you mean by: Actually, what I wish to do is to
capture the extent of my first shapefile layer, store it in the composer
layer and iterate the process over the other shapefile layers.

Regards
Jakob




-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Tutorial-Atlas-tp5074980p5075168.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Update map bug in master

2013-06-18 Thread Jakob Lanstorp
If one runs a 'Select by location' in QGIS 1.9.0-Master, the map is not
updated with the new selection. If you, after running the algorithm,
manually press the Refresh map button the selection becomes visibly.

Jakob



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Update-map-bug-in-master-tp5060810.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Update map bug in master

2013-06-18 Thread Jakob Lanstorp
Cannot log on the hub for reporting issues. I guess it is the same log in,
has to this mailing list??

Jakob



-
Jakob Lanstorp
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Update-map-bug-in-master-tp5060810p5060825.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] Sextante modeler throws a ''NameError: global name 'os' is not defined

2013-03-30 Thread Jakob Lanstorp
Thanks Anita -downloading the plugin directly (not using the plugin
installer) solved the problem :)

Jakob



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Sextante-modeler-throws-a-NameError-global-name-os-is-not-defined-tp5043710p5043778.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Sextante modeler throws a ''NameError: global name 'os' is not defined

2013-03-29 Thread Jakob Lanstorp
I cannot run the modeler in Sextante on a QGIS 1.8 with a Windows 7 - 64 bit.

It seems like the issue closed here http://hub.qgis.org/issues/7187,
stating: Fixed in master

Will this mean that on a W7 64bit one has to wait to the next version of
QGIS for the modeler to work?

Thank
Jakob



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Sextante-modeler-throws-a-NameError-global-name-os-is-not-defined-tp5043710.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Instead of trigger - Updating a PostGIS view from QGIS

2013-03-22 Thread Jakob Lanstorp
Has anyone tried to use an Instead of trigger in PostGIS from QGIS; Updating
multiple tables in PostGIS from QGIS in one go. 

Jakob



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Instead-of-trigger-Updating-a-PostGIS-view-from-QGIS-tp5042313.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] lxml in QGIS 1.8

2013-03-11 Thread Jakob Lanstorp
Hi, 

I have developed a Python plugin to QGIS 1.9.master. Trying to get it to run
in QGIS 1.8 I am getting the error: ImportError: No module named lxml.

Are there any ways to include the lxml library in a QGIS 1.8 plugin and
distribute it?

Is there any change log on the QGIS Python API from 1.8 to 1.9. Comparing
the earlier API version at www.qgis.org/api/ is not optimal. 

Thanks,
Jakob 



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/lxml-in-QGIS-1-8-tp5039575.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] Get bound map tool

2013-01-23 Thread Jakob Lanstorp
Hi all,

I'm making a plugin where I need a tool for the user to define a bound by
dragging a rectangle on the map. Just like the 'Select Features By
Rectangle' tool. I have looked at the plugin 'Rectangles, ovals digitizing'
with the Rectangle By Extent tool.

Is there a more 'native' approach in QGIS Python. I just need the bound
coordinates for a REST call.

Thanks,
Jakob 



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Get-bound-map-tool-tp5029215.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


Re: [Qgis-developer] [Qgis-user] python error

2012-12-04 Thread Jakob Lanstorp
Just updated 1.9.master on Ubuntu and got the same error starting QGIS:

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

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

Running in a terminal: 'sudo apt-get upgrade' I get:

Reading package lists... Done
Building dependency tree   
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
Setting up python-qgis-common (1.9.0+git20121201+80fa7aa~precise-ubuntugis1)
...
Compiling
/usr/share/qgis/python/plugins/sextante/admintools/httplib2/__init__.py ...
SyntaxError: ('from __future__ imports must occur at the beginning of the
file',
('/usr/share/qgis/python/plugins/sextante/admintools/httplib2/__init__.py',
26, None, 'from __future__ import generators\n'))

pycentral: pycentral pkginstall: error byte-compiling files (496)
pycentral pkginstall: error byte-compiling files (496)
dpkg: error processing python-qgis-common (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of python-qgis:
 python-qgis depends on python-qgis-common (=
1.9.0+git20121201+80fa7aa~precise-ubuntugis1); however:
  Package python-qgis-common is not configured yet.

dpkg: error processing python-qgis (--configure):
 dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup
error from a previous failure.
  Errors were encountered while processing:
 python-qgis-common
 python-qgis
E: Sub-process /usr/bin/dpkg returned an error code (1)

/Jakob




--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Re-Qgis-user-python-error-tp5020446p5020498.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


[Qgis-developer] XSLT in a QGIS plugin

2012-10-10 Thread Jakob Lanstorp
I need to transform XML into HTML in a Python QGIS plugin I am writing. Is
there XSLT available in QGIS Python? What would be the recommended approach? 

Jakob



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/XSLT-in-a-QGIS-plugin-tp5007716.html
Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
___
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer