Re: [Qgis-user] Re : Atlas data defined rotation and zoom problem

2014-12-09 Thread Paolo Cavallini
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Il 09/12/2014 00:47, Junior ha scritto:
 Great tutorial, Alexandre. Shouldn't it be included in QGis
 official training manual?

Agreed, it would be a great addition.
Alexandre, could you please issue a Pull Request?
All the best.

- -- 
Paolo Cavallini - www.faunalia.eu
QGIS  PostGIS courses: http://www.faunalia.eu/training.html
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iEYEARECAAYFAlSGr80ACgkQ/NedwLUzIr6XtACgqFNZbIGNrjRDA8ZMYPodBuQP
WJ4AmQGicHe6N8OTR+j8+LbTNfDBfYTz
=lKXI
-END PGP SIGNATURE-
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Wrong values if DEM in grid format is reprojected

2014-12-09 Thread Agustin Lobo
I'm using a DEM in esri grid format
(see 
http://www.icc.cat/eng/Home-ICC/Geoinformacio-digital/Sobre-la-geoinformacio-ICGC/Models-Digitals-d-Elevacions)
which consisits on a txt file with the data and an xml file with the metadata.
The projection is UTM31N on ETRS89 datum (EPSG:25831)

If I display the layer on a project with the same EPSG:25831 there is
no problem,
but if I set the project projection to Geographic coordinates in WGS84
(EPSG:4326),
while the grey shades look coorrect and the coordinates are correct, the
actual values are totally wrong: values such as 7.999140e-136.

Is this a general problem with this format? Is there any fix? Is this
a bug to be reported?

Reprojecting to a gtiff using Raster/Projections/Warp works fine.

Thanks

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


Re: [Qgis-user] Re : Atlas data defined rotation and zoom problem

2014-12-09 Thread Alexandre Neto
I'm not very familiar with the training manual so I will have to see where
would it fit. I don't know if there's a atlas chapter already.

Best regards,

Alexandre Neto
Em 09/12/2014 08:16, Paolo Cavallini cavall...@faunalia.it escreveu:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 09/12/2014 00:47, Junior ha scritto:
  Great tutorial, Alexandre. Shouldn't it be included in QGis
  official training manual?

 Agreed, it would be a great addition.
 Alexandre, could you please issue a Pull Request?
 All the best.

 - --
 Paolo Cavallini - www.faunalia.eu
 QGIS  PostGIS courses: http://www.faunalia.eu/training.html
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iEYEARECAAYFAlSGr80ACgkQ/NedwLUzIr6XtACgqFNZbIGNrjRDA8ZMYPodBuQP
 WJ4AmQGicHe6N8OTR+j8+LbTNfDBfYTz
 =lKXI
 -END PGP SIGNATURE-
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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

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

2014-12-09 Thread Richard Duivenvoorde

Hi Germán,

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

This one was easy, and working immediately:

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

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

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

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

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

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

hope this helps!

Regards,

Richard Duivenvoorde




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

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


Re: [Qgis-user] Re : Atlas data defined rotation and zoom problem

2014-12-09 Thread Matteo Ghetta
Hi Alexandre,
if you want I can help you with this issue. I'm not familiar with the
training manual too, but I think it could be a good idea to start a own
atlas chapter

Cheers

Matteo

2014-12-09 11:10 GMT+01:00 Alexandre Neto senhor.n...@gmail.com:

 I'm not very familiar with the training manual so I will have to see where
 would it fit. I don't know if there's a atlas chapter already.

 Best regards,

 Alexandre Neto
 Em 09/12/2014 08:16, Paolo Cavallini cavall...@faunalia.it escreveu:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 09/12/2014 00:47, Junior ha scritto:
  Great tutorial, Alexandre. Shouldn't it be included in QGis
  official training manual?

 Agreed, it would be a great addition.
 Alexandre, could you please issue a Pull Request?
 All the best.

 - --
 Paolo Cavallini - www.faunalia.eu
 QGIS  PostGIS courses: http://www.faunalia.eu/training.html
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iEYEARECAAYFAlSGr80ACgkQ/NedwLUzIr6XtACgqFNZbIGNrjRDA8ZMYPodBuQP
 WJ4AmQGicHe6N8OTR+j8+LbTNfDBfYTz
 =lKXI
 -END PGP SIGNATURE-
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


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

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

[Qgis-user] Problems with display resolution 768 px heitgh

2014-12-09 Thread Amedeo Fadini
Hi everybody,

My laptop has a display resolution (native) 1366x768
today for the first time I've opened the field calculator window
with an alert inside that move the OK button a bit otu of my
monitor...

Is there any option to use Qgis with this resolution?

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


[Qgis-user] cannot connect to X server

2014-12-09 Thread devquestio...@gmail.com
I am seeing the error cannot connect to X server in a stand alone python
application at 
app = QgsApplication([], True). 

As suggested in the mailing archives I tried setting DISPLAY env varable to
, but that does not resolve the problem. Would be a great help if you can
point me any references on the issue or have any suggestions on what i can
try. 

Os Ubuntu

code :

import os
import sys

#qgisprefix = '/usr'
qgisprefix='/usr/share/qgis/resources'


os.environ['DISPLAY']=
from qgis.core import *

from qgis.gui import *

# configure QGIS paths
QgsApplication.setPrefixPath(qgisprefix, True)

# initalise QGIS
QgsApplication.initQgis()

app = QgsApplication([], True)






--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/cannot-connect-to-X-server-tp5177010.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Which Projection to use?

2014-12-09 Thread Joris Hintjens
thanks Kristin and Nicolas,

Now I get which UTM zone I’ min, and I’ve been spending the last hours in 
trying to find the corresponding EPSG code and/or the proj4  code to enter in 
QGIS. they are not listed in the default list in Qgis
Any suggestions welcome

Joris
 
 Op 8-dec.-2014, om 22:50 heeft Nicolas Cadieux nicolas.cadi...@archeotec.ca 
 het volgende geschreven:
 
 Hi,
 
 Your easiest bet is to use WGS84 with UTM Zones.  It covers the planet, and 
 the UTM zones are meter.   See attachments for the zones.  Ex: EPSG 32618 = 
 WGS84 / UTM18N 
 
 Nicolas
 
 
  
 
 Le 2014-12-08 16:09, K.Bott [via OSGeo.org] a écrit :
 Hi Joris,
 
 One starting point might be here -- 
 http://www.radicalcartography.net/index.html?projectionref 
 http://www.radicalcartography.net/index.html?projectionref -- expand the 
 categories for a sense of what they translate to in terms of visuals.
 
 cheers -
 -kristin
 
 On Mon, Dec 8, 2014 at 11:23 AM, Joris Hintjens [hidden email] 
 x-msg://2/user/SendEmail.jtp?type=nodenode=5176943i=0 wrote:
 Hello,
 
 My problem:
 I have to create a series of maps all around the world. For each map, I need 
 a appropriate CRS in meters (t create buffers etc…) 
 Does anybody know a source out there where I can see the extends of existing 
 projections I can use for each map?
 
 I keep bouncing up to http://spatialreference.org/ 
 http://spatialreference.org/ , but the list is of no use to me, as there 
 is no map.
 thanks
 
 Joris
  
 
 ___
 Qgis-user mailing list
 [hidden email] x-msg://2/user/SendEmail.jtp?type=nodenode=5176943i=1
 http://lists.osgeo.org/mailman/listinfo/qgis-user 
 http://lists.osgeo.org/mailman/listinfo/qgis-user
 
 
 ___ 
 Qgis-user mailing list 
 [hidden email] x-msg://2/user/SendEmail.jtp?type=nodenode=5176943i=2 
 http://lists.osgeo.org/mailman/listinfo/qgis-user 
 http://lists.osgeo.org/mailman/listinfo/qgis-user 
 
 If you reply to this email, your message will be added to the discussion 
 below:
 http://osgeo-org.1560.x6.nabble.com/Which-Projection-to-use-tp5176939p5176943.html
  
 http://osgeo-org.1560.x6.nabble.com/Which-Projection-to-use-tp5176939p5176943.html
 To start a new topic under Quantum GIS - User, email [hidden email] 
 x-msg://2/user/SendEmail.jtp?type=nodenode=5176949i=0 
 To unsubscribe from Quantum GIS - User, click here 
 applewebdata://047E9CC2-6620-4E09-80E2-00F31BF8281B.
 NAML 
 http://osgeo-org.1560.x6.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml
 
  World_UTM_WGS84.zip (199K) Download Attachment 
 http://osgeo-org.1560.x6.nabble.com/attachment/5176949/0/World_UTM_WGS84.zip
 View this message in context: Re: Which Projection to use? 
 http://osgeo-org.1560.x6.nabble.com/Which-Projection-to-use-tp5176939p5176949.html
 Sent from the Quantum GIS - User mailing list archive 
 http://osgeo-org.1560.x6.nabble.com/Quantum-GIS-User-f4125267.html at 
 Nabble.com.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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

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

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

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

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


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

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


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

Regards,

Germán




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


 Hi Germán,

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

 This one was easy, and working immediately:

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

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

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

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

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

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

 hope this helps!

 Regards,

 Richard Duivenvoorde




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


-- 
---
   |\__

Re: [Qgis-user] Which Projection to use?

2014-12-09 Thread Nicolas Cadieux
Hi, 
They are there in QGIS. Filter for WGS84 in the CSR and you will find 
them.nbsp; That's how I got the code I gave you below.nbsp; 
Nicolas Cadieux M.Sc. 
Les Entreprises Arch#233;otec inc.#160; 
8548, rue Saint-Denis Montr#233;al H2P 2H2 
T#233;l#233;phone:#160;514.381.5112 #160;Fax: 514.381.4995 
Le 2014-12-09 07:14, quot;Joris Hintjens [via OSGeo.org]   quot; 
lt;ml-node+s1560n5177018...@n6.nabble.comgt; a écrit : 

thanks Kristin and Nicolas, Now I get which UTM zone I’ min, and I’ve 
been spending the last hours in trying to find the corresponding EPSG code 
and/or the proj4 nbsp;code to enter in QGIS. they are not listed in the 
default list in Qgis Any suggestions welcome Joris nbsp; Op 8-dec.-2014, om 
22:50 heeft Nicolas Cadieux lt; [hidden email] gt; het volgende geschreven: 
  

  
  
Hi, 

Your easiest bet is to use WGS84 with UTM Zones.nbsp; It covers the
planet, and the UTM zones are meter.nbsp;nbsp; See attachments for the
zones.nbsp; Ex: EPSG 32618 = WGS84 / UTM18N 

Nicolas 


nbsp; 

Le 2014-12-08 16:09, K.Bott [via
  OSGeo.org ] a écritnbsp;: 

lt;blockquote style='border-left:2px solid #CC;padding:0 1em' 
style=quot;border-left:2px solid #CC;padding:0 1emquot; 
cite=quot;mid:capvlb7+sd9rjhkwy-inx02_rgvdzw7z1bgqgl7wqcz20q1h...@mail.gmail.comquot;
 type=quot;citequot; class=quot;quot;gt;
  Hi Joris,


One starting point might be here --nbsp; 
http://www.radicalcartography.net/index.html?projectionref 
  -- expand the categories for a sense of what they translate to
  in terms of visuals. 


cheers - 
-kristin 
  
  
On Mon, Dec 8, 2014 at 11:23 AM, Joris
  Hintjens lt;lt;a moz-do-not-send=quot;truequot; 
href=quot;x-msg://2/user/SendEmail.jtp?type=nodeamp;amp;node=5176943amp;amp;i=0quot;
 target=quot;_topquot; rel=quot;nofollowquot; link=quot;externalquot; 
class=quot;quot;gt;[hidden
  email] gt; wrote: 
  lt;blockquote style='border-left:2px solid #CC;padding:0 1em' 
style=quot;border-left:2px solid #CC;padding:0 1emquot; 
class=quot;gmail_quotequot;gt;
Hello,
  
  
  My problem: 
  I have to create a series of maps all around the
world. For each map, I need a appropriate CRS in meters
(t create buffers etc…)nbsp; 
  Does anybody know a source out there where I can see
the extends of existing projections I can use for each
map? 
  
  
  I keep bouncing up tonbsp; http://spatialreference.org/ nbsp;,
but the list is of no use to me, as there is no map. 
  thanks 
  
  
  
  Joris 
  nbsp; 


___ 
Qgis-user mailing list 
lt;a moz-do-not-send=quot;truequot; 
href=quot;x-msg://2/user/SendEmail.jtp?type=nodeamp;amp;node=5176943amp;amp;i=1quot;
 target=quot;_topquot; rel=quot;nofollowquot; link=quot;externalquot; 
class=quot;quot;gt;[hidden
  email] 
http://lists.osgeo.org/mailman/listinfo/qgis-user 
  


  
  
  ___
  
  Qgis-user mailing list
  
  lt;a moz-do-not-send=quot;truequot; 
href=quot;x-msg://2/user/SendEmail.jtp?type=nodeamp;amp;node=5176943amp;amp;i=2quot;
 target=quot;_topquot; rel=quot;nofollowquot; link=quot;externalquot; 
class=quot;quot;gt;[hidden email] 
  
  http://lists.osgeo.org/mailman/listinfo/qgis-user 
  
  
  
  
If you reply to this email, your
  message will be added to the discussion below: 

http://osgeo-org.1560.x6.nabble.com/Which-Projection-to-use-tp5176939p5176943.html
 
  
  
To start a new topic under Quantum GIS - User, email
lt;a 
href=quot;x-msg://2/user/SendEmail.jtp?type=nodeamp;amp;node=5176949amp;amp;i=0quot;
 target=quot;_topquot; rel=quot;nofollowquot; link=quot;externalquot; 
class=quot;quot;gt;[hidden email]  
To unsubscribe from Quantum GIS - User, click
  here . 
NAML  


  

 World_UTM_WGS84.zip (199K) Download Attachment 





View this message in context: Re: Which Projection to use? 
Sent from the Quantum GIS - User mailing list archive  at Nabble.com . 
___ Qgis-user mailing list [hidden 
email] http://lists.osgeo.org/mailman/listinfo/qgis-user 
___
Qgis-user mailing list
[hidden email] 
http://lists.osgeo.org/mailman/listinfo/qgis-user 








If 

[Qgis-user] Importing SVG files for symbols

2014-12-09 Thread Ludwig Gamsjäger


I would need some help to import svg symbols into QGIS Brighton. My main
problem is that there is no documentation (or I can’t find it) how to
proceed with this. Programs like Inkscape would read my files but not QGIS.
Maybe somebody is out there giving me hints or a reference documentation;
thanks in advance,

 

Ludwig

 

Ludwig Gamsjäger

Bergengasse 4/1/8

A-1220 Vienna, Austria

phone: +43 (0) 681 2066-3138

email: lu...@bergengasse.at

 

This message is confidential and intended solely for the addressee. If you
received this message in error, please immediately inform the sender and
delete the message and any attachments. Thank you. To the extent permitted
by law, I shall in no way be liable for any damages, whatever their nature,
arising out of transmission failures, viruses, external influences, delays
and the like.

 

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

Re: [Qgis-user] Wrong values if DEM in grid format is reprojected

2014-12-09 Thread Nicolas Cadieux
Hi, could be a bug or it could be simply the tool you are using to get the 
values.  How are you getting the values?

Below, you are comparing 2 things. A) project  reprojections on the fly vs b) 
file reprojecting.

