[Qgis-user] Fwd: SciPy 2014: Proceedings, and one more chance to submit!

2014-03-16 Thread Carson Farmer
Apologies for cross-posting!

SciPy 2014 submission deadline extended!

SciPy 2014, the thirteenth annual Scientific Computing with Python
 conference, will be held this July 6th-12th in Austin, Texas. SciPy is a
 community dedicated to the advancement of scientific computing through open
 source Python software for mathematics, science, and engineering. The
 annual SciPy Conference allows participants from all types of organizations
 to showcase their latest projects, l earn from skilled users and
 developers, and collaborate on code development.


Due to popular demand, the deadline for submitting talks, tutorials and
posters has been extended to April 1, 2014 - no 'foolin!'  We encourage
submissions related to general scientific computing with Python, one of the
two special themes for this year, or the domain-specific mini-symposia held
during the conference.  Take a look at a few talks [1] from previous years,
our guidelines for this year [2], and we look forward to reviewing
submissions!

Submit your abstracts today [3]!

[1]: http://conference.scipy.org/past.html
[2]: https://conference.scipy.org/scipy2014/participate/presentations/
[3]: https://conference.scipy.org/scipy2014/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user

Re: [Qgis-user] manageR doesn't work well

2012-10-15 Thread Carson Farmer
I realise this post was made ages ago, but I have just uploaded a 'fixed'
version of manageR that solves this problem. Some testing was done with
datasets provided by Paulo van Breugel and Eelke Folmer (offlist). Some
changes to sp from a while back seem to have been the culprit, but I think
I've sorted it out now...

Problems with manageR (rpy2) on Windows persist, but if anyone has any
fixes, workarounds, or useful information about getting manageR and/or rpy2
working nicely, please don't hesitate to post something here:
http://www.carsonfarmer.com/2012/10/manager-and-rpy2-installation-problems/

Cheers,

Carson

On Sat, Aug 11, 2012 at 9:34 PM, Eelke Folmer e.o.fol...@gmail.com wrote:

 Hi,
 I realize this is an old thread. I am getting some files to load nicely
 into manageR but not others (which I can load directly using readOGR). Same
 error as reported below. I find manageR extremely useful when it works and
 it would be nice if it would always work.
 OS linux mint
 R 2.15.1
 QGIS 1.8
 Are there fixes/workarounds?
 Thanks,
 Eelke


 I have tested manageR on Ubuntu Gnome with QGIS 1.6 and R 2.11.1 and now
 the same shapefile that I was testing can be loaded. Now, I can perform
 some analysis on it. Is it because I was on Windows 7 that manageR was not
 working?

 I still have an issue with manageR on Ubuntu. I cant load the shapefile
 with the option Import layer from canvas, and receive this error message:

 Error in `[.data.frame`(data, match.ID[1]) : undefined columns selected


 When I load the data with the option Import layer attribute it seems to
 work. Someone have an idea why the first option is not working? Anybody has
 successfully used manageR in a Windows 7 environment?


 Thank you for your help,

 Maxime






-- 
Carson J. Q. Farmer (PhD)
Centre for GeoInformatics
School of Geography and Geosciences
University of St Andrews
[w] www.carsonfarmer.com
[t] @CarsonFarmer https://twitter.com/CarsonFarmer
[e] carson.far...@gmail.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Using CRS to convert from Lat Long to Irish National Grid

2012-03-27 Thread Carson Farmer
Hi Kurt,

Unfortunately, I think you may have misinterpreted what 'on the fly
projection' and 'set layer CRS' are for. Your layer's CRS should be
set to whatever the coordinates are actually measured in, and if your
layers are indeed in lat/long (probably WGS84), then this should stay
that way. If you change the project CRS to Irish National Grid (are
you sure you want IRENET95/Irish Transverse Mercator? When I work with
Irish data I usually use TM75 /Irish Grid [EPSG code: 29903]), then
turn on 'on the fly projection', things should just line up (assuming
you have the layer CRSs defined correctly). If you're concerned about
it, you can also right click on a layer and select save as... to
export to a new projection (but again, this assumes you have the
initial CRS correctly defined. Do the layers that you are using have
.prj files associated with them, if yes, then QGIS *should*
automatically pick up the correct CRS, so no need to 'set layer CRS'
at all.

HTH,

Carson

On Tue, Mar 27, 2012 at 7:14 PM, Kurt Springs ferret_b...@mac.com wrote:
 Hi Folks,

 I'm in a bit of a pickle.  I am preparing some maps for a grant proposal and 
 wanted to add some good vector maps for lakes and oceans.  The problem is 
 these vector maps are in latitude/longitude and I need to convert them to 
 Irish National Grid.  I tried using v.proj in GRASS but ran into problmes 
 (and that is a different list group anyway).  After searching the internet I 
 discovered CRS.

 I made sure properties was set to IRENET95/Irish Transverse Mercator and 
 checked Enable 'on the fly' CRS transformation.  Then I right clicked the 
 vector layer and selected Set Layer CRS and set it, again, for 
 IRENET95/Irish Transverse Mercator.  If I accept what is there already as 
 right, all the lakes wound up in South America.  It looks like the lat/long 
 numbers didn't convert over.  Is there a way to manually move them into 
 position and make it away that this is it's right and proper position under 
 IRENET95/Irish Transverse Mercator?

 Thanks for any help.

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



-- 
Dr. Carson J. Q. Farmer
Centre for GeoInformatics (CGI)
School of Geography and Geosciences
Irvine Building, University of St Andrews
St Andrews, Fife, KY16 9AL
Scotland, UK
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: Import and open DBF tables in QGIS

2011-11-29 Thread Carson Farmer
Timmie,
 But how do I convert data in the DBF into a point layer based on lat/lon 
 columns?
That will more than likely require you to convert your dbf to a csv
file and import it that way using the delimited text plugin...

Carson




-- 
Dr. Carson J. Q. Farmer
National Centre for Geocomputation (NCG)
National University of Ireland, Maynooth (NUIM)
Maynooth, Co. Kildare, Ireland

Centre for GeoInformatics (CGI)
School of Geography and Geosciences
University of St Andrews
St Andrews, Scotland, UK
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Voronoi polygon errors

2011-11-15 Thread Carson Farmer
Hi Morten,
 Using the fTools plugin and using transparency in the symbology shows this:
 http://osgeo-org.1803224.n2.nabble.com/file/n6995908/fTools_Voronoi.png

 Doing the same using MMQgis Voronoi show this:
 http://osgeo-org.1803224.n2.nabble.com/file/n6995908/Voronoi.png

 fTools add some directly wrong polygons while MMQgis just doubles up some of
 the polygons
Yes, I have found similar problems recently, unfortunately, I haven't
had the time to fix them yet. The module that we use to calculate the
tessellation is not ideal, and as soon as it makes its way into GEOS,
I'd like to use the JTS voronoi polygons solution in QGIS. Please file
a ticket in the bug tracker for now, and I'll see if I can work out a
workaround. In the mean time, if someone else can get to this sooner,
feel free to submit a patch as well!

Cheers,

Carson

-- 
Carson J. Q. Farmer
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: [Qgis-developer] Sponsoring Development.

2011-06-18 Thread Carson Farmer
Just a quick thought, which is sort of based on the 'groupon' concept
that appears to be quite popular at the moment:

Say a user/group/company wants a feature/bug fix/whatever; they could
nominate this work on the QGIS website, where developers could take a
look (perhaps there could also be an automated email to the developers
list or a separate list so developers don't have to manually check the
page all the time). If a developer decided it was something they might
like to work on, they could provide an estimate of cost, including the
cost of a proper estimate. This would then be added to the nominated
task on the website, and would open up the task for 'bidding', such
that any similarly interested groups could offer up as much as they
were wiling to offer (perhaps some minimum here could be established).
Eventually, if the task was popular enough, the suggested cost would
be reached, and at that stage the developer could begin development.
If the minimum cost was not reached (perhaps within a certain time
limit), then the task would be dropped from the page, and all parties
who had initially 'bid' on the task would get their 'bid' back. This
whole process is then quite open and transparent, and if users see
that a task it close to reaching the desired cost, they might be more
inclined to put forward that final bid to get it started!
This suggestion still doesn't really address the issue of an initial
estimate, but perhaps the initial estimate cost could be shouldered by
the original nominating group/user?

Just a thought,

Carson

On Sat, Jun 18, 2011 at 1:53 PM, Ramon Andinach cust...@westnet.com.au wrote:
 Hello all (developers and non-developers both),
 Consider this a reaction to have you considered sponsoring development. 
 From a non-developer. Who is still trying to understand how the sponsoring 
 development idea works.

 It is likely to be a bit long. If you have time, I'd appreciate it if you 
 could read and comment on the long version. If not, this is a short version:
 1. For me it would be easier to sponsor development, if I knew what it would 
 cost.
 2. Numbers of people are asking for the same features, and numbers of people 
 are saying they're small and can't afford development.

 I've had a bit of a conversation with Paolo, and now realise that 1. is a 
 chicken and egg situation, and hence awkward, but 2. could be helped by 
 making groups of people who want a feature to sponsor it.

 So I'm wondering, from those who've had experience;
 a.) how does one get around, the I'd like a cost estimate but the cost 
 estimate takes time and about half the work problem?
 b.) has anyone tried putting groups of sponsors together? If so, how did it 
 go?




 
 This is the long version.
 It's mostly what I'd been through with Paolo, but expanded a bit more so my 
 thought process is (hopefully) a bit clearer.[*]

 I'm attached to one of the many small companies that make use of QGIS. I had 
 thought that it would be good to provide support to QGIS, and I had been 
 thinking in the form of sponsoring development to go after either a few 
 annoying bugs or one or two features that I'd like. While I was thinking 
 about this a few thoughts occurred.
 1. For me, and I suspect many others, it would be very useful to be able to 
 go my boss and say, I'd like us to support QGIS develop a useful feature, 
 and it will cost this much. ie, have a good estimate.[!]
 2. I'm also noticing;
  a. a number of features have been requested by a number of different people. 
 A good example of this is multi-column legends in the composer.[@]
  b. a number of different people have (essentially) said, we're really small 
 and can't afford to sponsor development.

 I remember reading on one of the QGIS lists that many feature developments 
 were not as expensive as most people thought, I recall €2-300 being 
 mentioned.[#]

 Somehow I've put these together and bits together and realised that if there 
 were 10 users who wanted a useful feature then suddenly they only need to 
 provide €20-30, which is much more manageable.

 I've asked Paolo for some thoughts and Paolo pointed out that:
 3. There have previously been problems with payment after the development was 
 done, and
 4. To get a really good estimate, this often costs about half the total cost 
 of the project so they may unwilling to work through to that point with out 
 some certainty of payment.

 
 So from my non-developer stand point this makes 1. and 4. a problem. But for 
 the purposes of going forward, there are two ways of short-circuiting this 
 that might work:
 5. Developer takes initiative - to attract development, features wanting 
 sponsorship get worked to a point where an estimate of total cost can be 
 made. (Probably not viable - see [%])
 6. Users take initiative - For the purposes of getting a group of sponsors 
 running, start with an assumed cost, which can be refined later.


 So, from the User Initiative end (6.) a work-flow 

Fwd: [Qgis-user] QgsVectorLayer causes Failed to load error

2011-06-16 Thread Carson Farmer
I'd like to 'second' this observation. No matter what combination of
PYTHONPATH, LD_LIBRARY_PATH etc I try, I can't seem to get this
working either. I'm forwarding this thread to the developers mailing
list as well. Any suggestions? I've never had this problem before,
though I'm sure its something I'm doing :-p

Carson

#

Hello,

I know this problem has been discussed many times, but the usual
remedies are not working.

First I run the following commands from the shell:

export LD_LIBRARY_PATH=/usr/local/qgis/lib
export PYTHONPATH=/usr/local/qgis/share/qgis/python


Then I run the following program:

from qgis.core import *

qgis_prefix = '/usr/local/qgis/'

QgsApplication.setPrefixPath('/usr/local/qgis/', True)
QgsApplication.initQgis()

vlayer=QgsVectorLayer('./tl_2009_09001_faces.shp','tl_2009_09001_faces','ogr')
print vlayer.isValid()


I get the error message Failed to load.

I am using the 1.18 debian packages.  It works fine if I run these
commands from the python console in qgis.  Any suggestions?  Thanks.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] RE: manageR doesn't work well

2011-05-23 Thread Carson Farmer
 I added R folder in the PATH environment variable but its not helping me
 with my problem. Actually, manageR can be loader correctly in QGIS but when
 I try to import a shapefile with the tool Import Layer from Canvas, I cannot
 perform analysis on this data. It seems manageR cannot load the data which
 is a simple polygon shapefile with an attribute table of strings and
 numbers. When I type ls() or objects() in manageR I got the awnser
 character(0) which means there is no variable loaded.

 Im on Windows 7 32bit, QGIS 1.7.0 R 2.11.0 and Rpy2 2.0.3-1

 Anybody have successfuly performed an analysis on a shapefile with manageR ?
Lots of people have, so it is possible ;-) Did you check that both the
sp and rgdal packages were installed as I mentioned before?
What happens if you type something like the following into the manageR console:

 library(rgdal)
 layer - readOGR(C:\path\to\your\layer.shp, layer=shape)

also, see ?readOGR to make sure your arguments are correct.

Alternatively, you can use the Analysis  Spatial operations  Load
OGR data menu if you like.

Carson

 
 Date: Mon, 23 May 2011 02:42:11 -0700
 From: [hidden email]
 To: [hidden email]
 Subject: RE: manageR doesn't work well

 Hi,

 a very common source of problems with R and QGIS is not having the
 bin folder of C:\Program Files\R-x.y in your PATH environment
 variable. It is necessary and not created by R installation
 automatically.

 Vaclav

 2011/5/22 Carson Farmer [hidden email]:
 hmm, Ok, well the only other thing I can think of is that you might
 need to install the following packages:

 install.packages(c(sp, rgdal))

 Carson

 On Sun, May 22, 2011 at 3:22 PM, burton449 [hidden email] wrote:
 Hi Carson,

 Sorry, my mistake, I use R 2.11.0 because in this version the executable
 are
 stored in a subdirectory that rpy2 can read. Newer version of R its not
 working with rpy2. I will try your trick to change the code in the
 __init__.py but I dont think it would solve my problem. Actually manageR
 is
 loading in QGIS but its not working properly.

 Thank you
 Maxime

 
 Date: Sun, 22 May 2011 06:11:10 -0700
 From: [hidden email]
 To: [hidden email]
 Subject: Re: manageR doesn't work well

 Hi Maxime,

 Im using manageR 1.0, QGIS 1.7 and 1.6 and R 1.11.0 on Windows 7
 Are you sure you're using R 1.11.0? That's a pretty old version! Also,
 which version of rpy2 are you using? Furthermore, I attach an email
 from another manageR using with a possible solution for Windows 7
 issues:

 I had a problem getting ManageR to run on QGIS 1.60 (OSGeoW4 install)
 with R-2.12.1 (32 bit) on Windows 7 64 bit systems. Rpy2 complained
 about not finding R.dll.
 Newer versions of R place the executable files in a new subdirectory,
 i386, below the bin directory on Windows 7 systems.

 After searching the net for a while, I finally found the following
 post, which seems to fix the problem:
 http://www.mail-archive.com/rpy-list@.../msg02779.html
  Try adding these two lines to rinterface/__init__.py
     # Load the R dll using the explicit path
     # First try the bin dir:
     Rlib = os.path.join(R_HOME, 'bin', 'R.dll')
     # Try bin/i386 subdirectory seen in R 2.12.0  ## ADDED ##
     if not os.path.exists(Rlib):                ## ADDED ##
       Rlib = os.path.join(R_HOME, 'bin', 'i386', 'R.dll')  ## ADDED ##
     # Then the lib dir:
     if not os.path.exists(Rlib):
       Rlib = os.path.join(R_HOME, 'lib', 'R.dll')
     # Otherwise fail out!
     if not os.path.exists(Rlib):
       raise RuntimeError(Unable to locate R.dll within %s % R_HOME)

 Hope that helps a bit,

 Carson

 --
 Carson J. Q. Farmer
 ISSP Doctoral Fellow
 National Centre for Geocomputation
 National University of Ireland, Maynooth,
 http://www.carsonfarmer.com/
 ___
 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.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6391395.html
 To unsubscribe from manageR doesn't work well, click here.
 
 View this message in context: RE: manageR doesn't work well
 Sent from the qgis-user mailing list archive at Nabble.com.

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





 --
 Carson J. Q. Farmer
 ISSP Doctoral Fellow
 National Centre for Geocomputation
 National University of Ireland, Maynooth,
 http://www.carsonfarmer.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

