[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  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 
[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  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  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 , 
> 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  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 Initiativ

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/
>>> ___
>&

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


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


[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


[Qgis-user] Re: [Qgis-developer] Multipart to Singlepart: empty result

2011-03-12 Thread Carson Farmer
This is why I love open source!
> 2) The fTools have one BUG in method of  "multi_to_single":
> 2.1) Source:
> http://trac.osgeo.org/qgis/browser/trunk/qgis/python/plugins/fTools/tools/doGeometry.py
> 2.3) Adjust in code:
> 2.3.1) In line 354 put:
> geometryTypeWriter = vprovider.geometryType() - 3
> 2.3.2) In line 358 change:
>  vprovider.geometryType()  to geometryTypeWriter
If you haven't already opened the ticket, don't bother, this has now
been fixed in r15451.

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] 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  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 :
>>
>>> 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
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
 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] 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  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
>  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] 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  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] 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] "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 :
> 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  that intersect features in . 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  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  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 wrote:

> 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  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] 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  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] 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  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] 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
 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] Road graph topological editing

2010-09-01 Thread Carson Farmer
There is a line intersection tool in the Vector menu that might get
you your points: Vector - Analysis Tools - Line Intersections.
Not exactly sure what you mean by your second point though?

Carson


On 1 September 2010 17:41, toxjo...@tiscali.it  wrote:
>  Hello,
>
> I imported in QGIS 1.5 a line vector layer representing roads (say arcs) of
> a city.
> I would like to:
> - create a new point vector layer with a point for each cross between lines;
> - add two columns to the original line vector layer, indicating the cross
> before and after each road, respectively.
>
> Any hint?
>
> Thank you very much!
> Toni
>
>
>
>
>
> ___
> 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  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 
>
> ___
> 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  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] (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  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
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  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] 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  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] QGIS "Near"

2010-05-31 Thread Carson Farmer
No plugin that I know of, but it could probably be done quite easily
from the Python console,
something to the tune of (untested!):

layer = qgis.utils.iface.mapCanvas().layer(0)
provider = layer.dataProvider()
provider.select([])
feat = QgsFeature()
index = QgsSpatialIndex()
while provider.nextFeature(feat):
index.insertFeature(feat)
provider.select([])
while provider.nextFeature(feat):
near = index.nearestNeighbour(feat.geometry().asPoint(),1)
nearest = near[0]
# now do something here with the two points... and output results
as you like

# Obviously you'd have a bit more work to do here to compute angles
etc. but all this functionality is available via the QGIS API...
# If I get a chance, I might try to add this to the fTools/Vector menu...

Regards,

Carson

On 26 May 2010 22:13, whollycow  wrote:
> Is anyone aware of a function equivalent to "Near" in ArcGIS? (see
> http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Near_(Analysis)
> for reference) I have been searching all day and haven't come across
> anything quite like it. It seems like such basic functionality I would be
> surprised if someone hasn't already coded a solution.
> 
> View this message in context: QGIS "Near"
> 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] 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  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] 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
 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] 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  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 :
> 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] 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  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


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] 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] 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  wrote:
> On Mon, Apr 12, 2010 at 1:09 AM, Alex Mandel  
> 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


[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  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 :
>
>>
>> On Sun, 11 Apr 2010 16:09:38 -0700, Alex Mandel
>> 
>> 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] Batch "conversion"

2010-04-06 Thread Carson Farmer
Matej,

Something like the following might do it (not tested):

import os
import qgis.core
# dir_name is the path to your directory of TAB files
for layer_string in os.listdir(dir_name):
whole_name = dir_name + layer_string
layer_name = layer_string.replace(".tab","")
layer = QgsVectorLayer(whole_name, layer_name, "ogr")
QgsVectorFileWriter.writeAsShapefile(layer, dir_name + layer_name
+ ".shp", "UTF-8", layer.crs(), False)

That's a bit of a hack, but it should do it for you I think...


Cheers,

Carson