Project on the fly reprojection  works for the screen but is not the best way 
to get the values.

To make sure you have no mistakes using tools like the value tool, make sure 
the project is in the same CRS as the raster layer.  Then, the tools and values 
should be good.

If you use gdal warp, remember that all reprojection lead to changes in raster 
values so some change will happen.  That's why you can use various algorithms 
to do that. 

To see if you have a bug with the file format,  save the Esri grid in .tif 
using  UTM31N on ETRS89 datum (EPSG:25831). 

Then change the project CRS  and reproject on the fly and see if you have the 
same problem as above.

If you have the same problem, the problem is in the on the fly reprojection 
and how the tools works with it.  If you don't have the same problem, then the 
only thing that changed is the file format therefore you have a bug.

Good luck.

Nicolas Cadieux M.Sc.
Les Entreprises Archéotec inc. 
8548, rue Saint-Denis Montréal H2P 2H2
Téléphone: 514.381.5112  Fax: 514.381.4995

Le 2014-12-09 05:10, Agustin Lobo [via OSGeo.org] 
ml-node+s1560n5176993...@n6.nabble.com a écrit :

 I'm using a DEM in esri grid format 
 (see 
 http://www.icc.cat/eng/Home-ICC/Geoinformacio-digital/Sobre-la-geoinformacio-ICGC/Models-Digitals-d-Elevacions)
  
 which consisits on a txt file with the data and an xml file with the 
 metadata. 
 The projection is UTM31N on ETRS89 datum (EPSG:25831) 

 If I display the layer on a project with the same EPSG:25831 there is 
 no problem, 
 but if I set the project projection to Geographic coordinates in WGS84 
 (EPSG:4326), 
 while the grey shades look coorrect and the coordinates are correct, the 
 actual values are totally wrong: values such as 7.999140e-136. 

 Is this a general problem with this format? Is there any fix? Is this 
 a bug to be reported? 

 Reprojecting to a gtiff using Raster/Projections/Warp works fine. 

 Thanks 

 Agus 
 ___ 
 Qgis-user mailing list 
 [hidden email] 
 http://lists.osgeo.org/mailman/listinfo/qgis-user


 
 If you reply to this email, your message will be added to the discussion 
 below:
 http://osgeo-org.1560.x6.nabble.com/Wrong-values-if-DEM-in-grid-format-is-reprojected-tp5176993.html
 To start a new topic under Quantum GIS - User, email 
 ml-node+s1560n4125267...@n6.nabble.com 
 To unsubscribe from Quantum GIS - User, click here.
 NAML



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Wrong-values-if-DEM-in-grid-format-is-reprojected-tp5176993p5177062.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] Which Projection to use?