Re: [Qgis-user] Re: manageR doesn't work well

2011-05-22 Thread Carson Farmer
Hi Maxime,

 Im using manageR 1.0, QGIS 1.7 and 1.6 and R 1.11.0 on Windows 7
Are you sure you're using R 1.11.0? That's a pretty old version! Also,
which version of rpy2 are you using? Furthermore, I attach an email
from another manageR using with a possible solution for Windows 7
issues:

I had a problem getting ManageR to run on QGIS 1.60 (OSGeoW4 install)
with R-2.12.1 (32 bit) on Windows 7 64 bit systems. Rpy2 complained
about not finding R.dll.
Newer versions of R place the executable files in a new subdirectory,
i386, below the bin directory on Windows 7 systems.

After searching the net for a while, I finally found the following
post, which seems to fix the problem:
http://www.mail-archive.com/rpy-list@lists.sourceforge.net/msg02779.html
 Try adding these two lines to rinterface/__init__.py
    # Load the R dll using the explicit path
    # First try the bin dir:
    Rlib = os.path.join(R_HOME, 'bin', 'R.dll')
    # Try bin/i386 subdirectory seen in R 2.12.0  ## ADDED ##
    if not os.path.exists(Rlib):                ## ADDED ##
      Rlib = os.path.join(R_HOME, 'bin', 'i386', 'R.dll')  ## ADDED ##
    # Then the lib dir:
    if not os.path.exists(Rlib):
      Rlib = os.path.join(R_HOME, 'lib', 'R.dll')
    # Otherwise fail out!
    if not os.path.exists(Rlib):
      raise RuntimeError(Unable to locate R.dll within %s % R_HOME)

Hope that helps a bit,

Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] RE: manageR doesn't work well

2011-05-22 Thread Carson Farmer
hmm, Ok, well the only other thing I can think of is that you might
need to install the following packages:

install.packages(c(sp, rgdal))

Carson

On Sun, May 22, 2011 at 3:22 PM, burton449 burto...@sympatico.ca wrote:
 Hi Carson,

 Sorry, my mistake, I use R 2.11.0 because in this version the executable are
 stored in a subdirectory that rpy2 can read. Newer version of R its not
 working with rpy2. I will try your trick to change the code in the
 __init__.py but I dont think it would solve my problem. Actually manageR is
 loading in QGIS but its not working properly.

 Thank you
 Maxime

 
 Date: Sun, 22 May 2011 06:11:10 -0700
 From: [hidden email]
 To: [hidden email]
 Subject: Re: manageR doesn't work well

 Hi Maxime,

 Im using manageR 1.0, QGIS 1.7 and 1.6 and R 1.11.0 on Windows 7
 Are you sure you're using R 1.11.0? That's a pretty old version! Also,
 which version of rpy2 are you using? Furthermore, I attach an email
 from another manageR using with a possible solution for Windows 7
 issues:

 I had a problem getting ManageR to run on QGIS 1.60 (OSGeoW4 install)
 with R-2.12.1 (32 bit) on Windows 7 64 bit systems. Rpy2 complained
 about not finding R.dll.
 Newer versions of R place the executable files in a new subdirectory,
 i386, below the bin directory on Windows 7 systems.

 After searching the net for a while, I finally found the following
 post, which seems to fix the problem:
 http://www.mail-archive.com/rpy-list@.../msg02779.html
  Try adding these two lines to rinterface/__init__.py
     # Load the R dll using the explicit path
     # First try the bin dir:
     Rlib = os.path.join(R_HOME, 'bin', 'R.dll')
     # Try bin/i386 subdirectory seen in R 2.12.0  ## ADDED ##
     if not os.path.exists(Rlib):                ## ADDED ##
       Rlib = os.path.join(R_HOME, 'bin', 'i386', 'R.dll')  ## ADDED ##
     # Then the lib dir:
     if not os.path.exists(Rlib):
       Rlib = os.path.join(R_HOME, 'lib', 'R.dll')
     # Otherwise fail out!
     if not os.path.exists(Rlib):
       raise RuntimeError(Unable to locate R.dll within %s % R_HOME)

 Hope that helps a bit,

 Carson

 --
 Carson J. Q. Farmer
 ISSP Doctoral Fellow
 National Centre for Geocomputation
 National University of Ireland, Maynooth,
 http://www.carsonfarmer.com/
 ___
 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.1803224.n2.nabble.com/manageR-doesn-t-work-well-tp5543144p6391395.html
 To unsubscribe from manageR doesn't work well, click here.
 
 View this message in context: RE: manageR doesn't work well
 Sent from the qgis-user mailing list archive at Nabble.com.

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





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: Re: CLip and reprojection on the fly

2011-03-18 Thread Carson Farmer

 I think that requiring all layers to be on the same CRS for processing
 makes sense,
 we can live with that. Perhaps this fact should be stated in the
 documentation and
 even in the menu where the user selects reprojection on the fly (for
 example, adding
 only for display of vector layers) and/or in all fTools menus (and/or
 fTools could actually check that
 CRS is consistent across layers and warn the user (rather than preventing
 him/her of actually performing the operation).

I think I'll opt for the warning in fTools functions, however, does this not
already happen? I'm pretty sure the dialog that pops up after the operation
has completed says something like Warning: Non-matching CRSs detected,
results might be unexpected or something to that effect (I don't actually
have my result computer here to check)?

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


Re: [Qgis-user] lines to polygons

2011-03-18 Thread Carson Farmer
This tool essentially expects you to have your data in the format
produced by polygons to lines. In other words, where each line is it's
own polygon boundary, and as far as I can remember, the line should be
closed (i.e. starts and ends at the same point).

Carson

On Fri, Mar 18, 2011 at 1:00 PM, Duarte Carreira dcarre...@edia.pt wrote:
 Hi.



 I’m trying to use this function and need some help. What are the
 requirements for this tool? Does it work for a single closed line? Does it
 work with several connected lines that make a ring? Does it work with
 spaghetti lines?



 Thanks,

 Duarte

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





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Very slow performance with large SHP files, with over 200k objects

2011-03-08 Thread Carson Farmer
Porting fTools to C++ is already under way, but it is extremely slow
at the moment (due to my PhD!). If there are any C++ devs out there
with an interest in speeding these operations up, please don't
hesitate to contact me!

My other comment, which is frequently given on the R mailing lists, is
this: There are rarely any problems that can't be broken down into
smaller components; if you have issues with visualizing/working with
large vector layers, why not try sub-setting the layers into
manageable pieces?

Carson

On Tue, Mar 8, 2011 at 6:16 PM, Agustin Lobo alobolis...@gmail.com wrote:
 At least regarding the vector operations (ftools), it seems that the
 slowness is because of python code. During
 FOSS4G in Barcelona we raised the question of rewriting all that part in c++

 Agus

 2011/3/7 Giovanni Manghi giovanni.man...@gmail.com:

 Agreed, this is a serious problem, and should be dealt with. There is a
 ticket on this, please have a look to it.

 it is even worst when you try edit those vectors.

 ___
 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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Incorrect Results in Buffer

2011-03-04 Thread Carson Farmer
Hi Frederick,

 The situation: I have my project SRS set to EPSG:900913 (web mercator). As a
 layer I have a line-layer also with EPSG:900913 as a projection. The
 project-wide units are meters. I now want to add a 250m buffer around the
 lines so i click vector-geoprocessing tools-Buffer(s), select my
 line-layer, type in 250 for 250 meters, check dissolve buffer results ans
 set a filename. Then the buffer is created, but unfortunately, when I export
 the buffer as kml and check the buffer width in Google Earth it is around
 150-160 meters, so far off my 250meters. I also checked the distance with
 the qGIS measurement-tool - same result.
By 'same result' here, do you mean it measures 150-160 metres in QGIS as well?
 The lines are located in London. I have tried to use simple WGS84 and the
 british nationale grind, but none of them worked.
What does this mean? No output was created, or they produced similarly
'wrong' results?
 This has to do something with differente base-ellipsoids I think, but I did
 not get to the bottom of the problem.
 Could anybody please help me with this?
Well one possible issue could be due to the fact that fTools (i.e. the
vector menu), does not take into account the project CRS _or_ 'on the
fly projection'. In fact, it only considers the CRS of the unput
layer. This being the case, if the units for your input layer aren't
in metres, then neither will your output. There are several reasons
for why fTools does this, though it's possible that this will be
changed in the future.

Does that shed any light on the error?

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] ftools error in the recent update

2011-03-01 Thread Carson Farmer
I was not aware of this problem. Could you please update to the most
recent version of fTools via the Python repositories, and then test
and confirm that this is still an issue. If it is, could you please
forward the error message that you are getting.

Regards,

Carson

On Tue, Mar 1, 2011 at 9:15 AM, Carson Farmer carson.far...@gmail.com wrote:
 This is likely due to an update I made last night. Apologies for that!
 I have uploaded a new version which should not have these problems.
 Please test and confirm that it is fixed.

 Regards,

 Carson

 On Tue, Mar 1, 2011 at 3:26 AM, maning sambale
 emmanuel.samb...@gmail.com wrote:
 I get this error:

 Couldn't load plugin fTools due an error when calling its classFactory() 
 method

 Traceback (most recent call last):
  File 
 /Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py,
 line 138, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File /Users/maning/.qgis/python/plugins/fTools/__init__.py, line
 36, in classFactory
    from fTools import fToolsPlugin
  File 
 /Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py,
 line 279, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File /Users/maning/.qgis/python/plugins/fTools/fTools.py, line 37, in
    import resources_rc
  File 
 /Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py,
 line 279, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
 ImportError: No module named resources_rc

 Python version:
 2.5.1 (r251:54863, Sep  1 2010, 22:03:14)
 [GCC 4.0.1 (Apple Inc. build 5465)]


 QGIS version:
 1.6.0-Copiapo Copiapo, exported

 Python path: ['/Applications/Qgis.app/Contents/MacOS/../Resources/python',
 '/Users/maning/.qgis/python', '/Users/maning/.qgis/python/plugins',
 '/Applications/Qgis.app/Contents/MacOS/../Resources/python/plugins',
 '/Library/Frameworks/SQLite3.framework/Versions/3/Python',
 '/Library/Python/2.5/site-packages/numpy-override',
 '/Library/Frameworks/GDAL.framework/Versions/1.7/Python/site-packages',
 '/Library/Python/2.5/site-packages/GDAL-1.5.2-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/setuptools-0.6c8-py2.5.egg',
 '/Library/Python/2.5/site-packages/python_dateutil-1.4-py2.5.egg',
 '/Library/Python/2.5/site-packages/PyYAML-3.05-py2.5.egg',
 '/Library/Python/2.5/site-packages/gantt-0.1-py2.5.egg',
 '/Library/Python/2.5/site-packages/numpy-1.1.1-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/pycairo-1.6.4-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/Shapely-1.0.6-py2.5.egg',
 '/Library/Python/2.5/site-packages/pyparsing-1.5.2-py2.5.egg',
 '/Library/Python/2.5/site-packages/rpy2-2.0.8-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/PIL-1.1.7-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/docutils-0.6-py2.5.egg',
 '/Library/Python/2.5/site-packages/pyproj-1.8.8-py2.5-macosx-10.5-i386.egg',
 '/Library/Frameworks/cairo.framework/Versions/1/Python',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload',
 '/Library/Python/2.5/site-packages',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC',
 '/Users/maning/.qgis/python/plugins/cadtools/tools', '~/.qgis/python']

 --
 cheers,
 maning
 --
 Freedom is still the most radical idea of all -N.Branden
 wiki: http://esambale.wikispaces.com/
 blog: http://epsg4253.wordpress.com/
 --
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




 --
 Carson J. Q. Farmer
 ISSP Doctoral Fellow
 National Centre for Geocomputation
 National University of Ireland, Maynooth,
 http://www.carsonfarmer.com/




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] ftools error in the recent update

2011-03-01 Thread Carson Farmer
This is likely due to an update I made last night. Apologies for that!
I have uploaded a new version which should not have these problems.
Please test and confirm that it is fixed.

Regards,

Carson

On Tue, Mar 1, 2011 at 3:26 AM, maning sambale
emmanuel.samb...@gmail.com wrote:
 I get this error:

 Couldn't load plugin fTools due an error when calling its classFactory() 
 method

 Traceback (most recent call last):
  File 
 /Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py,
 line 138, in startPlugin
    plugins[packageName] = package.classFactory(iface)
  File /Users/maning/.qgis/python/plugins/fTools/__init__.py, line
 36, in classFactory
    from fTools import fToolsPlugin
  File 
 /Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py,
 line 279, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
  File /Users/maning/.qgis/python/plugins/fTools/fTools.py, line 37, in
    import resources_rc
  File 
 /Applications/QGIS.app/Contents/MacOS/../Resources/python/qgis/utils.py,
 line 279, in _import
    mod = _builtin_import(name, globals, locals, fromlist, level)
 ImportError: No module named resources_rc

 Python version:
 2.5.1 (r251:54863, Sep  1 2010, 22:03:14)
 [GCC 4.0.1 (Apple Inc. build 5465)]


 QGIS version:
 1.6.0-Copiapo Copiapo, exported

 Python path: ['/Applications/Qgis.app/Contents/MacOS/../Resources/python',
 '/Users/maning/.qgis/python', '/Users/maning/.qgis/python/plugins',
 '/Applications/Qgis.app/Contents/MacOS/../Resources/python/plugins',
 '/Library/Frameworks/SQLite3.framework/Versions/3/Python',
 '/Library/Python/2.5/site-packages/numpy-override',
 '/Library/Frameworks/GDAL.framework/Versions/1.7/Python/site-packages',
 '/Library/Python/2.5/site-packages/GDAL-1.5.2-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/setuptools-0.6c8-py2.5.egg',
 '/Library/Python/2.5/site-packages/python_dateutil-1.4-py2.5.egg',
 '/Library/Python/2.5/site-packages/PyYAML-3.05-py2.5.egg',
 '/Library/Python/2.5/site-packages/gantt-0.1-py2.5.egg',
 '/Library/Python/2.5/site-packages/numpy-1.1.1-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/pycairo-1.6.4-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/Shapely-1.0.6-py2.5.egg',
 '/Library/Python/2.5/site-packages/pyparsing-1.5.2-py2.5.egg',
 '/Library/Python/2.5/site-packages/rpy2-2.0.8-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/PIL-1.1.7-py2.5-macosx-10.5-i386.egg',
 '/Library/Python/2.5/site-packages/docutils-0.6-py2.5.egg',
 '/Library/Python/2.5/site-packages/pyproj-1.8.8-py2.5-macosx-10.5-i386.egg',
 '/Library/Frameworks/cairo.framework/Versions/1/Python',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload',
 '/Library/Python/2.5/site-packages',
 '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC',
 '/Users/maning/.qgis/python/plugins/cadtools/tools', '~/.qgis/python']

 --
 cheers,
 maning
 --
 Freedom is still the most radical idea of all -N.Branden
 wiki: http://esambale.wikispaces.com/
 blog: http://epsg4253.wordpress.com/
 --
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] divide poligons