On Tue, Apr 6, 2010 at 1:21 PM, Matej  wrote:
> Hi all!
>
> Sometimes it happens to me that I have a lot of TAB files to convert to SHP
> TABs can be opened only for reading but not writing and saving them to SHP
> solves this issue for us. However, clicking Save As for every layer and
> specifying the same name as TAB filename does (only the extension is
> different) and also all the projection settings are the same for all files.
> So I was thinking about some sort of batch "conversion".
>
> Would it be useful? Is is (I believe it is) possible to be implemented?
>
> Thanks,
> Matej
> ___
> 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] 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] 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
 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 
> 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] 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
 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] 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
> 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] 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] 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
 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] Python Console and python scripts geoprocessing in QGIS

2010-01-14 Thread Carson Farmer
> I think it would be useful if some of the authors of those python
> plugins can demonstrate how to use the functions / commands in python
> script in QGIS python console or just in python CLI. We can mix and
> match command for geoprocessing to unless the power of QGIS.

Hi Noli,

As far as I know, most plugins aren't set up to allow scripting of
their functions etc. We are currently working on incorporating all of
the fTools (Vector/Tools menu) into the core C++ api, so that users
and developers will have access to these functions via Python, but at
the moment only a few functions are implemented. Generally, it depends
on how the plugin authors have set up their modules, but more than
likely this is not possible for most plugins.

Cheers,

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] 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] manipulating shapefiles