2014-12-09 Thread Andre Joost

Am 09.12.2014 um 13:14 schrieb Joris Hintjens:

thanks Kristin and Nicolas,

Now I get which UTM zone I’ min, and I’ve been spending the last
hours in trying to find the corresponding EPSG code and/or the proj4
code to enter in QGIS. they are not listed in the default list in
Qgis Any suggestions welcome



To get the UTM zone, simply add 3 to your local easting, divide by 6, 
round to integer and add 30. The UTM North zone EPSG code is 32600 + UTM 
zone, UTM South is 32700 + UTM zone


HTH,
André Joost

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


Re: [Qgis-user] Importing SVG files for symbols

2014-12-09 Thread Alex Mandel
This page shows the process:
http://learninggis.com/gis-resources/qgis-oilandgas-symbol

Thanks,
Alex

On 12/09/2014 08:03 AM, Ludwig Gamsjäger wrote:
 
 
 I would need some help to import svg symbols into QGIS Brighton. My main
 problem is that there is no documentation (or I can’t find it) how to
 proceed with this. Programs like Inkscape would read my files but not QGIS.
 Maybe somebody is out there giving me hints or a reference documentation;
 thanks in advance,
 
  
 
 Ludwig
 
  
 
 Ludwig Gamsjäger
 
 Bergengasse 4/1/8
 
 A-1220 Vienna, Austria
 
 phone: +43 (0) 681 2066-3138
 
 email: lu...@bergengasse.at
 
  
 
 This message is confidential and intended solely for the addressee. If you
 received this message in error, please immediately inform the sender and
 delete the message and any attachments. Thank you. To the extent permitted
 by law, I shall in no way be liable for any damages, whatever their nature,
 arising out of transmission failures, viruses, external influences, delays
 and the like.
 
  
 
 
 
 
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user
 

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