2011-02-24 Thread Carson Farmer
Hi Dario,

 I have a layer of polygons, these polygons are cut by two parallel lines.
 Sometimes just one line crosses the polygon, dividing it into two.
 need to create new polygons, formed by the polygon area that is contained
 between the lines, and the areas that are outside the inner lines, and the
 second case to create new polygons formed by the two areas divided by the
 line.
 Is there any plugin or geoprocess  in quantum gis what running this?
 I can only do the reverse process, which is the polygon cut the lines that
 intersect with it, but I can not do otherwise with the lines dividing the
 polygon.
I don't know of any plugin that will do this, but it can certainly be
done using the Python scripting interface in QGIS. The attached Python
script *should* do what you want for most basic applications. A usage
example is given at the top of the script, but basically you just save
the script somewhere where the QGIS Python console can find it (best
bet is your ~/.qgis/python folder where all your plugins are
installed, if you don't know where this is, the Python plugin
installer should indicate this on the main dialog). Then simply type
(into the QGIS Python console):

 canvas = qgis.utils.iface.mapCanvas()
 layer_a = canvas.layer(0) # polygon layer
 layer_b = canvas.layer(1) # line layer
 from split_polygons import split_polygons
 split_polygons(layer_a, layer_b, /home/username/Desktop/output.shp)

This assume that your polygon layer in the top layer in the layer list
(and is visible), and the line layer in the second from the top (and
is also visible). The 3rd argument to split_polygons is the output
path for the resultant shapefile, and can be any valid path string, so
on Windows it might be something like: C:\workingfolder\output.shp

Let me know if you need any further help with the script. It's really
just a quick stab at this. I tested it using very basic polygons and
lines that I hand digitised for testing purposes. Eventually I'll try
to make it into a plugin, but until then it should at least get you
going.

Regards,

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/


split_polygons.py
Description: Binary data
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] line to polygons

2011-02-24 Thread Carson Farmer
This feature will be added to the latest version of QGIS (I might have
already done so :-p). If you can't wait, email me off list, and I'll
come up with something available now.

Carson

On 24 February 2011 14:08, Dario dari...@yahoo.com.br wrote:
 how to convert lines to polygons?
 I've seen this tool in other's sig and I missed this in qgis.

 Thanks

 Dario

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





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Select by location - Problem

2011-02-14 Thread Carson Farmer
Hi Freddy,
Are your two layers using the same CRS? Even with 'on the fly
projection' on, this tool will not find intersections unless they are
in the same projection. In fact, all the vector menu tools follow this
general 'rule'.

Carson

2011/2/14 Frederick Löbig ze...@zeroxweb.de:
 Hey there,
 I want to use the select by location function to select buildings wich are
 within a certain distance from a cable. I started by generating a buffer
 around the line-parts. Now I want to use the function select by location
 to select every building wich intersects with that buffer. But somehow, when
 I hit OK, the prograssbar starts to move to 100%, finishes, but doesn't
 select anything.
 I wanted to find out why that is so I created a new project, added some
 points (shapefile), added a polygon (shapefile) and tried to select the
 intersecting points, but with no success. Why is that?
 This is what I did:
 Select features in points that intersect features in polygon. Modify
 current selection by creating new selection.
 I also tried to flip polygon and points.
 Can anybody help me with this please?
 Best,
 Freddy


 Frederick Löbig
 Röderichstraße 59
 60489 Frankfurt am Main
 ---
 E:: frederick.loe...@grunsnid.de
 P: +49 (0) 69 - 78 99 52 41
 M: +49 (0) 174 - 70 89 296
 ---
 Office:
 euNetworks GmbH
 Ludwig-Landmann-Straße 405
 60486 Frankfurt am Main
 P: +49 (0) 69 - 90 554 - 532
 E: frederick.loe...@eunetworks.com
 S: floebig

 This email and any attachments may contain confidential and/or legally
 privileged information. If you are not the intended recipient, please delete
 the email without reading it and notify the sender.


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





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Jenks breaks available ?

2011-02-02 Thread Carson Farmer
Jérôme,

You shouldn't have to download anything extra, and your OS shouldn't
matter either. Are you positive that you are in fact using New
Symbology? You may have to enable it by clicking on the New symbology
button on your layer's Style tab. Once that has been activated, it
should just be a matter of selecting the right mode as Marco has
pointed out.

Carson

On 2 February 2011 22:00, Jérôme - GeoRezo.net jer...@georezo.net wrote:
 Hi Marco,

 Yes, It  seems like the documentation I have read, but I don't see any mode
 except equal interval, quantiles and empty.

 I'm under Windows OS, does it matter ?

 Thanks,
 Jérôme

 -Message d'origine- From: Marco Hugentobler
 Sent: Wednesday, February 02, 2011 10:45 PM
 To: qgis-user@lists.osgeo.org
 Cc: Jérôme - GeoRezo.net
 Subject: Re: [Qgis-user] Jenks breaks available ?


 Hi Jérôme

 In the vector properties dialog, you need to change to new symbology (Style-

 New symbology). Then classification to 'Graduated'. There is a combo box

 'Mode' where you can select Jenks classification (natural breaks).

 Regards,
 Marco

 Am Mittwoch, 2. Februar 2011, um 21.56:23 schrieb Jérôme - GeoRezo.net:

 Hello,

 When I read the QGIS documentation, I see the jenks break classification
 method is available.

 But I can't see it on the Copiapo software (neither the trunk version).


 What can I do to get this classification method ?

 Thanks


 Jérôme

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


 --
 Dr. Marco Hugentobler
 Sourcepole - Linux  Open Source Solutions
 Churerstr. 22, CH-8808 Pfäffikon SZ, Switzerland
 marco.hugentob...@sourcepole.ch http://www.sourcepole.ch
 Technical Advisor QGIS Project Steering Committee
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Nearest neighbour analysis

2010-12-07 Thread Carson Farmer
Hi Kurt,

 I've been playing with some of Qgis's vector analysis tools.  Has anyone 
 tried using the Nearest neighbour analysis, under Vector=Analysis Tools?  I 
 have tried it and after seeing the black and white wheel for a while, nothing 
 happens.  How long should it take, depending on the population size?  I've 
 tried populations as small as five and bigger.
I just tested this using the 'popp' point layer from the vmap0 QGIS
sample data, and it ran in about 1 second (incidentally, the nearest
neighbour index turns out to be 0.4 for this dataset). I also tested
it with larger and smaller layers and all seemed fine. Which OS and
version of QGIS  GDAL are you running?

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] using manageR

2010-11-12 Thread Carson Farmer
Hi all, there appears to be an issue with rpy2 and the latest version
of R (2.12.0). I'm currently trying to figure out what the issue is.
If you have an immediate need to get your R-based plugins working, I
would suggest you fire off an email to the rpy2 mailing list here:
http://rpy.sourceforge.net/maillist.html

Carson

On 12 November 2010 12:15, Dr. F. Patrick Graz fg...@unam.na wrote:
 Hi all,
 I have tried to get manageR to work on a windows XP box (R2.12  QGIS
 1.5/1.6)but don't seem to have any luck. To the best of my knowledge I have
 all the necessary extensions installed in R (ade4, aspace, sp, spgrass6,
 rgdal) adehabitat and have rpy2 installed.

 When I tried using QGIS 1.5 manageR would tell me that it could not find the
 r212.dll (I didn't write that error msg down...) but at least it tried...
 With 1.6 extension does not respond at all (i.e. you click on its icon and
 nothing happens).

 I have tried uninstalling and re-installing R and qgis but it's still not
 working. Where would I need to look to find out if my installation is
 sufficiently complete - and should be working. Is there a compatibility
 issue between the versions of the software - or software and extensions?

 Another thought - when I upgraded from R2.10 to R2.12 on an Ubuntu machine I
 could also not access manageR anymore...

 Any help would be welcome.

 Patrick
 --
 Dr. F. Patrick Graz
 Snr. Researcher,
 Multidisciplinary Research Centre,
 University of Namibia


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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Overview (inset map ) in map composer

2010-10-27 Thread Carson Farmer
Hi Marco,

You can simply add another map to the canvas, and then set the extents and
scale to only cover your area of interest.

Carson

On 27 October 2010 13:59, Marco Tuckner marcotuck...@public-files.dewrote:

 Dear all,
 I quite like the new print composer.

 But I need a hint:
 How do I achive a small overview map connced to the main view?

 The aim is to show in the overview map, via a rectangle which area is shonw
 in
 detail on the main map inset.

 Example:

 http://www.colorado.edu/geography/foote/maps/assign/cityrank/tips_city_rank_files/insertmapelements.gif

 (taken from:

 http://www.colorado.edu/geography/foote/maps/assign/cityrank/tips_city_rank.html
 )

 Thanks a lot in advance for any hint,
 Marco

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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Plug-in not working: spqr

2010-10-20 Thread Carson Farmer
spqr requires rpy (rather than rpy2). You should be able to install both rpy
and rpy2 on the same system, so it shouldn't be a problem to install rpy and
get going with spqr.

Carson

On 21 October 2010 01:26, Phil Morefield philmorefi...@yahoo.com wrote:


  I must have tried to install it a thousand times. Every time I get the
 same message:

 The plug-in is broken. Python said:
 Couldn't obtain version from output of 'R --version'.

 Other plug-ins relying on R work fine. R --version gives me long string
 that includes the version number. Anyone have a bright idea?


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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] polygon direction/orientation

2010-10-13 Thread Carson Farmer
Perhaps you could elaborate a bit more here? How do you define the azimuth
of a complex shape? Say I have a rectangle like this [], what is the
azimuth?
An example might help?

Carson

On 13 October 2010 17:08, simogeo simon.geor...@gmail.com wrote:


 Hi,

 I'd like to know if there is a plugin to calculate a polygon orientation.
 Basically, if I have a basic rectangle (or even better a complex shape), I
 want to know his azimuth

 I ve seen the azimuth and distance plugin ... but i don't really
 understand how it works and I'm even not sure it does that job. Any idea ?

 Many thanks,
 simo
 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/polygon-direction-orientation-tp5631577p5631577.html
 Sent from the qgis-user mailing list archive at Nabble.com.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: polygon direction/orientation

2010-10-13 Thread Carson Farmer
Well I'm still not exactly sure it is you want, but I'm fairly sure there
isn't a plugin to do this sort of thing. You could certainly do this from
the Python console, or the other option would be to convert your polygons to
lines, then use the azimuth tool on those lines?

Carson

On 13 October 2010 17:29, simogeo simon.geor...@gmail.com wrote:


 Hi Carson,

 I call it azimuth but don't give too much importance to the terminology. I
 just want to know the angle from North And South axis.

 http://osgeo-org.1803224.n2.nabble.com/file/n5631658/azi.jpg


 Keep it simple with a rectangle for now (forget complex shape)



 --
 View this message in context:
 http://osgeo-org.1803224.n2.nabble.com/polygon-direction-orientation-tp5631577p5631658.html
 Sent from the qgis-user mailing list archive at Nabble.com.
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] spatialite (and postgis) queries

2010-09-30 Thread Carson Farmer
Have a look at this:

http://www.carsonfarmer.com/?p=713

and the RT Sql Layer plugin

Carson

On 30 September 2010 13:15, Ricardo Filipe Soares Garcia da
ricardo.garcia.si...@gmail.com wrote:
 Hi list
 Some questions on building querys with spatialite and postgis:

 1 - Is it possible to build a query where two (or more) layers are
 involved? Something like:

 SELECT a.*
 FROM a, b
 WHERE Contains(b, a)

 and get a visual result in the main Qgis display? I know I can do such
 a query using the spatialite manager, but the return value is
 visualized only as tabular data.

 2 - Is it possible to dynamically create new geometries? For example,
 write a custom query that creates a buffer around a point and store it
 in a temporary layer?

 From what I have been investigating it seems that these things are not
 possible. Am I wrong? This kind of functionality would be really
 awesome.

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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: OSM plugin similar to Google Layers Plugin

2010-07-26 Thread Carson Farmer
The OpenLayers plugin will do just what you want, and it's really
quite good. I use it all the time.

Carson

On 26 July 2010 18:21, Timmie timmichel...@gmx-topmail.de wrote:
 Isn't the OpenLayers plugin what you ask for ?
 Yes, thanks for the hint.

 I only knew the OpenStreetmap Editor Plugin.




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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] managerR Python bug

2010-07-26 Thread Carson Farmer
I am aware of this bug, and it will be fixed in the next release of
manageR, which is a complete rewrite of the current version with many
new features and bug fixes.

Thanks for the report!

Carson

On 27 July 2010 00:00, pavel pavel.hnil...@gmail.com wrote:
 There is bug after calling managerR

 Traceback (most recent call last):
  File /home/pavel/.qgis/python/plugins/manageR/manageR.py, line 2110,
 in commandOutput
    self.appendText(unicode(output))
  File /home/pavel/.qgis/python/plugins/manageR/manageR.py, line 2057,
 in appendText
    cursor = self.textCursor()
 RuntimeError: underlying C/C++ object has been deleted

 Verze Pythonu:
 2.6.5 (r265:79063, Apr 16 2010, 14:15:55)
 [GCC 4.4.3]


 QGIS verze:
 1.5.0-Tethys Tethys, exported

 Python cesta: ['/home/pavel/.qgis/python/plugins/GeoCoding',
 '/home/pavel/.qgis/python/plugins/elevation', '/usr/share/qgis/python',
 '/home/pavel/.qgis/python', '/home/pavel/.qgis/python/plugins',
 '/usr/share/qgis/python/plugins', '/usr/lib/python2.6',
 '/usr/lib/python2.6/plat-linux2', '/usr/lib/python2.6/lib-tk',
 '/usr/lib/python2.6/lib-old', '/usr/lib/python2.6/lib-dynload',
 '/usr/lib/python2.6/dist-packages',
 '/usr/lib/python2.6/dist-packages/Numeric',
 '/usr/lib/python2.6/dist-packages/PIL',
 '/usr/lib/python2.6/dist-packages/gst-0.10',
 '/usr/lib/pymodules/python2.6',
 '/usr/lib/python2.6/dist-packages/gtk-2.0',
 '/usr/lib/pymodules/python2.6/gtk-2.0',
 '/usr/lib/python2.6/dist-packages/wx-2.6-gtk2-unicode',
 '/usr/lib/python2.6/dist-packages/wx-2.8-gtk2-unicode',
 '/usr/local/lib/python2.6/dist-packages',
 u'/home/pavel/.qgis//python/plugins',
 '/usr/share/qgis/python/plugins/fTools/tools',
 '/home/pavel/.qgis/python/plugins/cadtools/tools', '~/.qgis/python',
 '/usr/share/qgis/python', '/usr/share/qgis/python/',
 '/usr/share/qgis/python/', '/usr/share/qgis/python', '.',
 '/home/pavel/.qgis/python/plugins/ziplayers/logic',
 '/home/pavel/.qgis/python/plugins/ziplayers/gui', '.',
 '/home/pavel/GISDataBase/cr-grass-jtsk-0.3.2']

 --
 pavel pavel.hnil...@gmail.com

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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] (no subject)

2010-07-25 Thread Carson Farmer
Except that will remove all plugins! What you probably really want is:

rm -rf /Users/hermanpalaquium/.qgis/python/plugins/contour

Which will only remove the contour plugin, which is failing to load
because matplotlib isn't installed...
I think you can also do this from the Python plugin installer by
selecting to remove the plugin?

Carson

 Traceback (most recent call last):
   File
 /Applications/Qgis.app/Contents/MacOS/../Resources/python/qgis/utils.py,
 line 119, in loadPlugin
     __import__(packageName)
   File /Users/hermanpalaquium/.qgis//python/plugins/contour/__init__.py,
 line 28, in
     from contour import Contour
   File /Users/hermanpalaquium/.qgis//python/plugins/contour/contour.py,
 line 38, in
     import matplotlib.pyplot as plt
 ImportError: No module named matplotlib.pyplot

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How to make point density layer?