2009-12-23 Thread Carson Farmer
If your shapefiles are actually projected to srid 4326, and have just
been assigned an srid of -1, then you can use the define projection
tool in the tools menu (note, there is currently a bug which outputs
the name of the resulting .prj file wrong, so please remember to go
into the directory with the file and rename it). If it`s something
else, you can right click the layer, and use save as shapefile, which
will ask which output crs to use...

Hope that helps,

Carson

On Wed, Dec 23, 2009 at 5:05 AM, sunny74  wrote:
>
> Hi,
>
> I have got several shapefiles from which I am able to display map using
> mapserver.
> But the problem is that it has a srid value of -1 i.e no projection.
> As a result of this several functionalities which uses geometry are not
> working.
> I think the default srid value is 4326.Pls confirm.
>
> I want to convert the srid value from -1 to 4326.
> How can I do this using QGIS?
> I know this is possible using GEOMEDIA Web 6.0.
>
> If anybody has any idea or tutorial regarding .shp manipulation using
> Geomedia pls send it across.
>
> Thanks for ur replies.
>
> sunny74
> --
> View this message in context: 
> http://n2.nabble.com/manipulating-shapefiles-tp4207296p4207296.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
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] Problem with SDA4PP/Linked Statistical Display

2009-12-16 Thread Carson Farmer
This might be because Rpy2 doesn't seem to look in all the same places 
that R does... what about specifying the library location when using 
library... though this isn't a solution for the plugin, it might help to 
narrow down the problem...


?library

Carson



This might be a clue:
require(iplots) does not work from within the manageR console
(Carson?):
> require(iplots)
Error: package 'rJava' could not be loaded

while it works from a normal R console
(ubuntu 9.04, R. 2.10)

Agus

Volkan Kepoglu wrote:
I assumed that the problem is related with pywin32 but your OS is 
ubuntu, so the problem should be related with either rpy2 or iplot 
package in R or with java.


actually, i do not know the solution.

regards,
volkan.
 

On Sun, Dec 13, 2009 at 12:44 PM, Agustin Lobo > wrote:


But I still get the error on ubuntu 9.04 despite having
rJava available in R (2.10):

Traceback (most recent call last):
 File "/home/alobo/.qgis//python/plugins/SDA4PP/sda4pp.py", line
163, in doIplotTool
   d = iplot.IplotTool(self.iface)
 File "/home/alobo/.qgis//python/plugins/SDA4PP/iplot.py", line 64,
in __init__
   self.readInputFile()
 File "/home/alobo/.qgis//python/plugins/SDA4PP/iplot.py", line 357,
in readInputFile
   errorChecking = sda4ppLoadRpackage.readLib("iplot")
 File
"/home/alobo/.qgis//python/plugins/SDA4PP/sda4ppLoadRpackage.py",
line 58, in readLib
   result += loadIplot(r)
 File
"/home/alobo/.qgis//python/plugins/SDA4PP/sda4ppLoadRpackage.py",
line 143, in loadIplot
   r.require("iplots")

 File
"/usr/local/lib/python2.6/dist-packages/rpy2/robjects/__init__.py",
line 422, in __call__
   res = super(RFunction, self).__call__(*new_args, **new_kwargs)
RRuntimeError: Error: package 'rJava' could not be loaded


Agus


Volkan Kepoglu wrote:

finally, cleaning the upgrade and the glitches in the plugin gui
under linux is completed - i think.
please, update the plugin to rev. 0,151.

regards,
volkan.

On Wed, Dec 9, 2009 at 11:52 PM, Paolo Cavallini
mailto:cavall...@faunalia.it>
>>
wrote:


   Please note: the upgrade seems not to be clean. I keep on
having the
   plugin
   marked as upgradeable, even after the upgrade. This has 
already

   happened in
   the past.
   Thanks Volkan!






___
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] 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: [Qgis-user] vector editing

2009-11-16 Thread Carson Farmer
Hi Ambrish,

> 1) I have by mistake deleted a vector feature and how to undo it, recover
> it.
Which version of QGIS are you using? As of 1.2 (I think), there are
undo options for editing...

> 2) are there any trace tools in qgis?
Do you mean digitizing tools? Most definitely! Have you looked at the
editing toolbar/functions? To start, right click on a layer and select
'toggle editing'

> 3) though the polygon is deleted but in the editing mode the deleted polygon
> is seen, how to recover that.

Not sure I get what you mean here? After deleting a feature while
editing, does it remain on the map canvas?

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 :
>
>
> 
> 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: What is "is a qgis problem"? (it was Re: [Qgis-user] Scattergram with compiled qwt5.2.0)

2009-11-07 Thread Carson Farmer
do not 'serve the users', they are users themselves, and are
volunteering their time to work
on things that 'they need'. If they can, they will also implement
things that other users need,
but in the end, there is only so much time in the day.

> I'm working on a web 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] 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
 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  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] Re: Layouter: different datasets in different frames -- creating insets

2009-10-23 Thread Carson Farmer
What about using scale dependent rendering?
i.e. have different rendering scales for your different data?

Carson

On Fri, Oct 23, 2009 at 6:03 PM, InterRob  wrote:

> Forgot to attach the image. Herewith.
>
>
> Rob
>
> 2009/10/23 InterRob 
>
> Dear list,
>>
>> I find QGIS a very promising package to do real sophisticated GIS analyses
>> and cartography. Regarding that last bit, I have a practical question: how
>> can I add an "inset map" next to a frame featuring a detailed map of a
>> certain area. I managed to insert two frames with the same contents, but
>> different zoom levels (as illustrated by the attached GIF-image). However, I
>> wish to use different data in each of the frames... How can I do this?
>>
>> And how about inserting the frame extends (the indicating box in the
>> overview inset map)?
>>
>> Regards,
>> Rob
>>
>>
>
> _______
> 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: 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  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] 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


Re: [Qgis-user] ManageR: load ASCII grid file

2009-10-15 Thread Carson Farmer
Hi enrico,

Based on the fact that it works ok for vector layers, I would guess that the
error message you are getting is simply wrong (my bad :-()
Would it be possible for you to send me the ASCII grid layer to test?
Some background: manageR actually uses the rgdal package to import raster
data (it's faster, and QGIS doesn't *yet* have the
facilities to operate on rasters properly), so it's possible that this is an
gdal error...

Regards,

Carson

On Thu, Oct 15, 2009 at 10:13 AM, enrico chiaradia <
enrico.chiara...@unimi.it> wrote:

> Hi,
> I'm playing with ManageR (I hope to work with it in the future!) and I meet
> this problem:
> I can't import ASCII grid layer from canvans (CTRL+L) because it says to me
> that:
>
> "manageR import function
>
> Error: Unable to find R package 'sp'.
>
> Please manually install the 'sp' package in R via install.packages()"
>
>
> Ok, I looked for installed packages and 'sp' seems correctly installed!
>
>
> "
>
> > installed.packages()
>
> Package LibPath Version
>
> [...]
>
> rgdal "rgdal" "C:/Programmi/R/R-2.9.2/library" "0.6-14"
>
> rpart "rpart" "C:/Programmi/R/R-2.9.2/library" "3.1-45"
>
> sp "sp" "C:/Programmi/R/R-2.9.2/library" "0.9-43"
>
> spatial "spatial" "C:/Programmi/R/R-2.9.2/library" "7.2-48"
>
> splines "splines" "C:/Programmi/R/R-2.9.2/library" "2.9.2"
>
> stats "stats" "C:/Programmi/R/R-2.9.2/library" "2.9.2"
>
> stats4 "stats4" "C:/Programmi/R/R-2.9.2/library" "2.9.2"
>
> [...]
>
> "
>
>
>
> Any ideas to resolve this issue?
> BTW: it works perfectly with vector file and attribute table!
> enrico
> ___
> 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] 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  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] 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: [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  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: 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 Sarretta"
>>Cc: 
>>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
>>><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.  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 tools>spatial 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 wrote:

> 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  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-26 Thread Carson Farmer
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> 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
___
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  wrote:

> On Mon, Aug 24, 2009 at 4:41 PM, Carson Farmer
> 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


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


Re: [Qgis-user] Qgis segfaults on Kubuntu

2009-08-06 Thread Carson Farmer

Ricardo,

The solution that Christy Nieman posted may well work as well, but the 
root of the problem is likely that one of your qt3 packages isn't 
playing nicely with QGIS (and probably other qt applications as well).


The solution:

$ sudo apt-get remove uim-qt3

Let us know if that helps,

Carson

Carson
After typing qgis at the konsole I briefly see the splash window
loading qgis as usual and then it crashes. The only output I get at
the konsole window is "Segmentation  fault". I can't read the whole
text that gets diplayed at the splash window, but I can confirm that
it gets to the "starting python" message (which I think was the last
message to be displayed usually)


On Thu, Aug 6, 2009 at 3:52 PM, Carson Farmer wrote:
  

Hi Ricardo,


Hello list
Today I upgraded my Kubuntu Jaunty, installing several new packages
(including the shinny kde 4.3). I thought everything went fine, but
now I can't start Qgis. It only gives me a "segmentation fault"
message in the konsole with nothing more.

  

Could you post the konsole output right up to the segfault?
Also, what was printed to the qgis splash screen?

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] Qgis segfaults on Kubuntu

2009-08-06 Thread Carson Farmer

Hi Ricardo,

Hello list
Today I upgraded my Kubuntu Jaunty, installing several new packages
(including the shinny kde 4.3). I thought everything went fine, but
now I can't start Qgis. It only gives me a "segmentation fault"
message in the konsole with nothing more.
  

Could you post the konsole output right up to the segfault?
Also, what was printed to the qgis splash screen?

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


Fwd: [Qgis-user] polygon centroids

2009-07-28 Thread Carson Farmer
-- Forwarded message --
From: Carson Farmer 
Date: Wed, 29 Jul 2009 07:08:17 +0100
Subject: Re: [Qgis-user] polygon centroids
To: Geofrey Sanders 

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  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  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] manageR feature requests

2009-05-28 Thread Carson Farmer

Hi Ricardo,

Having read on a previous post that the author of manageR is taking
feature requests, I'd like to leave a couple :)
  

Great!

1 - The possibility to import non ASCII characters into manageR. In my
opinion this would be a huge improvement for us non-native english
speakers. I know Carson is aware of this issue, but I can't resist
ringing it again ;)
  
This might be a bit tricky, as I can't seem to get non ascii characters 
into R via Rpy. So it's not that manageR doesn't like the non ascii 
characters, is that rpy doesn't seem to like them (but I'll keep looking 
into this).

2 - It would be great if the R help would work under manageR. In fact
I am sure that the help function is the one I am using most often when
doing stuff in R and the one I miss the most in manageR.
  
This is something I'm working very hard on, but haven't yet found a way 
to make this work nicely...

3 - I'd also like the ability to choose to dock manageR's window to
the main Qgis window.
  
Hmm, ok, this can be added, but then I don't think you'll be able to 
minimise the manageR dialog in this mode?

4 - The introduction of some basic point-and-click features, such as
the ability to define R's working directory, a file selector for
loading a pre-saved Rscript, ... stuff like that
  

Coming very soon!

5 - As kind of a more futuristic (and unrealistic?) request, I think
it would be really cool if manageR could offer some analysis routines
with a friendlier interface. Maybe some dialogs for executing stuff
like kernel density plots, regression analysis, interpolation, ... the
whole shebang. this would make it kind of a gui for spatial analysis
with R.
  
This is what I'm currently focused on. I'm trying to come up with a 
system that will automatically generate guis for functions in (some of) 
the main spatial R packages 
(http://cran.r-project.org/web/views/Spatial.html). I have guis for 
spdep (mostly), and am working on spgwr and will likely do gstat next...


Other new developments:

Addition of a separate scripting tab. This will allow users to write and 
test R scripts (using autocompletion and syntax highlighting) separately 
from the console. From here users will be able to submit the selected 
text to the console for running in R. You will also be able to save and 
load R scripts.


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] help manageR to find the path.......

2009-05-25 Thread Carson Farmer


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


--- Begin Message ---
Again thanks for taking the time, adjusting the manageR code following 
Carson's corrections seems to have shown where R is.


But anyone know how to point rpy2\rinterface to win32api.pyd (at least I 
think that is where the problem is).

Please see below for further details.
Many thanks for any help.
Darren

Carson Farmer wrote:

Darren Norris wrote:

Many thanks Carson,
I added the line to in __init__.py and manageRDialog.py (below), if I 
added to just the manageRDialog.py I got the same can't find R error.
I have now just added to __init__.py  and get the python error (see 
below for full): "ImportError: No module named win32api" ...
hmm, does your usb have it's own python as well, or are you using your 
system python? If you don't have win32api, you'll probably need to 
install the PyWin extensions: 
http://starship.python.net/crew/mhammond/win32/Downloads.html
I am using the system,  well I think. At the moment everything is on my 
laptop ..
The only python I have was installed with the Qgis standalone I went 
to install the PyWin extensions but the installer couldn't find 
pythonSo I've just installed python 2.6.2 and the PyWin extensions 
(from sourceforge). That doesn't help, as I think Qgis (and therefore 
manageR) uses the python files that came via the Qgis standalone installer?


The python error is now:

 File "C:/Program Files/Quantum 
GIS/./python\rpy2\rinterface\__init__.py", line 39, in

   import win32api
ImportError: No module named win32api

So the problem is now in the rinterface? Does anyone know where the 
win32api usually is and where rinterface is looking (win32api.pyd is in

"C:\Program Files\Quantum GIS\python\win32" )?
I think the relevant code in rinterface  is:

# Win32-specific code copied from RPy-1.x
if sys.platform == 'win32':
   import win32api
   os.environ['PATH'] += ';' + os.path.join(R_HOME, 'bin')
   os.environ['PATH'] += ';' + os.path.join(R_HOME, 'modules')
   os.environ['PATH'] += ';' + os.path.join(R_HOME, 'lib')



One of the reasons I work with the Renviron.site file is that I 
switch between R on a USB and R on laptops / desktops. This 
flexibility is very useful for me and also means I don't require 
administrator access on computers where I don't have such permission.
Would it be possible to have a file selector dialogue so a user can 
simply "click" the path when manageR / Rpy can't find R? Or maybe a 
dialogue that says this is the location of R that manageR will use, 
OK? If not select the location.
This might be an option, however, even if manageR did have this 
function, since you don't appear to have the win32 python extensions, 
it wouldn't matter in this case anyway... I'll see if I can add this 
in a future release.


I'm sorry I can't be of more help, but please let me know if the above 
helps at all? Also, see comments below:

You are helping!



File Specifications**
__init__.py:

import ConfigParser
import os.path

change the above line to 'import os' without the quotes

os.environ['R_HOME'] = "C:\Users\Darren\R\R-2.9.0\bin"
p = ConfigParser.ConfigParser()
here = os.path.join(os.path.dirname(__file__),"config.ini")
p.read(here)

manageRDialog.py:

import ConfigParser
import os.path

same goes for the above line

os.environ['R_HOME'] = "C:\Users\Darren\R\R-2.9.0\bin"
parser = ConfigParser.ConfigParser()
here = os.path.join( os.path.dirname( __file__ ),"config.ini" )
parser.read( here ) 


Cheers,

Carson



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


Re: [Qgis-user] help manageR to find the path.......

2009-05-24 Thread Carson Farmer

Darren Norris wrote:

Many thanks Carson,
I added the line to in __init__.py and manageRDialog.py (below), if I 
added to just the manageRDialog.py I got the same can't find R error.
I have now just added to __init__.py  and get the python error (see 
below for full): "ImportError: No module named win32api" ...
hmm, does your usb have it's own python as well, or are you using your 
system python? If you don't have win32api, you'll probably need to 
install the PyWin extensions: 
http://starship.python.net/crew/mhammond/win32/Downloads.html


One of the reasons I work with the Renviron.site file is that I switch 
between R on a USB and R on laptops / desktops. This flexibility is 
very useful for me and also means I don't require administrator access 
on computers where I don't have such permission.
Would it be possible to have a file selector dialogue so a user can 
simply "click" the path when manageR / Rpy can't find R? Or maybe a 
dialogue that says this is the location of R that manageR will use, 
OK? If not select the location.
This might be an option, however, even if manageR did have this 
function, since you don't appear to have the win32 python extensions, it 
wouldn't matter in this case anyway... I'll see if I can add this in a 
future release.


I'm sorry I can't be of more help, but please let me know if the above 
helps at all? Also, see comments below:



File Specifications**
__init__.py:

import ConfigParser
import os.path

change the above line to 'import os' without the quotes

os.environ['R_HOME'] = "C:\Users\Darren\R\R-2.9.0\bin"
p = ConfigParser.ConfigParser()
here = os.path.join(os.path.dirname(__file__),"config.ini")
p.read(here)

manageRDialog.py:

import ConfigParser
import os.path

same goes for the above line

os.environ['R_HOME'] = "C:\Users\Darren\R\R-2.9.0\bin"
parser = ConfigParser.ConfigParser()
here = os.path.join( os.path.dirname( __file__ ),"config.ini" )
parser.read( here ) 


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] help manageR to find the path.......

2009-05-24 Thread Carson Farmer

Hi Darren,

Just installed manageR (0.6.10) on Windows Vista.
Qgis 1.0.2-Kore installed via standalone installer, R version is 2.9.
ManageR installed via the python plugin installer, following Carson's 
guide at: http://www.ftools.ca/install.html


Got a python error (below) and it looks like manageR can't find R.
This is not too surprising as I set HOME, R_USER etc via a 
Renviron.site file.

So R is not in the registry and no environment variables are set.

How do I show manageR where the R.exe file is??

In this case you'll have to set an environment variable I think.

The error that you posted comes up when the following fails:

try:
R_HOME = os.environ["R_HOME"]
except KeyError:
R_HOME = os.popen("R RHOME").readlines()
if len(R_HOME) == 0:
if sys.platform == 'win32':
try:
import win32api
import win32con
hkey = win32api.RegOpenKeyEx(win32con.HKEY_LOCAL_MACHINE,
 "Software\\R-core\\R",
 0, win32con.KEY_QUERY_VALUE )
R_HOME = win32api.RegQueryValueEx(hkey, "InstallPath")[0]
win32api.RegCloseKey( hkey )
except:
raise RuntimeError(
"Unable to determine R version from the registery." +\
"Calling the command 'R RHOME' does not return anything.\n" +\
"This might be because R.exe is nowhere in your Path.")


So obviously if R isn't in the registry, and there is no R_HOME 
environment variable, Rpy (which is what manageR uses to talk to R) 
won't be able to find R. Essentially, you just need to specify the 
R_HOME environment variable as your R install path.


The other option is to add something like:

import os
os.environ['R_HOME'] = "R/install/path"

to line 20 of either __init__.py or manageRDialog.py in the manageR 
plugin directory.


Hope that helps,

Carson
___
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,

It's the next generation, and I believe it is quite a bit more powerful. 
I haven't really gotten a chance to play around with it too much, but it 
looks very promising!


Carson

Thanks Carson.  I'll give it a try.

Is rasterlang the next generation of Barry's Raster Algebra plugin?  
(http://www.maths.lancs.ac.uk/~rowlings/Software/RasterAlgebra/)   Or 
do they work together?  Using the Plugin Installer in QGIS 1.0.2 , I 
see rasterlang listed from Barry's repository 
(http://www.maths.lancs.ac.uk/~rowlings/Qgis/Plugins/plugins.xml) but 
not Raster Algebra.

- John



Carson Farmer wrote:

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


  1   2   3   >