Re: [Qgis-user] Re : Atlas data defined rotation and zoom problem

2014-12-09 Thread Alexandre Neto
Hi matteo,

Yes we can team up to create a new chapter just for atlas.

There are lots of different uses for it.

How do you wanna start it? Email? IRC?

Best regards,

Alexandre
 Em 09/12/2014 11:05, Matteo Ghetta matteo.ghe...@gmail.com escreveu:

 Hi Alexandre,
 if you want I can help you with this issue. I'm not familiar with the
 training manual too, but I think it could be a good idea to start a own
 atlas chapter

 Cheers

 Matteo

 2014-12-09 11:10 GMT+01:00 Alexandre Neto senhor.n...@gmail.com:

 I'm not very familiar with the training manual so I will have to see
 where would it fit. I don't know if there's a atlas chapter already.

 Best regards,

 Alexandre Neto
 Em 09/12/2014 08:16, Paolo Cavallini cavall...@faunalia.it escreveu:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Il 09/12/2014 00:47, Junior ha scritto:
  Great tutorial, Alexandre. Shouldn't it be included in QGis
  official training manual?

 Agreed, it would be a great addition.
 Alexandre, could you please issue a Pull Request?
 All the best.

 - --
 Paolo Cavallini - www.faunalia.eu
 QGIS  PostGIS courses: http://www.faunalia.eu/training.html
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1

 iEYEARECAAYFAlSGr80ACgkQ/NedwLUzIr6XtACgqFNZbIGNrjRDA8ZMYPodBuQP
 WJ4AmQGicHe6N8OTR+j8+LbTNfDBfYTz
 =lKXI
 -END PGP SIGNATURE-
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user


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



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

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

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