2010-07-09 Thread Carson Farmer
Vector  Research Tools  Random points should do what you want...

Carson

On 9 July 2010 06:04, Wirote Laongmanee wirot...@gmail.com wrote:
 Dear QGIS-User,

 Could someone direct me to make the point density layer from polygon feature
 with attribute data?

 I am working on biodiversity of mollusca in mangrove area, and would like to
 present the density of mollusca species in area with dot density present.

 I try to deal with grass v.kernel but not succes with the module need point
 layer so I have not that data.

 hope someone can help. thank you in advanced.

 --
 Wirote Laongmanee
 http://wmap.wordpress.com
 http://parn-site.blogspot.com

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





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] mapserver export plugin bug

2010-06-25 Thread Carson Farmer
Potential small bug found during a training course:

If there are two versions of the same PostGIS layer open and
symbolised, one with a WHERE clause, and the other without (i.e. one
should have a filter and one shouldn't), when exporting to a map file
(layers only), both layers appear to have the filter applied. Can
anyone else confirm this? We're using QGIS 1.4 with latest mapserver
export plugin, using local postgis server

Let me know if you need any further info...

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] icons for the vector/ftools toolbox?

2010-06-16 Thread Carson Farmer
They are in the ftools folder
Just curious, what do you need them for, and would you like the originals?

Carson

On 16 June 2010 10:45, maning sambale emmanuel.samb...@gmail.com wrote:
 They are not available in the qgis icons folder in the svn.

 Will be used for training tutorials.
 --
 cheers,
 maning
 --
 Freedom is still the most radical idea of all -N.Branden
 wiki: http://esambale.wikispaces.com/
 blog: http://epsg4253.wordpress.com/
 --
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] icons for the vector/ftools toolbox?

2010-06-16 Thread Carson Farmer
Well I think I've probably released the icons under GPL... but I don't
really care, do what you want with them :-)
They are all based (loosely) on previous qgis icons (and the gis theme
icons as well).

Carson

On 16 June 2010 18:53, Goyo goyod...@gmail.com wrote:
 Hello,

 El mié, 16-06-2010 a las 11:03 +0100, Carson Farmer escribió:
 They are in the ftools folder
 Just curious, what do you need them for, and would you like the originals?

 This reminds me that I've thinking about a modified version of the
 Extract nodes icon for the Points2One plugin. Is this allowed? If so
 what are the requirements (credit, copyright notice, license...)?

 regards

 Goyo





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] conditional dissolve

2010-05-24 Thread Carson Farmer
What about Vector  Geoprocessing tools  Dissolve
With this tool, you are able to process 'only selected features',
which could be done ahead of time for the countries you wish to
dissolve further.
This is a Python tool, so for extremely large datasets it might be a bit slow...

Carson

On Mon, May 24, 2010 at 2:30 PM, A. Marcia BARBOSA
anamarciabarb...@gmail.com wrote:
 Hi,

 I'm using the shapefile of the GADM database of Global Administrative
 Areas (http://www.gadm.org), but the subdivisions of some countries
 (such as Spain, Slovenia and others) are too small. In order to get
 divisions that are more evenly sized among all countries, I need to
 dissolve sub-regions to regions, but only within some of the
 countries. Is there a way to use a conditional dissolve on only some
 selected countries?

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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] conditional dissolve

2010-05-24 Thread Carson Farmer
Good point Pedro, my suggestion wouldn't output all the required
features, only those that were initially selected... You can of course
also edit the table in QGIS if you are using a relatively recent
version, which supports adding fields and a field calculator.

Carson

On Mon, May 24, 2010 at 3:51 PM, Pedro Tarroso ptarr...@mail.icav.up.pt wrote:
 Hi

 I would create a new field in the attribute table to be filled with the
 condition. I believe the simplest way is to use a dbf editor (like
 openoffice spreadsheet or old versions of excel) to create the condition
 field (same code for shapes to be dissolved). Then I would use the Dissolve
 tool from fTools plugin on that field.

 Hope that it helps.

 Boa sorte,
 Pedro

 -Original Message-
 From: qgis-user-boun...@lists.osgeo.org on behalf of A. Marcia BARBOSA
 Sent: Mon 5/24/2010 2:30 PM
 To: qgis-user@lists.osgeo.org; grassuser
 Subject: [Qgis-user] conditional dissolve

 Hi,

 I'm using the shapefile of the GADM database of Global Administrative
 Areas (http://www.gadm.org), but the subdivisions of some countries
 (such as Spain, Slovenia and others) are too small. In order to get
 divisions that are more evenly sized among all countries, I need to
 dissolve sub-regions to regions, but only within some of the
 countries. Is there a way to use a conditional dissolve on only some
 selected countries?

 Cheers
 Márcia
 ___
 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





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Q-gis plugin missing ?

2010-05-18 Thread Carson Farmer
Vector  Research tools  Vector grid

Carson

On Tue, May 18, 2010 at 10:46 AM, Didier Genier didier.gen...@gmail.com wrote:
 Hello everybody,

 I use Q-Gis 1.4 under Ubuntu 10.4. Today I need to create a graticule and my
 memory tell me that I can find this in Plugins... But... no more graticule
 creator. Somebody know where I can find this tool instead create handly over
 2000 polygones ?
 Thanks

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





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Displaying all bands from a multi-band Gtiff

2010-05-13 Thread Carson Farmer
you *could* just load the layer 6 times and symbolize each band separately?

Carson

2010/5/13 António Rocha antonio.ro...@deimos.com.pt:
 Greetings

 I have imported a Geotiff image with 6 bands. Is there a Way of having all 6
 bands listed in Layer manager instead of having just the file?

 Thanks
 Best regards,
 Antonio


 __ Information from ESET NOD32 Antivirus, version of virus signature
 database 5111 (20100513) __

 The message was checked by ESET NOD32 Antivirus.

 http://www.eset.com


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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] custom crs and output prj

2010-04-27 Thread Carson Farmer
Just a quick question that a colleague of mine asked me last night...

Are there any known issues with standard parallels when creating the
prj file of an output layer from qgis using a custom CRS?

Basically, my colleague imported a layer of points into QGis from
their postgis database, and then created a custom CRS (Settings 
Custom CRS) with the following proj4 string:
+proj=lcc +lat_1=50 +lat_2=50 +lat_0=50 +lon_0=-107 +x_0=5632642.22547
+y_0=4612545.65137 +a=6371200 +b=6371200 +units=m +no_defs
and assigned it to the imported layer within the layer properties.
When they then right-clicked on the layer and selected 'Save as
shapefile..' and selected their custom CRS from the dialog that pops
up, the output prj file was this:
PROJCS[Lambert_Conformal_Conic,GEOGCS[unnamed
ellipse,DATUM[D_unknown,SPHEROID[Unknown,6371200,0]],PRIMEM[Greenwich,0],UNIT[Degree,0.017453292519943295]],PROJECTION[Lambert_Conformal_Conic],PARAMETER[latitude_of_origin,50],PARAMETER[central_meridian,-107],PARAMETER[scale_factor,1],PARAMETER[false_easting,5632642.22547],PARAMETER[false_northing,4612545.65137],UNIT[Meter,1]]

Obviously the first  second standard parallel have not been properly
defined within the output .prj file. Is this a known issue, or perhaps
something that we've both missed?

Cheers,

Carson


-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] ESRIs ArcGIS lyr-files

2010-04-15 Thread Carson Farmer
 Is there any tool to convert ESRIs lyr-files readable in QGIS? Or do
 ArcGIS have any other format-system that you can use in QGIS? For
 instance shp-files can get very stranges coulors or symbols if you
 open them in QGIS.

That's simply because shapefiles don't store symbology themselves. If
you want your layers to look like they do in ArcGIS, you have to
adjust the symbology of your layers (you can also create a style for
for your layers so that they always look the same when you load them).
This stuff is all available in the QGIS manual here:
http://qgis.org/en/documentation/manuals.html

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] How do I draw a line?

2010-04-13 Thread Carson Farmer
Hi Brett,

 How do I draw lines or add symbols? Can this then be saved off as a vector
 layer.
There is some great documentation here in the QGIS manual for this
sort of thing: http://qgis.org/en/documentation/manuals.html
For drawing lines (i.e., editing), see the vector editing chapter, and
for adding symbols, see working with vector data. You can also save
the symbology that you define to be used by other vector layers.
For future reference, this is all in the manual, so it's best to
consult there before posting questions here.

Hope that helps,


Carson


-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] proj file and QGIS

2010-04-13 Thread Carson Farmer
it's possible you prj file isn't getting read properly? what software
did you use to create the prj file?
you can check the properties of the layer to see if your prj info is
correctly specified, and if not, change it manually there... you could
also then use the define projection tool from the vector tools to
properly specify your prj...

Carson

On Tue, Apr 13, 2010 at 3:42 PM, Yves Jacolin yjaco...@free.fr wrote:
 Le mardi 13 avril 2010 16:38:39, Micha Silver a écrit :
 I'm not sure I understand. What did you expect to happen?
 With OTF enabled, when you open a vector which is projected in some
 different CRS, the it should appear reprojected into the project CRS.
 Hi Micha,

 When I open a file in projection XXX in a QGIS project with a projection YY +
 OTF enabled I would like that QGIS read the prj file of my shapefile and
 reprojected it correctly.

 My tests showed that the prj file is not read/used by QGIS.

 Am I wrong ? Is it a known limitation depending the prj file?

 Regards,

 Y.
 --
 Yves Jacolin

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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: [Qgis-developer] Simplify the download pages

2010-04-12 Thread Carson Farmer
+1

Just some thoughts,

I think the best way to do things is to make it really easy for *new*
people to find the version they need immediately, and those who are
already using qgis, can click a link or two to get more specific or
more unstable versions. The table is extremely difficult to navigate
(I've just recently be told this by several of my colleagues), and
links to new pages would likely be easier to use. In my opinion,
current version should be right on the download page with links to
windows, linux, and mac right there. Then the LTS version should be a
separate page, with windows, linux, and mac. It would be relatively
easy to also have a 'quick' link which simply downloads the 'Current
Version' for whichever operating system the user is using to access
the page...


Carson

On Mon, Apr 12, 2010 at 11:23 AM, Otto Dassau otto.das...@gmx.de wrote:
 Hi,

 maybe Werner can have a look and try to improve the website. Do you have any
 suggestions, what we should concentrate on to make it easier to
 understand, because we already tried to some time ago (probably not very
 successful :() ?

 Regards,
  Otto

 Am Mon, 12 Apr 2010 09:07:37 +0200
 schrieb Paolo Cavallini cavall...@faunalia.it:


 On Sun, 11 Apr 2010 16:09:38 -0700, Alex Mandel
 tech_...@wildintellect.com
 wrote:
  Based on some feedback I've gotten from some users the download pages
  are still too complicated and have too many choices. It's not clear to
  anyone but advanced and involved users what the right thing to get is.

 +1 for me.
 Thanks Alex for pointing this out.
 All the best.
 ___
 Qgis-developer mailing list
 qgis-develo...@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-developer




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: [Qgis-developer] Simplify the download pages

2010-04-12 Thread Carson Farmer
+1 from me for Martin's suggestions... very logical and neat. The
faster people can find what they need, the faster they can start
playing with QGIS, the faster they tell their friends about it!

Carson

On Mon, Apr 12, 2010 at 10:03 PM, Martin Dobias wonder...@gmail.com wrote:
 On Mon, Apr 12, 2010 at 1:09 AM, Alex Mandel tech_...@wildintellect.com 
 wrote:
 Based on some feedback I've gotten from some users the download pages
 are still too complicated and have too many choices. It's not clear to
 anyone but advanced and involved users what the right thing to get is.

 I also get feedback from people that the pages are confusing. I post
 my suggestions that might improve the usability (not limited to
 downloads):

 1. Main page
 The text content is too dull to read it. People are in a hurry and
 usually want to know a) what is qgis, b) how does it look like c) how
 to get it.
 Therefore I suggest:
 - a short statement about QGIS in larger font + link: learn more
 (leading to about QGIS page)
 - big download button on the right side
 - small screenshot below the download button + link: more screenshots
 - below this there could be a news section (hackfests, releases, ...)

 2. About page
 I would suggest to merge it with features page and make the
 screenshot smaller (again with link to more screenshots) because
 otherwise it doesn't bring any news besides the short history.

 3. Download page
 For a good orientation, I would suggest to have these 4 options
 (aligned in a 2x2 table, large font):
 - Current version
 - Long term support version
 - Plugins
 - Sample data
 Each option would be a link to a separate page and could have a small
 annotation text below the link.
 Finally at the end of the page there could be a list of pages for
 older releases.

 4. Download page for any version
 First a short introduction what the version is about (current release
 / LTS / older release).
 No tables, just a section (ideally with a platform icon for easier 
 orientation):
 - WINDOWS
  - standalone - with/without grass
  - osgeo4w - instruction
 - MAC - instructions
 - LINUX - instructions for various distributions
 - SOURCE


 I believe this would make the first impression a bit better...

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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] translating manual to portuguese

2010-04-12 Thread Carson Farmer
Hi Carlos,

Have a look here for the list of people working on the various
translations of the manual:
http://www.qgis.org/wiki/Manual_Translation
Also, currently the only 'end-user' version of the manual is the PDF
version, however, there is currently work under way to provide an html
version as well. In terms of working on the manual translations,
information regarding this is available from here:
http://www.qgis.org/wiki/Manual_Translation#Translating_the_english_documentation.
However, you're probably better off talking to the lead translator for
Portuguese first.

Regards,

Carson

 I'm translating the manual QGIS 1.4 for Portuguese and would like to know if
 there's somebody else in that effort. Currently I'm in Chapter 5 Working
 with vector data.

 Taking advantage, there is a manual QGIS in another format than. Pdf?


-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] CRS for a start

2010-03-21 Thread Carson Farmer
Hello All,

 MN I mean in QGIS I can open now a holiday photo, go to layer properties
 MN and get an impresion from it's metadata, that it is already
 MN georeferenced:
 MN Layer Spatial Reference System:
 MN +proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs
 MN which is of course not true. But we have to think about novice GIS
 MN users who might either go dizzy or get bad habits.
 I agree, the layer properties should not use this as default if prj is
 missing or should clearly indicate somehow that this is a guessed CRS,
 not necessarily a real one.
I agree as well. In case of no prj or other CRS information and no
default CRS defined, it would likely be best if the CRS was set to
Unknown (Assumed Geographic) or something like this. It wouldn't be
too hard to add this to the current CRS db as an additional available
CRS, and when users have a quick look at a layer's CRS, they will
instantly see that they have to properly define the CRS if they want
to use the layer properly.

Just my two cents!

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: Join Attributes - no Shapefile createt (QGIS 1.4)

2010-03-11 Thread Carson Farmer
Excellent! I've changed how Join Attributes works a bit (in trunk), so
hopefully problems like this will be less frequent in the future. If
you have a chance, I'd appreciate a few tests to make sure that what
was working before is *still* working :-)

Cheers,

Carson

On Wed, Mar 10, 2010 at 9:04 PM, Claas Leiner
claas.lei...@eschenlaub.de wrote:
 Thanks for answers,

 when I openend the termine.dbf with OpenOffice.org, delete the dbf-infos
 in the column-heads, save the file as *.odt and then save the file as
 *.dbf (utf8), I can join the termine.dbf. The encoding was the problem,
 I think.

 Claas
 -
 Dr.-Ing. Claas Leiner
 Praxis für Landschaft, Vegetation und freie Geoinformationssysteme
 Wilhelmshöher Allee 304 E
 34131 Kassel
 Tel. 0561/6026527
 claas.lei...@eschenlaub.de
 http://www.eschenlaub.de/landveg
 

 Bernd Vogelgesang schrieb:
 Tested with attached shapefile and dbf file, however, I suspect it has
 something to do with the encoding of your shapefile (how was it
 created?), because while this file does not work, other shapefiles
 (using for example UTF-8) work fine, including other shapefiles joined
 with your dbf file.
 Can you provide any further details?
 Carson

 Hi Claas and the others,
 this shapefile was created by me (nice surprise to find it as an issue
 here ;) )
 I digitized it from a WMS-Layer with QGIS 1.4 OSGEO4W-Installation on XP
 in UTF-8 with the first 3 table columns.
 The other data columns were added in OpenOffice Calc and several
 corrections of the dbf were made in Calc as well. Can this be the reason?
 Did do this more often and haven't had problems before.
 Is there sth particular stored within the shape file itself about the
 database structure that is now leading to the malfunction? (No idea
 about the inner anatomy of shapes)

 If this is not the case, could it be then some kind of data corruption
 caused by compressing for sending by email? (just a wild guess)

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





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] some impressions from my students

2010-03-11 Thread Carson Farmer
Hi Geofrey,

+1 from me on this one... though I think there have been reasons given
in the past as to why this is not the case?

Carson

On Thu, Mar 11, 2010 at 8:13 PM, Geofrey Sanders
geof...@weathercall.net wrote:
This is nice, but a little annoying if you want to change the behavior
more than often. Maybe this could be a drop-down list in the results
dialog? So one could change the way it works more interactively.

 Shouldn't the list of found features be sorted in layer order when Identify
 Features is in 'top-down' mode?


 Geofrey Sanders
 WeatherCall Customer Care
 geof...@weathercall.net
 voicemail: 1 (800) 260-6695


 On Wed, Mar 10, 2010 at 11:11, Carlos Grohmann carlos.grohm...@gmail.com
 wrote:

 Andreas (and all), thanks for your reply, I'll pass that to my students.

 I've using GRASS for a few years, for my research, but now that I
 started teaching, QGIS is the way to go. The students are loving it.
 (teach, it's so much easier than ArcGIS!).

 As for the identify features issue:
 
  Identify features: is there a way to identify one feature that's
  partially visible, but the layer is not selected, so I can find out to
  which layer it belongs?
 
  This is already possible. You need to change the behavior:
 
  Options -- MapTools -- Identify Mode -- set to top down or top
  down,
  stop at first - depending if you want to get all hits or want to stop
  at
  the first hit. You need at least QGIS 1.4 or higher.
 

 This is nice, but a little annoying if you want to change the behavior
 more than often. Maybe this could be a drop-down list in the results
 dialog? So one could change the way it works more interactively.

 I'll keep you guys posted about the experiences of my students.

 best

 Carlos





 --
 Prof. Carlos Henrique Grohmann - Geologist D.Sc.
 Institute of Geosciences - Univ. of São Paulo, Brazil
 http://www.igc.usp.br/pessoais/guano
 Linux User #89721
 
 Can’t stop the signal.
 ___
 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





-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Join Attributes - no Shapefile createt (QGIS 1.4)

2010-03-09 Thread Carson Farmer
Hello Claas,

 Whenn I want to join a DBF-File to a Shapefile, there was no new
 Shapefile createt. Look at the Example! In QGIS 1.3 it runs with the
 same files!

 The Example:
 I want th join the table termine.dbf to the Shapefile LKE_MUE.

 Target Vektorlayer:        LKR_MUE
 Target Join Field:         GEM_ID
 Join Data  Join DBF File: termine.dbf
 join field:                GEM_ID
 OutputShapefile:           test.shp

 But there was no Shapefile createt! The same at QGIS 1.3: Shapefile was
 createt!

 please test it with the example-Files in attachment!
Tested with attached shapefile and dbf file, however, I suspect it has
something to do with the encoding of your shapefile (how was it
created?), because while this file does not work, other shapefiles
(using for example UTF-8) work fine, including other shapefiles joined
with your dbf file.
Can you provide any further details?

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: [Qgis-developer] announcing DPSimplify

2010-03-05 Thread Carson Farmer
Hello list,

I'm a bit late coming into this discussion, by I thought I might be a
good place to make a few comments:

New plugins that add new functionality are always very welcome,
however I would also like to encourage plugin developers to have a
look at (particularly core plugins) existing plugins, and if they find
something they would like to improve/replace, to do so! I don't have a
lot of time to update fTools, but improvements are always welcome, and
if they are added/applied to fTools directly, then the whole QGIS
community benefits from the improvements/changes without having to
install another plugin (and without duplication in the eyes of the
user).

 And to make myself clear: I do not want to discourage Alexander to develop
 the plugin!! Because if I'm correct, the current vector-menu stuff is
 actually cpp ported from the former python plugin as well.

Just to clarify, most of the fTools functions have still not been
ported to cpp, and in fact anything running from fTools at the moment
is still using the original Python implementation. So again, I would
encourage developers of fTools functionality to try to include them
with fTools so that they can be installed by users by default. Patches
are always welcome, and credit will always be given where credit is
due!

Regards,

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Re: [Qgis-developer] announcing DPSimplify

2010-03-05 Thread Carson Farmer
 We'll be happy to move the plugin to fTools when we're done with
 it which will greatly improve its functionality.

 In general, we see most of our development in Vector area (Statist,
 JoinLines, DPSimplify to name the few) as potentially included in
 fTools (Vector) or enhancing present tools.

Great! Just what I was hoping for :-)

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Problems with scripts and multiple lines in editR and manageR

2010-02-12 Thread Carson Farmer
Hi Henrik,

 When I send multiple lines (using the console-button or ctrl-enter) from
 editR to manageR I get into problems

      Renshapefull - read.shp(REN236_cut01.shp)

      Renshape - convert.to.simple(Renshapefull)

 gives me the following error message

      Error: unexpected symbol in

      Renshapefull - read.shp(REN236_cut01.shp)

      Renshape - convert.to.simple(Renshapefull)Renshape

 My set is as follows:
 LinuxMint 7 (Ubuntu 9.04)
 R 2.10.1-2jaunty0
 QGIS 1.4.0 Enceladus
 rpy2 2.0.8-1
 fTools 0.5.10
 manageR 0.8

I think you've found a bug here, so unfortunately at the moment there
is no 'workaround'. I've started updating manageR again these past few
days, so I'll add this to my TODO list :-)
Apologies for the inconvenience, and hopefully I'll get this fixed soon!

Regards,

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Distorted Maps

2010-02-03 Thread Carson Farmer
Ahmed,

 Thanks a lot.

 The suggestions worked flawlessly;
I'm glad things worked for you
 however, on some occasions the cartogram
 plugin gave the following error:

 ...path .../doCartogram.py, line 246, in getInfo
    dSizeError = max(dPolygonArea, dDesired) / min(dPolygonArea, dDesired)
 #calculate size error...
 ZeroDivisionError: float division
Yes, I haven't had a chance to fix this yet... it's really a quick
fix, I'll try to find some time this week to have a quick look at it
:-)

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Distorted Maps

2010-02-02 Thread Carson Farmer
Hi dassouki,

 Can the following map types be done with QGIS or any other software:

 http://www.worldmapper.org/countrycartograms/cartograms/world.jpg :
 Distorted map based on field values
The above is actually an area-cartogram, and yes using the cartogram
creator plugin (should be working, if not, let me know).

 http://kelsocartography.com/blog/wp-content/uploads/2008/03/carbonatlas.pdf
 : Cartogram
Possibly using the diagram overlay (and some post-processing in
inkscape or other vector graphics package)?

 http://www.girardin.org/fabien/blog/wp-content/_images_maps_peopleonthemove_groot.jpg
 : Separated polygons
No, but have a look at R for this type of thing.
It would probably be relatively simple, you should just have to figure
out how to scale the individual features (lot's of cartogram
algorithms out there for this type of application).

Carson

-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] build virtual raster

2010-01-15 Thread Carson Farmer
Actually, the error is referring to this:
AttributeError: type object 'QString' has no attribute 'tr'
Which has nothing to do with GDAL.  Having said that, it's possible
that you also have the below mentioned problem.
The specific error above is likely due to a bug though...

Carson

On Fri, Jan 15, 2010 at 4:12 PM, Giovanni Manghi
giovanni.man...@gmail.com wrote:
 Hi,
 works fine here (version 0.0.31) and xp.

 Looking the error message it seems you miss the gdal utilities or you
 miss to add the path to the utilities bin directory in the path
 environment variable of your os.

 cheers

 -- Giovanni --


 On Fri, 2010-01-15 at 16:50 +0100, marcozani...@geosweb.it wrote:
 hi, i want to report an error in tool gdal using build
 virtual raster, when i try to use this tool appears the
 error:
 Traceback (most recent call last):
   File C:\Documents and
 Settings\marco\.qgis\python\plugins\GdalTools\tools\dialogBase.py
 , line 85, in processError
     msg = QString.tr(The process failed to start. Either
 the invoked program is missing, or you may have insufficient
 permissions to invoke the program.)
 AttributeError: type object 'QString' has no attribute 'tr'

 The S.O. is winxp.
 marco zanieri

 ___
 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




-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation
National University of Ireland, Maynooth,
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] manipulating shapefiles

2009-12-24 Thread Carson Farmer
Hi sunny,

 There is no define projection tool in the tools menu.
 Which version of QGIS r u using? I am using MIMAS ver 1.3.0

The define current projection tool should be under the data management
tool in the tools (or vector) menu.

 Regarding the second method if I right click and click save as shapefile
 it only asks the place to save
 and not CRS.

It will, that's the next step...

Carson

-- 
Carson J. Q. Farmer
National Centre for Geocomputation
National University of Ireland, Maynooth,
Maynooth, Co. Kildare, Ireland.
http://www.carsonfarmer.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] spatialite and ftools

2009-11-18 Thread Carson Farmer

Hi Lionel,

Hi all,
Can't apply some vectors operations via the ftools toolbox (intersect, 
convex hull, ...) on layers imported from a spatialite db (the 
test-2.3.sqlite available at 
http://www.gaia-gis.it/spatialite/resources.html).

Is it normal?
Shouldn't be ;-) Could you please supply an error message or description 
of exactly what is going wrong?


Thanks,

Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


Re: What is is a qgis problem? (it was Re: [Qgis-user] Scattergram with compiled qwt5.2.0)

2009-11-07 Thread Carson Farmer
 page in which I will propose a set of critical tasks
 to be accomplished by a GIS software, along with an score of operationality
 and
 comments for the specific case of QGIS on the different OS for which binary
 versions exist. Hopefully other users will add their opinions.
 In an equivalent way, I'll try to set up another page for the plugins, so
 that
 users can have a fast check on the degree of operationality of a giving
 plugin
 prior to actually installing it.

Great, this is the type of thing that helps clarify what needs to be done.
I also think it's important to acknowledge that plugins are indeed a
separate thing, and many
*are* simply proofs of concepts, *not* ready for production use. It's
up to users to tell the plugin
authors they are interested, and to support further development!

 I think that QGIS is not far from such an operational point and that
 making an effort on reaching it rather than on developing newer tools for a
 while would make a lot of sense... for users. Obviously, developers will do
 what they will be willing to do. All what users can do is telling other
 users what the situation is.

Agreed!


Carson
-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Is there anyway to link a picture with a vercor element?

2009-11-07 Thread Carson Farmer
Yup!
Right-click layer  properties  actions will do this...
Check the user-manual for exact implementation etc...

Carson

2009/11/7 wangxuan lz...@msn.com:


 
 Is there anyway to link a picture with a vercor element?
 In arcview there is a hotlink tool for this purpose as i know.

 Thanking you in advance,
 With Warm Regards

 
 聊天+搜索+邮箱 想要轻松出游,手机MSN帮你搞定! 立刻下载!
 
 搜索本应是快乐的,不是么? 快乐搜索,有问必应!微软隆重推出! 立即试用!
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user





-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] SDA4PP

2009-11-01 Thread Carson Farmer
Yup, it looks like you need to install these 4 packages (mgcv rgdal 
maptools spatstat).
Use install.packages() from the R console (a normal R console will give 
you more feedback, or since you are working on windows, you can use the 
Rgui to do this), and specify these packages.


Carson

Hi,
now I see SDA4PP in Qgis (I'm using Qgis1.3 on winxp), but
the problem is that when i try to work appears
the follow messages:

R library; mgcv rgdal maptools spatstat could not be loaded.
Please install ' mgcv rgdal maptools spatstat ' package(s).

R library; rgdal rggobi could not be loaded.
Please install ' rgdal rggobi ' package(s).

R library; rgdal iplots could not be loaded.
Please install ' rgdal iplots ' package(s).

Maybe i have to install some libraries for R???

thanks

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

  



--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


Re: [Qgis-user] SDA4PP

2009-10-30 Thread Carson Farmer
you also need to install the win32api python libraries:
http://rpy.sourceforge.net/rpy_download.html
See the above link, especially the section about notes for windows users.

Carson

On Fri, Oct 30, 2009 at 10:51 AM, marcozani...@geosweb.it
marcozani...@geosweb.it wrote:
 After configured the new user variable:
 Name: R_HOME
 Value: C:\Programmi\R\R-2.9.1
 when I go to install the plugin I have a new problem, Qgis
 want Python:
 win32api
 I don't know what I have to do...

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




-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] manageR plugin

2009-10-29 Thread Carson Farmer
Hmmm, Rpy2 should support all versions of R barring any major changes.
I'm running R 2.10.0 on my machine with manageR working nicely...
@marco zanieri: This is a common problem with R for windows... all you
should have to do is add your R.exe (RHOME, or R install path) to your
path environment variable.
See here for more info/help:
http://cran.r-project.org/bin/windows/base/rw-FAQ.html#Does-R-use-the-Registry_003f
http://vlaurie.com/computers2/Articles/environment.htm

Cheers,

Carson


On Thu, Oct 29, 2009 at 9:27 AM, Anne Ghisla a.ghi...@gmail.com wrote:
 On Thu, 2009-10-29 at 08:54 +0100, marcozani...@geosweb.it wrote:
 Hi, I'm trying to use manageR plugin on Qgis 1.3Mimas for
 winxp, before i installed R 2.10, after installed the plugin
 manageR, but it doesn't work, the python errore message is
 the follow:

 Traceback (most recent call last):
 [..]
     import rpy2.rinterface as rinterface
   File C:/Programmi/Quantum GIS
 Mimas/./python\rpy2\rinterface\__init__.py, line 22, in
     This might be because R.exe is nowhere in your Path.)
 RuntimeError: Unable to determine R version from the
 registery.Calling the command 'R RHOME' does not return
 anything.
 This might be because R.exe is nowhere in your Path.

 Versione Python:
 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
 (Intel)]

 Sentiero Python:['C:/Programmi/Quantum GIS Mimas/./python',
 [..]

 Anybody knows the solution??

 I'm afraid that R 2.10 is not yet supported by rpy2 [1], better
 downgrading to 2.9.

 Enjoy manageR!
 Anne

 thanks all

 marco zanieri
 __

 [1] http://rpy.sourceforge.net/rpy2/doc/html/overview.html#installation

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





-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: Cartogram creator not working

2009-10-27 Thread Carson Farmer
Hi guys,

No problem - could the plugin check if the layer is a polygon layer?

Yes, certainly, does it not already do this? I thought I had put this check
in, will fix later today if I have time...



 You should consider that sometimes 0 are present?
 (ZeroDivisionError: float division)


 I agree - that should be checked and caught - I had the same error.
 But I am also just a user and not the author.

Yes, this should probably be caught, though certainly not allowed... will
also add this check later...
At this stage, the plugin is really just a fun little tool for making
cartograms...
In fact, it's not even really the best cartogram algorithm out there...

Carson

-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] creating a point, free basemaps and going past 180 degrees