ah, sorry sorry :-(

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

looking into the code:

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

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

here:

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


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

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

tried stuff like:

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

but all that I got working was a simple:

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

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

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

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

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

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

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

OGRVRTDataSource

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

/OGRVRTDataSource

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

qgis mypgconnection.vrt  \o/

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

qgis mypgproject.qgs

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

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

Regards,

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


Re: [Qgis-user] Which Projection to use?

2014-12-09 Thread Joris Hintjens
Thanks Joost and Nicolas

I did not find the richt EPSG Code because I was looking the code for zone 
U,V,W etc. I learned now that one for North and One for south hemisphere per 
zone does the trick


 Op 9-dec.-2014, om 17:12 heeft Andre Joost andre+jo...@nurfuerspam.de het 
 volgende geschreven:
 
 Am 09.12.2014 um 13:14 schrieb Joris Hintjens:
 thanks Kristin and Nicolas,
 
 Now I get which UTM zone I’ min, and I’ve been spending the last
 hours in trying to find the corresponding EPSG code and/or the proj4
 code to enter in QGIS. they are not listed in the default list in
 Qgis Any suggestions welcome
 
 
 To get the UTM zone, simply add 3 to your local easting, divide by 6, round 
 to integer and add 30. The UTM North zone EPSG code is 32600 + UTM zone, UTM 
 South is 32700 + UTM zone
 
 HTH,
 André Joost
 
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user

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


Re: [Qgis-user] Wrong values if DEM in grid format is reprojected

2014-12-09 Thread Goyo
2014-12-09 11:09 GMT+01:00 Agustin Lobo alobolis...@gmail.com:
 I'm using a DEM in esri grid format
 (see 
 http://www.icc.cat/eng/Home-ICC/Geoinformacio-digital/Sobre-la-geoinformacio-ICGC/Models-Digitals-d-Elevacions)
 which consisits on a txt file with the data and an xml file with the metadata.
 The projection is UTM31N on ETRS89 datum (EPSG:25831)

 If I display the layer on a project with the same EPSG:25831 there is
 no problem,
 but if I set the project projection to Geographic coordinates in WGS84
 (EPSG:4326),
 while the grey shades look coorrect and the coordinates are correct, the
 actual values are totally wrong: values such as 7.999140e-136.

This looks like a bug to me. I remember using the value and identify
tools with reprojected rasters in the pasts (geotiff, but the format
should be irrelevant).

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


Re: [Qgis-user] MrSID on QGIS 2.6.,1, Mac OSK 10.10.1

2014-12-09 Thread William Kyngesburye
On Dec 9, 2014, at 5:06 PM, Dave Peterson da...@iit.edu wrote:

 On 7 Dec 14, at 11:03 PM, William Kyngesburye wokl...@kyngchaos.com wrote:
 
 Check my site.  The GDAL framework that you should have installed also has a 
 separately downloadable plugin for the MrSID format.
 
 On Dec 7, 2014, at 7:53 PM, Dave Peterson da...@iit.edu wrote:
 
 I need to be able to display MrSID files made available by the state GIS 
 department.  I had them running on QGIS 1.8, OSX 10.6.8, but I’m not sure 
 what I did back then.  Have searched the Web as best I can and haven’t 
 found any instructions for current QGIS with a current OS.  Can anyone help?
 
 Found it; I’m embarrassed.  Took several times to get everything working.  
 The VERY IMPORTANT POST-INSTALL note says:
 
 Download for OS X 10.7, this should work on all Lion and newer systems 
 (Mavericks is not listed, but either 10.7 or 10.8 SDK should work)
 
 but the LizardTech website now provides downloads for OS 10.8 and 10.9 .  I 
 couldn’t get the 10.9 version to work properly, but the 10.8 version did 
 fine.  (Of course, that may have been something I was doing wrong with the 
 10.9 version.)


They probably used the default libc++ on Mavericks - a new non-gcc one.  It is 
incompatible with software that already uses the gcc libstdc++, like how I 
built the GDAL plugin.  Good to know so I can make the readme more explicit.

-
William Kyngesburye kyngchaos*at*kyngchaos*dot*com
http://www.kyngchaos.com/

Time is an illusion - lunchtime doubly so.

- Ford Prefect


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


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

2014-12-09 Thread Larry Shaffer
HI,

Another thing you might try is this command line option:

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

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

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

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

Regards,

Larry Shaffer
Dakota Cartography
Black Hills, South Dakota

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

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

 ah, sorry sorry :-(

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

 looking into the code:

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

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

 here:


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


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

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

 tried stuff like:

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

 but all that I got working was a simple:

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

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

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

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

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

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

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

 OGRVRTDataSource

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

 /OGRVRTDataSource

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

 qgis mypgconnection.vrt  \o/

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

 qgis mypgproject.qgs

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

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

 Regards,

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

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

Re: [Qgis-user] MrSID on QGIS 2.6.,1, Mac OSK 10.10.1

2014-12-09 Thread Dave Peterson
On 7 Dec 14, at 11:03 PM, William Kyngesburye wokl...@kyngchaos.com wrote:

 Check my site.  The GDAL framework that you should have installed also has a 
 separately downloadable plugin for the MrSID format.
 
 On Dec 7, 2014, at 7:53 PM, Dave Peterson da...@iit.edu wrote:
 
 I need to be able to display MrSID files made available by the state GIS 
 department.  I had them running on QGIS 1.8, OSX 10.6.8, but I’m not sure 
 what I did back then.  Have searched the Web as best I can and haven’t found 
 any instructions for current QGIS with a current OS.  Can anyone help?

Found it; I’m embarrassed.  Took several times to get everything working.  The 
VERY IMPORTANT POST-INSTALL note says:

Download for OS X 10.7, this should work on all Lion and newer systems 
(Mavericks is not listed, but either 10.7 or 10.8 SDK should work)

but the LizardTech website now provides downloads for OS 10.8 and 10.9 .  I 
couldn’t get the 10.9 version to work properly, but the 10.8 version did fine.  
(Of course, that may have been something I was doing wrong with the 10.9 
version.)

I made one frustrating discovery:  All of my QGIS 1.8 projects could be read 
into the new QGIS, but they wouldn’t display the MrSID backgrounds.  I finally 
discovered that I could get the backgrounds back by manually recreating the 
raster layers from the original MrSID files.  Sigh.  That probably means 
reloading a hundred or so raster layers.  But once that’s done
--
Dave Peterson

da...@iit.edu


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


[Qgis-user] Spatialite queries return text instead of numeric values

2014-12-09 Thread Alexandre Neto
Hello,

When querying a spatialite database in the database manager, if you create
some calculations (say add two columns values) the resulting column returns
as TEXT instead of the expected numeric field.

Is this intended or a bug?

Trying to cast it as real, double or float did not work either.

Thanks,

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

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

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

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

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

 ah, sorry sorry :-(


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

 looking into the code:

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

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

 Good catch!


 here:


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


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


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


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

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

 tried stuff like:

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

 but all that I got working was a simple:

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

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

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

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


Same here, QGIS prepends the user's folder.



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

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

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

 OGRVRTDataSource

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

 /OGRVRTDataSource

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

 qgis mypgconnection.vrt  \o/

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

 qgis mypgproject.qgs

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


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


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

 Regards,

 Richard Duivenvoorde


Thanks again!

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

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

Regards,

Germán

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

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

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

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

Regards,

Germán

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

 HI,

 Another thing you might try is this command line option:

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

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

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

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

 Regards,

 Larry Shaffer
 Dakota Cartography
 Black Hills, South Dakota

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

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

 ah, sorry sorry :-(

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

 looking into the code:

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

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

 here:


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


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

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

 tried stuff like:

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

 but all that I got working was a simple:

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

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

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

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

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

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

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

 OGRVRTDataSource

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

 /OGRVRTDataSource

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

 qgis mypgconnection.vrt  \o/

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

 qgis mypgproject.qgs

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

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

 Regards,

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





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

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

Re: [Qgis-user] Importing SVG files for symbols

2014-12-09 Thread Alex Mandel
Can you post an example svg file online for other people to test?
Have you tried importing some known working svg icons?

Thanks,
Alex

On 12/09/2014 10:37 PM, Ludwig Gamsjäger wrote:
 Alex,
 
 thanks for your input, unfortunately this what I tried but it seems not to
 work in 2.6. The location in options is now moved to options/system, I
 inputted all my paths but it does not allow me to access the symbols.
 Also trying to import in the Share function fails, it gives an error like
 invalid svg tag in file or so.
 Maybe there is something I have overlooked in other tabs in options, anyway,
 thanks,
 
 Ludwig
 
 
 
 -Ursprüngliche Nachricht-
 Von: Alex Mandel [mailto:tech_...@wildintellect.com] 
 Gesendet: Dienstag, 09. Dezember 2014 18:37
 An: Ludwig Gamsjäger; qgis-user@lists.osgeo.org
 Betreff: Re: [Qgis-user] Importing SVG files for symbols
 
 This page shows the process:
 http://learninggis.com/gis-resources/qgis-oilandgas-symbol
 
 Thanks,
 Alex
 
 On 12/09/2014 08:03 AM, Ludwig Gamsjäger wrote:


 I would need some help to import svg symbols into QGIS Brighton. My 
 main problem is that there is no documentation (or I can’t find it) 
 how to proceed with this. Programs like Inkscape would read my files but
 not QGIS.
 Maybe somebody is out there giving me hints or a reference 
 documentation; thanks in advance,

  

 Ludwig

  

 Ludwig Gamsjäger

 Bergengasse 4/1/8

 A-1220 Vienna, Austria

 phone: +43 (0) 681 2066-3138

 email: lu...@bergengasse.at

  

 This message is confidential and intended solely for the addressee. If 
 you received this message in error, please immediately inform the 
 sender and delete the message and any attachments. Thank you. To the 
 extent permitted by law, I shall in no way be liable for any damages, 
 whatever their nature, arising out of transmission failures, viruses, 
 external influences, delays and the like.

  




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

 

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