2009-10-20 Thread Carson Farmer
Hi Mike,

 Three questions from someone newish to qgis:

1. how do you put point data on a map in qgis.  This seems to be the
simplest thing to do in most other gis systems but the most difficult in
qgis or have I completely missed something.  E.g. I have a file of lat long
coordinates or ordnance survey coordinates in an excel file and simply want
to plot them out, how do I do that?  I have actually done it but only via
another gis (then saving and replotting the resulting vector format file in
qgis) or via a .kml file again generated elsewhere.

 If you have the points in an excel file, you can simply save this as a csv,
and open this directly in QGIS. Have a look at the manual [1], which gives
you a nice walk-through of everything you need to do to get things going. In
particular, have a look at section 12.3 (Delimited Text Plugin).


1.
2. how to get hold of free basemap outline data e.g. countries of the
world.  I have tried very many different sources and still not found a nice
set of data that is relatively easy to use.

 In this case, you should be looking for a shapefile, and there are many
nice ones out there via Google, example:
http://www.bluemarblegeo.com/products/worldmapdata.php?op=download


1.
2. how to display and use maps that are not centred on the prime
meridian and go past 180 degrees e.g. maps of Russia?

 For this, you will want to find out the standard projections for Russian
data. Certainly a shapefile of the world will display data over Russia, but
you will need to find out what the relevant projections are before you do
any real work or mapping.



1.

  This is for a project to plot records of species in Russia i.e. plot the
 location of a sighting, seems straightforward enough but actually turns out
 to be very difficult.

QGIS behaves fairly similarly to most other GIS packages, with perhaps a bit
more emphasis on 'plugins' (which is what you need to get csv files
working). Once you get the right data, and understand a bit about the
projection(s) that you need to be working in, things will go quite smoothly.
For a nice intro to GIS, and some excellent information on projections and
how to work with them in QGIS, have at A Gentle GIS Introduction, also on
the manual page [1].

[1] **http://www.qgis.org/en/documentation/manuals.html

Regards,

Carson

-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: Error with manageR (and python console)

2009-10-20 Thread Carson Farmer
Hi Agus,

What version of rpy2 did the easy-install install?

Carson

On Tue, Oct 20, 2009 at 1:47 PM, Agustin Lobo aloboa...@gmail.com wrote:

 Hi!

 I've just installed R (2.8.1), python-dev, rpy2 (through easy-install)
 and manageR (qgis 1.3.0) on ubuntu 9.04 jaunty and get this
 error after issuing any wrong command in the manageR console, i.e.:
  a = 1?
 Error: unexpected end of input in a = 1?

 and a window opens with:

 An error has occured while executing Python code:

 Traceback (most recent call last):
  File build/bdist.linux-i686/egg/rpy2/rinterface/__init__.py, line 108,
 in consoleFlush
sys.stdout.flush()
 AttributeError: QgisOutputCatcher instance has no attribute 'flush'

 Python version:
 2.6.2 (release26-maint, Apr 19 2009, 02:11:59)

 I get the same error if I run the rpy2 test mentioned in
 http://rpy.sourceforge.net/rpy2/doc/html/overview.html#installation
 in the qgis python console

 import rpy2.tests
 import unittest

 # the verbosity level can be increased if needed
 tr = unittest.TextTestRunner(verbosity = 1)
 suite = rpy2.tests.suite()
 tr.run(suite)


 Any idea on how to fix this?
 Apparently, the rpy2 installation went ok.

 Agus
 --
 Dr. Agustin Lobo
 Institut de Ciencies de la Terra Jaume Almera (CSIC)
 LLuis Sole Sabaris s/n
 08028 Barcelona
 Spain
 Tel. 34 934095410
 Fax. 34 934110012
 email: agustin.l...@ija.csic.es
 http://www.ija.csic.es/gt/obster




-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] python error spqr

2009-10-14 Thread Carson Farmer
As per the rpy website, you also need to install numpy and the winapi python
package:
http://rpy.sourceforge.net/rpy_download.html

If you are using the OSGeo installed qgis, you will also probably need to
make sure to
use the OSGeo installer to install rpy and the various other python
libraries required...

Hope that helps,

Carson

On Wed, Oct 14, 2009 at 11:25 AM, Markus Nater mark.na...@gmail.com wrote:

  well, the thing is, that I would like to use this module, of course.
 so, when I'm looking into C:\OSGeo4W\apps\python25\lib\site-packages, I can
 see that there are some files called rpy. As well I just installed
 rpy1.0-RC2 onto my system. but as the install directory the installer gives
 me always C:\Python25\Lib\site-packages\. could this be a problem may be?


 Borys Jurgiel schrieb:

 Dne středa 14 října 2009 11:36:17 Markus Nater napsal(a):


  Hello List

 I have always an error when I'm opening QGIS, that it can not load th
 spqr plugin as it doesn't find the win32api.
 I have installed everything trough th Osgeo4w installer. I also have
 python26 and python30 installed on my system. But honestley, I don't
 know what this all does together. Can somebody help me on this?


  It's because the SPQR plugin needs the python-rpy module (I don't remember
 whether this one is available in OSGeo4Win, but I mean rpy, not rpy2, what is
 required by other R-related plugins!).

 If you can't install this module and you don't need the SPQR plugin, you can
 just remove the spqr directory from:
 C:/Dokumente und Einstellungen/markus/.qgis//python/plugins
 ___
 Qgis-user mailing 
 listqgis-u...@lists.osgeo.orghttp://lists.osgeo.org/mailman/listinfo/qgis-user


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




-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] units for Terrain analysis tools

2009-10-10 Thread Carson Farmer

Hi Agus,

Hi!
Is there a man page for the Terrain analysis tool?
I just need to know if the slope results are in degrees or percentages.
Not that I know of (we are working on the manual page at the moment). 
However, I don't actually know either, so perhaps Marco can update us on 
this for the new manual ;-)


Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


Re: [Qgis-user] Guide for using the qgis python console

2009-10-08 Thread Carson Farmer
Good idea Augus...

I will try to add an example of buffering a point layer, any other takers?

Carson

On Thu, Oct 8, 2009 at 8:19 AM, Agustin Lobo alobolis...@gmail.com wrote:

 Hi!

 Could somebody write few examples of
 using the qgis python  console and
 (best) post them to the user's corner?
 I think that this is a very nice feature in qgis that is rarely used.

 Thanks!

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




-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] QGIS 1.3.0 plu-in installation problems

2009-10-08 Thread Carson Farmer
Hi A. P. Dhurandhar,

Could you please provide us with some more information here? Did you try
using the Plugin intaller?
If yes, what were the errors messages that you received etc.?
This will allows us to help you better...

Carson

On Thu, Oct 8, 2009 at 8:03 AM, Ashokaditya Prakash Dhurandhar 
apdhurand...@rediffmail.com wrote:

 Dear All
 I could not install the following plug-in. Kindly help/guide me to install
 them correctly in QGIS Mimas 1.3.0
 1. spqr
 2. SDA4PP
 3. HomeRange_plugin
 4. Contour
 5. Mapfile tools
 6. qgCSW
 7. Rasterlang
 8. pyArchInit
 Thanks
 A. P. Dhurandhar


 A. P. Dhurandhar
 Scientific Officer-F
 Atomic Minerals Directorate for Exploration.AMD-Complex, Civil Lines,
 Nagpur (M.S.) PIN 440 001

 http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline@middle?
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user




-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: R: Re: [Qgis-user] manage R behaviour

2009-09-21 Thread Carson Farmer
Hi Ale,

No new yet, but the information you provided below might be helpful. I
changed the way manageR communicates with R slightly (it actually works
better the way it is, but for some reason windows doesn't show results...).
I will try a few things tonight, and let you know how it goes. I may have
some things for you to test if you have some time, as I don't have access to
Windows myself...?

Carson

On Mon, Sep 21, 2009 at 5:55 PM, Alessandro Sarretta 
alessandro.sarre...@inwind.it wrote:

 Hi Carson, do you have news about this problem?
 For your information, I noticed that using the R console from SDA4PP
 plugin, I have no problems and I can see variables created form the console
 of manage R too...
 I rememebr you that I'm using QGIS trunk, installed by OSGeo4W in Windows
 XP, R2.9.0, manageR 0.7.2
 thanks
 Ale


 alessandro.sarre...@inwind.it ha scritto:


 Hi Carson,

 I tried with a simple point layer called SAMA. Data are loaded
 correctly, but if I try to use ls() or names(SAMA) I have no results...

 If I instead do plot(SAMA$X) I obtain correctly the plot.

 So data are loaded, it seems a problem with the print output on the
 manageR console

 Tell me if I can test something...

 thanks

 Ale

Messaggio originale
Da: carson.far...@gmail.com
Data: 26/08/2009 11.10
A: Alessandro Sarrettaalessandro.sarre...@inwind.it
Cc: qgis-user@lists.osgeo.org
Ogg: Re: [Qgis-user] manage R behaviour

Hi guys,

Does any of the text show up after you load a layer via Ctrl-L or
anything like that?
What about if you try to save a graphic (this should export a
command to the manageR console)?

Based on the versions of the various software required, I can't
see why this isn't working.
It must be a Windows thing, but unfortunately, I don't have access
to a Windows machine at the moment.

Cheers,

Carson

On Tue, Aug 25, 2009 at 10:12 PM, Alessandro Sarretta
alessandro.sarre...@inwind.it
mailto:alessandro.sarre...@inwind.it wrote:

Hi Carson,
same behaviour for me, using QGIS trunk e QGIS 1.1, installed
by OSGeo4W in Windows XP.
R2.9.0
manageR 0.7.2
qt4-libs 4.5.2-1
pyqt4 4.5.2-5

python-rpy2 2.0.3-1

and congratulations, your plugin is improving really well!

thanks
Ale

Carson Farmer ha scritto:

Hi Filip,


   Dear all,
   I finally got to work manage R plug-in (version 0.7.2
woks, I use
   R 2.9.1,
   Qgis 1.0.2, Win XP).
   But I am confused by its behaviour. The console doesn't
return any
   results.
   I mean, when I type:

   $ x-1
   $ y-2
   $ x+y

   Nothing is returned, even though the variables x and y
exist (they are
   listed on the Environment tab).
   However, when I load a shape file with Ctrl+L, the
console writes
   out a
   message
   QGIS Vector Layer
   Name: ... etc.

   Is this a standard behaviour of manage R?

 no it is not the standard behaviour... I'm not sure why
you aren't getting any output to the console with normal R
commands.
I haven't testing this plugin on Windows yet, so perhaps
I'll give this a try tonight and see if I can get the same
behaviour.

What versions of Qt and Rpy are you running?





--Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com http://www.carsonfarmer.com


 

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






-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] distorted map presentation in wgs84

2009-09-18 Thread Carson Farmer
Have you enabled 'on the fly projection'?
Click button in lower right-hand corner of QGIS window, and click 'enable on
the fly projection'
Are you sure the layer is in WGS84? Do you have the project CRS the same as
the layer CRS?

Carson

On Fri, Sep 18, 2009 at 10:56 AM, j. z. zbudniewk...@interia.pl wrote:

 I've opened my first data in QGIS and found it displays distorted comparing
 to what it looks like in MapInfo Professional. The dataset is TAB. I attach
 the view in MIPro and QGIS.
 I tried the same with shp and the effect is the same.
 Anyone can tell how to make it look better in QGIS?


 --
 Zobacz jak mieszka Norbi!
 Sprawdz  http://link.interia.pl/f2345

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




-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Overlay request

2009-09-08 Thread Carson Farmer

Jacolin,
I tried to use spatial select in fTools (search toolsspatial select I am 
not sure of the title in english as my GUI is in french) but it fails with an 
error message.
  

Could you please post the fTools error message?

Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


Re: [Qgis-user] Projection

2009-09-01 Thread Carson Farmer
Sarel,

You certainly shouldn't have to save the shapefile to get the correct
projection... did you try refreshing the mapcanvas after enabling on the fly
projection (though this shouldn't be required either)?

Carson

On Mon, Aug 31, 2009 at 8:13 PM, Sarel Coetzer geotech.sa...@gmail.comwrote:

 Hi Magnus

 I am using shapefiles. I had to save the shapefile with the new CRS to get
 the projection correct and reload.



 Sarel

 On Mon, Aug 31, 2009 at 9:02 PM, Magnus Homann mag...@homann.se wrote:

 Sarel Coetzer skrev:

 Hi Giovanni

 Yes I have tried the OTF facility and still the layers wont overlay. The
 issue is that changes can be made to the CRS but it does not take effect
 until the layer file is saved with the new CRS values and is required to be
 reloaded in a new session. Surely the layers should refresh with the newly
 selected CRS and display in the correct location unless I am missing
 something fundamentally.


 Yes, it should change immediately.

 Is it raster or vector layer? Rasters won't reproject.

 Magnus




 --
 http://sarelgis.blogspot.com/



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




-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] manage R behaviour

2009-08-25 Thread Carson Farmer
Hi Filip,


 Dear all,
 I finally got to work manage R plug-in (version 0.7.2 woks, I use R 2.9.1,
 Qgis 1.0.2, Win XP).
 But I am confused by its behaviour. The console doesn't return any results.
 I mean, when I type:

 $ x-1
 $ y-2
 $ x+y

 Nothing is returned, even though the variables x and y exist (they are
 listed on the Environment tab).
 However, when I load a shape file with Ctrl+L, the console writes out a
 message
 QGIS Vector Layer
 Name: ... etc.

 Is this a standard behaviour of manage R?


no it is not the standard behaviour... I'm not sure why you aren't getting
any output to the console with normal R commands.
I haven't testing this plugin on Windows yet, so perhaps I'll give this a
try tonight and see if I can get the same behaviour.

What versions of Qt and Rpy are you running?

Cheers,

Carson


-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: manageR question - 'QXmlStreamReader' is not defined error

2009-08-25 Thread Carson Farmer
hmmm, this must be a function that was added with Qt4.5... sorry about that!
I'll try to implement this without that function...

you may consider upgrading to Qt4.5, as I suspect this is also why you were
having trouble with the xml reader as well...

I will let you know where I get with this asap.

Carson

On Mon, Aug 24, 2009 at 4:46 PM, Rainer M Krug r.m.k...@gmail.com wrote:

 On Mon, Aug 24, 2009 at 4:41 PM, Carson Farmercarson.far...@gmail.com
 wrote:
  Hi Rainer,
 
  Hi
 
  I tried to use manageR again, but I get that dreaded
  'QXmlStreamReader' is not defined error (see below). This was raised
  already a few times, but I did niot find a fix. Is there any progress?
 
 
  There is progress yes... I have removed it as a dependency in the newer
  version of manageR. This newer version will be totally reworked, and will
 be
  released in the next few weeks (probably). Unfortunately, it still needs
  work, so I won't be able to release it right away. In the mean time, try
  changing line 8 of your 'config.ini' file from 'auto_completion:
  commands.xml' to 'auto_completion: None'. This file is located in your
  manageR folder:
  /home/username/.qgis/python/plugins/manageR. You won't have
 autocompletion
  enabled, but if you can live without that for a while, you'll be able to
 use
  manageR without problems (hopefully ;-p).

 Thanks Carson

 I am looking forward to the new version. The modification in the ini
 file improved it - I can start manageR - but as soon as I type
 anything, I get the following error:

 An error has occured while executing Python code:

 Traceback (most recent call last):
   File /home/rkrug/.qgis//python/plugins/manageR/QConsole.py, line
 142, in keyPressEvent
if not self.isCursorInEditionZone():
  File /home/rkrug/.qgis//python/plugins/manageR/QConsole.py, line
 385, in isCursorInEditionZone
block = self.document().lastBlock()
 AttributeError: lastBlock

 Python version:
 2.5.2 (r252:60911, Jul 22 2009, 15:52:25)
 [GCC 4.2.4 (Ubuntu 4.2.4-1ubuntu3)]

 Python path:['/usr/share/qgis/python',
 '/home/rkrug/.qgis//python/plugins', '/usr/share/qgis/python/plugins',
 '/usr/lib/python25.zip', '/usr/lib/python2.5',
 '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk',
 '/usr/lib/python2.5/lib-dynload',
 '/usr/local/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages',
 '/usr/lib/python2.5/site-packages/Numeric',
 '/usr/lib/python2.5/site-packages/PIL',
 '/usr/lib/python2.5/site-packages/gst-0.10',
 '/var/lib/python-support/python2.5',
 '/usr/lib/python2.5/site-packages/gtk-2.0',
 '/var/lib/python-support/python2.5/gtk-2.0',
 '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode',
 '/home/rkrug/.qgis/python/plugins/fTools/tools']

 Cheers

 Rainer
 
  Cheers,
 
  Carson
 
  --
  Carson J. Q. Farmer
  ISSP Doctoral Fellow
  National Centre for Geocomputation (NCG),
  National University of Ireland, Maynooth,
  Email: carson.far...@gmail.com
  Web:   http://www.carsonfarmer.com/
   http://www.ftools.ca/
 
 



 --
 Rainer M. Krug, Centre of Excellence for Invasion Biology,
 Stellenbosch University, South Africa




-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: manageR question - 'QXmlStreamReader' is not defined error

2009-08-24 Thread Carson Farmer

Hi Rainer,

Hi

I tried to use manageR again, but I get that dreaded
'QXmlStreamReader' is not defined error (see below). This was raised
already a few times, but I did niot find a fix. Is there any progress?
  
There is progress yes... I have removed it as a dependency in the newer 
version of manageR. This newer version will be totally reworked, and 
will be released in the next few weeks (probably). Unfortunately, it 
still needs work, so I won't be able to release it right away. In the 
mean time, try changing line 8 of your 'config.ini' file from 
'auto_completion: commands.xml' to 'auto_completion: None'. This file is 
located in your manageR folder:
/home/username/.qgis/python/plugins/manageR. You won't have 
autocompletion enabled, but if you can live without that for a while, 
you'll be able to use manageR without problems (hopefully ;-p).


Cheers,

Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


Fwd: [Qgis-user] polygon centroids

2009-07-29 Thread Carson Farmer
-- Forwarded message --
From: Carson Farmer carson.far...@gmail.com
Date: Wed, 29 Jul 2009 07:08:17 +0100
Subject: Re: [Qgis-user] polygon centroids
To: Geofrey Sanders geof...@weathercall.net

Hi Geofrey,

This is a known issue that has cropped up relatively recently, and I
am currently working to fix things... apologies for the inconvenience,
and I will try to fix this asap!

Carson

On 7/28/09, Geofrey Sanders geof...@weathercall.net wrote:
 I've just used the fTools 'polygon centroids' tool, and the resulting
 points are all wrong. Each one is outside its parent polygon to the
 southwest.
 Is there something I need to do to the originating layer beforehand,
 or to the result layer afterword?

 Geofrey Sanders
 Weather Call Customer Care
 geof...@weathercall.net
 voicemail: 1 (800) 260-6695
 ___
 Qgis-user mailing list
 Qgis-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/qgis-user



-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com



-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] rpy2 isntallation fails under Ubuntu Jaunty for R 2.9.1

2009-07-28 Thread Carson Farmer
Nikos,
 To me it seems that _currently_ the source 2.9.1 R fails to support rpy2
 compilation (or I just compile/install it in the wrong way) and the
 binaries (deb's) fail to support comilation/installation of spgrass6.
If you're going to compile R from source, you need to make sure to
configure with shared libraries enabled for Rpy2 to work properly. I
didn't see whether you had done this earlier or not...

 $ ./configure --enable-R-shlib
 $ make
 $ make install

Cheers,

Carson

 Ubuntu-users, can you execute G-gmeta6() in latest R-2.9.1 installed
 from ubuntu repositories for Ubuntu Jaunty (64-bit)?

 Thanks, Nikos

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



-- 
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
   http://www.ftools.ca/



On 7/28/09, Nikos Alexandris nikos.alexand...@felis.uni-freiburg.de wrote:
 To me it seems that _currently_ the source 2.9.1 R fails to support rpy2
 compilation (or I just compile/install it in the wrong way) and the
 binaries (deb's) fail to support comilation/installation of spgrass6.

 Ubuntu-users, can you execute G-gmeta6() in latest R-2.9.1 installed
 from ubuntu repositories for Ubuntu Jaunty (64-bit)?

 Thanks, Nikos

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



-- 
Carson Farmer
National Centre for Geocomputation
John Hume Building,
National University of Ireland, Maynooth,
Maynooth,
Co. Kildare,
Ireland.
www.carsonfarmer.com
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: Error loading HomeRange plugin on Mac OSX[was: Re: [Qgis-user] Fwd: Hello, ]

2009-07-16 Thread Carson Farmer

Hi all,
With all this, I was able to install and enable the HomeRange plugin 
in Qgis 1.1.0 once - it loaded and showed up in the plugins menu.  
After restarting Qgis, I got an error loading HomeRange:


Traceback (most recent call last):
  File , line 2, in
  File 
/Users/kyngchaos/.qgis//python/plugins/HomeRange_plugin/__init__.py, 
line 32, in

from HRplugin_main import HRPlugin
  File 
/Users/kyngchaos/.qgis//python/plugins/HomeRange_plugin/HRplugin_main.py, 
line 40, in

from HRplugin_dialog import Dialog
  File 
/Users/kyngchaos/.qgis//python/plugins/HomeRange_plugin/HRplugin_dialog.py, 
line 44, in

from HRplugin_algorithm import *
  File 
/Users/kyngchaos/.qgis//python/plugins/HomeRange_plugin/HRplugin_algorithm.py, 
line 46, in

import rpy2.robjects as robjects
  File /Library/Python/2.5/site-packages/rpy2/robjects/__init__.py, 
line 12, in

import rpy2.rinterface as rinterface
  File 
/Library/Python/2.5/site-packages/rpy2/rinterface/__init__.py, line 
6, in

R_HOME = os.popen(R RHOME).readlines()
IOError: [Errno 4] Interrupted system call
This appears to be a general PyQt problem with 'popen', and appears to 
be especially problematic for macs. I think what's happening is that 
PyQt is interrupting the (slower?) os.popen command, making it 
impossible for rpy2 to find RHOME. This is why things work when entered 
into a normal console...
I have yet to find a way to effectively fix it, but I'm going to look 
into it further tonight, so hopefully I'll have a solution in the next 
few days. It actually doesn't happen all the time, which makes it 
slightly harder to pin down. ...


Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/


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


Re: [Qgis-user] ManageR not running

2009-05-31 Thread Carson Farmer

Hi Gavin,

It looks like your version of R doesn't have the lsf.str function 
available for some reason. Similarly to what I suggested to Agus, try 
changing your auto_completion variable in your config.ini file located 
in your manageR directory from commands.xml (or Auto) to None. This will 
tell manageR to completely ignore autocompletion (so obviously it won't 
be available for you), but at least you'll be able to start using manageR.
In the mean time, I'll try to figure out why you don't have this base 
function? To help me, please provide your R version, QGIS version, and 
Rpy2 version (plus any other info that you think might be helpful).


Cheers,

Carson


Workaround sugested by Carson while he finds a final fix:
I'm still working on this, but I don't know what is causing this 
error. Technically, the QXmlStreamReader is part QtCore, so I don't 
really know why this isn't working...


For now, if you simply change the auto_completion variable in your 
config.ini file located in your manageR directory from commands.xml 
to Auto, manageR will skip the xml parsing step, and simply read the 
autocommands from your default R environment (i.e. the auto complete 
suggestions will be based on the packages you have set to 
automatically load when R is loaded (base, graphics, stats, etc.).


--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/


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


Re: [Qgis-user] Error at starting manageR

2009-05-22 Thread Carson Farmer

Hi Agus,

I'm having the following error at starting manageR
using R 2.9, rpy2-2.04, qgis 1-0-2 and manageR 0.6.8 on ubuntu 8.04 
hardy:


An error has occured while executing Python code:

Traceback (most recent call last):
  File /home/alobo/.qgis//python/plugins/manageR/manageR.py, line 
29, in run

d = manageRDialog.manageR( self.iface, self.version )
  File /home/alobo/.qgis//python/plugins/manageR/manageRDialog.py, 
line 46, in __init__

int( parser.get('general', 'delay') ) )
  File /home/alobo/.qgis//python/plugins/manageR/completer.py, line 
27, in __init__

self.loadSuggestions( commandList )
  File /home/alobo/.qgis//python/plugins/manageR/completer.py, line 
136, in loadSuggestions

xml = QXmlStreamReader( document.toByteArray() )
NameError: global name 'QXmlStreamReader' is not defined
This is not an Rpy2 issue, it's a Qt issue. The latest version of 
manageR uses the QXmlStreamReader to read the command completion info 
from an xml file. You likely don't have the QtXml stuff installed, which 
is what is causing this error. I'm going to make it so you don't have to 
load the commands from the xml file (in fact, the version in my google 
code repository already has this feature), but the way it is currently 
set up, you do...


Sorry for the confusion, and if I get a chance tonight, I'll update the 
manageR version to this latest version.


Cheers,

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


Re: [Qgis-user] basic raster processing

2009-05-21 Thread Carson Farmer

John,
I'm relatively new to QGIS.  I've used it for viewing various sources 
of data and some vector editing and geoprocessing.  Now, I'd like to 
do some basic raster processing, like simply multiplying and adding 
rasters, conditional expressions (e.g., if value  0, then = 0, else 
value), slope, aspect, etc



What is the method to do these via QGIS?   GRASS may be an option but 
I understand it takes some preprocessing to get your files into GRASS 
datasets, which could be a lot of work (numerous data sets, some 
several GBs in size.)Thanks.


Have a look at Barry Rowlingson's rasterlang plugin:
http://www.maths.lancs.ac.uk/~rowlings/Qgis/Plugins/plugins.xml

Barry also has a google code page which would likely have his latest 
version/improvements:

http://code.google.com/p/bsrplugins/source/browse/#svn/trunk

Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/


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


Re: [Qgis-user] Error in download webpage?

2009-05-14 Thread Carson Farmer

All,
I noticed that already too - but .. AFAIK theres no bug in the 
Website itself - It seems that sometimes some parts are somehow not 
rendered correctly - Or even not delivered to the browser .. a simple 
click on reload always solved the problem for me ..
Not for me! I am having the same trouble others are having on Firefox 
and Opera, but Epiphany works nicely right away?!


No suggestions though, as I don't have time at the moment to take a 
closer look...


C

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


Re: [Qgis-user] merging of R plugins?

2009-04-29 Thread Carson Farmer

Hi Ricardo,

I'd like to suggest to the authors of the 2 great plugins manageR and
spqr that they combine their efforts into an R super plugin! :)
  
I'm not sure if Barry is interested in continuing to work on his spqr 
plugin, and as it stands, spqr requires rpy, and manageR requires rpy2, 
so integration isn't ;quite so simple (though it can certainly be 
done)... once I have more time (after the new QGIS manual is released), 
I'm going to add quite a few new features to manageR, including several 
'point and click' tools, so perhaps this could be one of them...


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


[Qgis-user] Re: [Qgis-developer] problem in projection

2009-04-28 Thread Carson Farmer

Hi Bijay,

Hi All,
I am using Qgis 1.0.0 in ubuntu 8.04.Actually after loading a Raster 
layer when i try to select
change co-ordinate Reference system (CRS)in project properties it 
shows only three i.e 
Geographic co-ordinate system

Projected co-ordinate system
User defined co-ordinate system
You will need to expand one of the above tree items to view the CRS 
under them... to do this, click the + symbol and select the CRS you want 
(you will have to know whether it is a Geographic, Projected, or User 
defined CRS). You can also use the search tools to help you find the CRS 
you are looking for...


Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/


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


Re: [Fwd: Re: [Qgis-user] Assigning a keyboard shortcut to a plugin]

2009-04-22 Thread Carson Farmer



So this is possible in a plugin? Kewl!

Slightly off-topic, would it be nice to create a plugin for
customizing key-bindings of QGIS functions?  
This would certainly be useful, the only issue is that many plugins and 
tools manage their key bindings themselves, so it would be difficult to 
change these without direct access to the plugin in question...


...or maybe not if someone else knows some Qt magic that I don't ;-p

Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/


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


[Qgis-user] Re: Plans to improve manage-R

2009-04-22 Thread Carson Farmer

Hi Nikos,

I don't want to repeat how useful your plugins are. Rather, I want to
ask if you plan to improve manage-R:

* command syntax support/highlighting
  

yes, eventually...

* command auto-complete function
  

definitely... soon

* customisable appearance (font shape/size, background color, etc. --
separate from default qt-config)
  
I have started to address this (you can change the background and text 
colours by adjusting the [theme] variables in the plugins .ini file (see 
manageR help). Hopefully I'll add some gui options to the manageR 
dialog... the only issue is that according to the QGIS gui guidelines, 
only the main application is supposed to have a menu bar, so I will 
likely have to find alternative ways of doing this...


Hopefully that's what you were hoping to hear. Please let me know if you 
have any further suggestions, or would like to contribute at all.


Cheers,

Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/


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


Re: [Qgis-user] Plans to improve manage-R

2009-04-22 Thread Carson Farmer

Agus et al.,

I personally would add a button to save
the plotting window as emf, svg, bmp etc
(as the windows R GUI does). Is this hard?

no shouldn't be too hard, I will add this to the todo list ;-)

C

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


Re: [Qgis-user] fTools error

2009-04-20 Thread Carson Farmer

Kosza,

...and what version of qt, did you compile QGIS yourself?

Carson


hi

i get the following popup on startup:


Couldn't load plugin fTools due an error when calling its initGui()
method

Traceback (most recent call last):
  File , line 1, in 
  File /home/toni/.qgis//python/plugins/fTools/fTools.py, line 195, in

initGui
menuBar = self.iface.mainWindow().menuBar()
AttributeError: menuBar

Python version:
2.5.4 (r254:67916, Feb 18 2009, 03:17:34) 
[GCC 4.3.3]


in background (on console):

t...@erasmus:~/bin/qgis/qgis_unstable/build$ ../apps/bin/qgis
Python support ENABLED :-) 
Warning: Object::connect: No such slot

QgsWFSPlugin::setCurrentTheme(QString)
Loaded : fTools (package: fTools)
Loaded : MapServer Export (package: mapserver_export)
Segmentation fault
t...@erasmus:~/bin/qgis/qgis_unstable/build$ 



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

  



--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/


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


Re: [Qgis-user] Relational Databases and PostGIS formatting of Vector Data

2009-04-09 Thread Carson Farmer

Peter,



What tool did you use to import the layer into POSTGIS?


Quantum GIS.
My guess is you actually used the SPIT plugin, which is a C++ plugin 
included with QGIS, and is a gui frontend to shp2pgsql...


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


Re: [Qgis-user] Relational Databases and PostGIS formatting of Vector Data

2009-04-09 Thread Carson Farmer




Yes, that is correct.
Are there any other 'shp ingesters' for use with QGIS?
AFAIK the PostGIS manager plugin is also able to load shapefiles into 
PostGIS, and this is a nice simple way to manage your database directly 
from within QGIS.


I am thinking that my complaint regarding proper normal form
for vector data ingested into postgresql should also be tempered
with the idea that any database user could reorganize the ingested
data into any format they desire. Therefore, it's not as though
anything is actually irreparably disorganized or broken.

Technically one could just add a trigger to the system catalogs
to check if a new table has been added to the database and then
go from there.
Yes, I think you're probably right here. It would be difficult to create 
a tool that would import data into pgsql the way that everyone or anyone 
would like... so KISS is the best solution (keep it simple s...) from 
here it's up to the database maintainer to keep things the way they want 
it...


Th postgis user lists would probably benefit from this discussion, have 
you suggested similar things there? Most of us on the QGIS lists aren't 
database experts, so a better discussion would probably come out of the 
postgis lists.


Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


Re: [Qgis-user] Relational Databases and PostGIS formatting of Vector Data

2009-04-09 Thread Carson Farmer



On Thu, Apr 9, 2009 at 7:53 PM, Peter Willis pet...@borstad.com wrote:
  

Carson Farmer wrote:


Peter,
  

What tool did you use to import the layer into POSTGIS?
  

Quantum GIS.


My guess is you actually used the SPIT plugin, which is a C++ plugin
included with QGIS, and is a gui frontend to shp2pgsql...
  


Just to clarify: SPIT plugin is not a frontend to shp2pgsql, it has
its own logic.
  

I stand correctly ;-)

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


[Qgis-user] Re: Manage R

2009-04-06 Thread Carson Farmer

Alessandro,
in Windows all packages (included rgdal) are installed in 
C:\Programmi\R\R-2.7.0\library\. I tried to set lib.loc and libpath 
but without good results. I don't know if I made some errors with 
paths, but I tried numerous ones...

Ale
hmm I wonder if this has something to do with the osgeo4w install of 
these programs... I'll have a poke around and see what I come up with... 
are you using the osgeo4w installer?


Carson


--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


[Qgis-user] Re: Manage R

2009-04-05 Thread Carson Farmer

Alessandro,

Hi Carson,
I tried to use the Ctrl+F command in the manageR interface to export a 
R layer to a file, but I had this message:

Unable to find R package 'rgdal'.
but using R interface I installed rgdal and I can load it without 
problem (with library(rgdal) command).

If I use library(rgdal) in the manageR interface I have this message:
Errore: caricamento pacchetto/namespace fallito per 'rgdal' (in italian)
Error: loading package/namespace failed for 'rgdal' (in english)

The Ctrl+M command works fine.
What could be the problem?
I'm using QGIS 1.0.1 (OSGEO installer) and R-2.7.0 in Windows XP.
This might have something to do with the fact that rgdal is often 
installed in a separate directory than other R packages (because it 
depends on proj4 and gdal/ogr. When trying to load the library in 
manageR, try specifying the lib.loc or libpath parameter(s), you will 
have to figure out where these packages are installed first, as I do not 
have a Windows machine to check this on. If this doesn't work, please 
let me know, and I'll try to think of something else...


lib.loc: a character vector describing the location of R library trees
 to search through, or 'NULL'.  The default value of 'NULL'
 corresponds to all libraries currently known. Non-existent
 library trees are silently ignored.

libpath: a character string giving the complete path to the package.


About this problem, I updated the plugin and now it's works: the 
fields are in the original order!

Thank you very much!!!

Great! I don't know why I didn't get this fixed sooner ;-)

Cheers,

Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


[Qgis-user] Re: Manage R

2009-04-04 Thread Carson Farmer

Alessandro,
I updated manageR plugin and now It works perfectly in my notebook! 
Great!
Excellent, I'm glad to hear it. The whole Rpy, Numpy, R, and QGIS 
install process is not as easy as I'd like it to be, so it's good to 
hear that some are getting it to play nicely!

I noticed that, when I load a layer in manageR, the order of the fields
of the table seems to be random.
It's a bug or it's a normal behaviour of sp package that I'm not able to
manage?
Well it's a bit of both: PyQGIS and RPy use python dicts to store 
attribute data etc., and at some point between reading the attributes 
from QGIS and converting to R the fields get randomised (python dicts 
store key-value pairs in random order to speed retrieval). So it's 
nothing to do with R. I am going to have a look at this today, because 
in the past I have been able to overcome this problem. Thanks for 
reminding me ;-)

p.s. I hope to have the time to test manageR and to prepare a small
basic statistical course with QGIS+manageR for my colleagues. Your
plugin is a great tool! :-)
This is very nice to hear! I'm hoping to do the same here, so let me 
know about any and all bugs you find while testing, and I'd love to hear 
how your course goes and what content you end up using.


Cheers,


Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


Re: [Qgis-user] Python scripting

2009-04-02 Thread Carson Farmer

Alessandro et al.,
I'm also interested in using python and QGIS for simple scripts 
espacially for batch processing, and some examples could be very useful!
Attached is a python script for performing some basic geoprocessing 
functions on vector layers. The header of the file contains usage 
examples to help get you started... it's probably not the cleanest 
python code, nor the most pythonistic... but you get the idea ;-)


Hope this helps to get you started...

The other good resource for python scripting is: 
http://wiki.qgis.org/qgiswiki/PythonBindings


Cheers,


Carson

Thanks
Ale

georgew ha scritto:
ThanKs Alex, the problem is I have not been able to find any example 
that is free standing, all seem to be plugins or use QT to generate a 
UI. Can you point me to a working example, however simple (e.g. read 
shapefile, project,write shapefile) that can set me off on the right 
path?

Many thanks
G.
  


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



--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

from PyQt4.QtCore import *
from qgis.core import *

class GeoprocessingEngine( ):
'''
USAGE:

GeoprocessingEngine( func, layerA, layerB, outPath, encoding, param, merge )
func : geoprocessing function
1: Buffer
2: Convex Hull
3: Difference
4: Dissolve
5: Intersection
6: Union
7: Symetrical Difference
8: Clip
layerA : QgsVectorLayer
layerB : QgsVectorLayer
outPath : string - /home/cfarmer/Desktop/test.shp
encoding : default is 'System'
param : a parameter, may be used for buffer, and dissolve
merge : should the results be merged (buffer)

EXAMPLE:

# import engine
from Geoprocessing import GeoprocessingEngine
layerA = QgsVectorLayer(/path/to/layer.shp, layerA, ogr)
layerB = QgsVectorLayer(/path/to/layer.shp, layerB, ogr)
# create geo engine
geo = GeoprocessingEngine( 5, layerA, layerB, '/home/cfarmer/Desktop/test.shp')
# compute geoprocessing event, and output result
outlayer = geo.compute() # compute() returns the output layer as a QgsVectorLayer

This alows us to link multiple runs together:
geo1 = GeoprocessingEngine( 5, layerA, layerB, '/home/cfarmer/Desktop/test1.shp')
outlayer = geo1.compute() 
geo2 = GeoprocessingEngine( 3, layerA, outlayer, '/home/cfarmer/Desktop/test2.shp')
outlayer = geo2.compute()
...
...

temp files are created for better usage of memory when using large layers

'''
def __init__( self, function, layerA, layerB, outputName, encoding = 'System', param = 0, merge = False ):
self.myFunction = function
self.success = False
self.layerA = layerA
self.layerB = layerB
self.param = param
self.merge = merge
self.outputName = outputName
self.encoding = encoding

def compute( self ):
check = QFile( self.outputName )
if check.exists():
if not QgsVectorFileWriter.deleteShapeFile( self.outputName ):
return None
self.geoprocessing( self.myFunction, self.layerA, self.layerB, self.param, self.merge, self.outputName, self.encoding )
return QgsVectorLayer( self.outputName, temp, ogr )


def geoprocessing( self, function, myLayerA, myLayerB, myParam, myMerge, myName, myEncoding ):
self.myFunction = function
self.myLayerA = myLayerA
self.myLayerB = myLayerB
self.myParam = myParam
self.myMerge = myMerge
self.myName = myName
self.myEncoding = myEncoding

self.vlayerA = self.myLayerA
if self.myFunction == 1 or self.myFunction == 2 or self.myFunction == 4:
( self.myParam, useField ) = self.checkParameter( self.vlayerA, self.myParam )
if not self.myParam is None:
if self.myFunction == 1:
geos, feature, match = self.buffering( useField )
elif self.myFunction == 2:
geos, feature, match = self.convex_hull( useField )
elif self.myFunction == 4:
geos, feature, match = self.dissolve( useField )
else:
self.vlayerB = self.myLayerB
if self.myFunction == 3:
geos, feature, match = self.difference()
elif self.myFunction == 5:
geos, feature, match = self.intersect()
elif self.myFunction == 6:
geos, feature, match = self.union()
elif self.myFunction == 7:
geos, feature, match = self.symetrical_difference()
elif self.myFunction == 8:
geos, feature, match = self.clip()

def buffering( self, useField ):
GEOS_EXCEPT = True
FEATURE_EXCEPT = True
vproviderA = self.vlayerA.dataProvider()
 

Re: [Qgis-user] new manageR

2009-03-30 Thread Carson Farmer

Hi gang,

I don't actually use Numeric directly, this is likely an rpy2 issue. 
I'll ask around on that list to see if I can see a simple solution... 
I'll keep you updated on my progress...


Carson
There is a dependency on Numeric. Apparently Carson needed some 
functionality from Numeric that is unavailable in numpy.


Carson: is this something that cannot be worked around? Numeric has 
been replaced by numpy, and there is no easy_install method for 
Numeric. This seems problematic.


John

On Mar 29, 2009, at 7:44 PM, Maxim Dubinin wrote:


Hi Carson,

great news, I'm using R a lot and the idea of interfacing it with QGIS
is great.

I have some problems with making manageR work. Though it seems that 
all the

components are there (python-rpy2, python-numpy):
http://gis-lab.info/images/screenshots/20090329-fqt-109kb.jpg

I'm still getting this error after installing and clicking on manageR
button

Traceback (most recent call last):
 File C:/Documents and 
Settings/mdubinin/.qgis//python/plugins\manageR\manageR.py, line 28, 
in run

   import manageRDialog
 File C:/Documents and 
Settings/mdubinin/.qgis//python/plugins\manageR\manageRDialog.py, 
line 6, in
   from QLayerConverter import QVectorLayerConverter, 
QRasterLayerConverter
 File C:/Documents and 
Settings/mdubinin/.qgis//python/plugins\manageR\QLayerConverter.py, 
line 4, in

   import Numeric, array
ImportError: No module named Numeric

Âåðñèÿ Python:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]

Ïóòü ïîèñêà Python:['C:/OSGeo4W/apps/qgis/./python', 'C:/Documents 
and Settings/mdubinin/.qgis//python/plugins', 
'C:/OSGeo4W/apps/qgis/./python/plugins', 
'C:\\WINDOWS\\system32\\python25.zip', 
'C:\\OSGeo4W\\apps\\Python25\\DLLs', 
'C:\\OSGeo4W\\apps\\Python25\\lib', 
'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win', 
'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk', 
'C:\\OSGeo4W\\apps\\qgis\\bin', 'C:\\OSGeo4W\\apps\\Python25', 
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages', 
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32', 
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib', 
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin', 
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode', 
'C:\\Documents and 
Settings\\mdubinin\\.qgis\\python\\plugins\\fTools\\tools']


--
Best regards,
Maxim

Вы писали 29 марта 2009 г., 19:26:25:

CF Hello listers,

CF I am pleased to announce a new version of manageR is now 
available in my
CF plugin repository (http://www.ftools.ca/cfarmerQgisRepo.xml or 
via the
CF plugin installer using 3rd party repos). I am particularly happy 
with

CF this version, as I think it is a major improvement over the older
CF manageR. The interface is cleaner, and the console is more like a 
proper

CF R console, so R users will likely find it easier to use. Multi-line
CF commands can be entered line by line, or pasted into the console 
(type
CF Ctrl+H in the console to see usage details), and layers can be 
imported

CF and exported to and from manageR using simple keyboard commands.

CF This plugin is still in relatively early stages of development, 
but it
CF should be safe enough to not destroy your data ;-) If you would 
like to
CF help me improve manageR, and make it more stable, please report 
any bugs

CF or suggestions using my google-code site:
CF http://code.google.com/p/ftools-qgis/  or if you prefer, you can 
email

CF me at: carson_dot_farmer_at_gmail_dot_com. I will also add more
CF information to http://www.ftools.ca/manageR.html over the next 
few days.


CF Requirements:

QGIS version 1.x - http://www.qgis.org/index.php
CF Rpy2 version 2.0.3 - http://rpy.sourceforge.net/rpy2.html
CF R version 2.7.1 or higher (= 2.8.0 recommended) -
CF http://www.r-project.org/
CF Numpy version 1.x.x - http://numpy.scipy.org/


CF Cheers,


CF Carson


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






--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/


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


Re: [Qgis-user] new manageR

2009-03-30 Thread Carson Farmer

Hi Jürgen,

Hi Maxim,

On Sun, 29. Mar 2009 at 21:44:54 -0500, Maxim Dubinin wrote:
  

I'm still getting this error after installing and clicking on manageR
button

Traceback (most recent call last):
  File C:/Documents and 
Settings/mdubinin/.qgis//python/plugins\manageR\manageR.py, line 28, in run
import manageRDialog
  File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\manageRDialog.py, line 6, in 
from QLayerConverter import QVectorLayerConverter, QRasterLayerConverter
  File C:/Documents and Settings/mdubinin/.qgis//python/plugins\manageR\QLayerConverter.py, line 4, in 
import Numeric, array

ImportError: No module named Numeric



Hm, reminds me of http://trac.osgeo.org/osgeo4w/ticket/65 somehow.
Might installing R 2.6.2 and python-rpy help?
Nope, don't do this! manageR only works with the new rpy2, and newer 
versions of R... having said that, the Numeric dependency has been 
removed (just now), and I'll upload a new version in about 10 minutes!


Cheers,

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


Re: [Qgis-user] Vector Layer Translate Feature

2009-03-30 Thread Carson Farmer

Pietro,
I'm writing a Python plugin to allow the user to translate a whole vector 
layer by a given shift.


I use the translateFeature() of the QgsVectorLayer class but if the layer is 
zoomed the function translates only the visualized features.


Can someone point me a way to act on the whole layer regardless of the current 
zoom?
  
In your provider.select() call, what do you use for the spatial filter? 
If you want to run through all features in the layer, make sure you 
don't specify any bounds in the rect variable:


attrs = provider.attributeIndexes()
provider.select(attrs)

or if that doesn't work, specify the extent of the layer as the rect 
using layer.extent(), which is inherited from QgsMapLayer...


Cheers,

Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/


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


[Qgis-user] new manageR

2009-03-29 Thread Carson Farmer

Hello listers,

I am pleased to announce a new version of manageR is now available in my 
plugin repository (http://www.ftools.ca/cfarmerQgisRepo.xml or via the 
plugin installer using 3rd party repos). I am particularly happy with 
this version, as I think it is a major improvement over the older 
manageR. The interface is cleaner, and the console is more like a proper 
R console, so R users will likely find it easier to use. Multi-line 
commands can be entered line by line, or pasted into the console (type 
Ctrl+H in the console to see usage details), and layers can be imported 
and exported to and from manageR using simple keyboard commands.


This plugin is still in relatively early stages of development, but it 
should be safe enough to not destroy your data ;-) If you would like to 
help me improve manageR, and make it more stable, please report any bugs 
or suggestions using my google-code site:  
http://code.google.com/p/ftools-qgis/  or if you prefer, you can email 
me at: carson_dot_farmer_at_gmail_dot_com. I will also add more 
information to http://www.ftools.ca/manageR.html over the next few days.


Requirements:

QGIS version 1.x - http://www.qgis.org/index.php
Rpy2 version 2.0.3 - http://rpy.sourceforge.net/rpy2.html
R version 2.7.1 or higher (= 2.8.0 recommended) - 
http://www.r-project.org/

Numpy version 1.x.x - http://numpy.scipy.org/


Cheers,


Carson

--
Carson J. Q. Farmer
ISSP Doctoral Fellow
National Centre for Geocomputation (NCG),
National University of Ireland, Maynooth,
Email: carson.far...@gmail.com
Web:   http://www.carsonfarmer.com/
  http://www.ftools.ca/

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


  1   2   >