[Qgis-user] Re: Qgis-user Digest, Vol 67, Issue 1

2011-08-31 Thread Darrel Camden-Smith
WRT Message 2 and the Profile from line tool I also had a problem  
using this plugin. I am running Mac OSx ver 10.5.8. I have installed  
QGIS and Python and the other suggested package installers. I found  
the shapely tool and downloaded it tried to install but had no joy.  
Used the Python 3.2 tool to try do that. Any ideas or help would be  
greatly appreciated.


Darrel Camden-Smith
dar...@geoserveafrica.com
www.geoserveafrica.com

On 01 Sep 2011, at 6:00 PM, qgis-user-requ...@lists.osgeo.org wrote:


Send Qgis-user mailing list submissions to
qgis-user@lists.osgeo.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.osgeo.org/mailman/listinfo/qgis-user
or, via email, send a message with subject or body 'help' to
qgis-user-requ...@lists.osgeo.org

You can reach the person managing the list at
qgis-user-ow...@lists.osgeo.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Qgis-user digest..."


Today's Topics:

  1. RE: is it possible to print attribute tables? (Alister Hood)
  2. Re: Profile Tool (Alister Hood)
  3. RE: How Do I Set Field Calculator Units For Area (Alister Hood)


--

Message: 1
Date: Thu, 1 Sep 2011 09:37:07 +1200
From: "Alister Hood" 
Subject: RE: [Qgis-user] is it possible to print attribute tables?
To: 
Message-ID:

Content-Type: text/plain;   charset="us-ascii"

In case you don't know: you can also add an attribute table to a
composer layout, but that won't be convenient if you want to print a
long attribute table over multiple pages.

Alister


Date: Wed, 31 Aug 2011 17:58:00 +0100
From: Alexandre Neto 
Subject: Re: [Qgis-user] is it possible to print attribute tables?
To: Andrew Novak 
Cc: qgis-user@lists.osgeo.org
Message-ID:




Content-Type: text/plain; charset="iso-8859-1"

There is probably a better way of doing this, but if you are talking

about a

shapefile, you can simply open the DBF file in OpenOffice or

LibreOffice,

and Print it.

Alexandre Neto

On Wed, Aug 31, 2011 at 5:16 PM, Andrew Novak 

wrote:



is it possible to print attribute tables?



--

Message: 2
Date: Thu, 1 Sep 2011 10:18:08 +1200
From: "Alister Hood" 
Subject: Re: [Qgis-user] Profile Tool
To: 
Cc: garcia.si...@gmail.com
Message-ID:

Content-Type: text/plain;   charset="us-ascii"

Hi guys,
You can manually extract the files from the shapely installer (using
e.g. Izarc or 7zip, or possibly just by renaming it as .zip or
something), and put them in the right places.
You need to put the shapely folder (from inside PURELIB) in e.g.
C:\OSGeo4W\apps\Python25\Lib\site-packages\, and the geos.dll and
libgeos-3-2-2.dll in I think C:\OSGeo4W\bin, although instead of
installing those I seem to have got it working by editing
C:\OSGeo4W\apps\Python25\Lib\site-packages\shapely\geos.py to use the
lib from OSGeo4W instead (C:\OSGeo4W\bin\geos_c.dll).

For the record, there is also an open ticket (with a suggested script)
for registering the OSGeo4W Python with Windows, so that python  
package

installers can find it: http://trac.osgeo.org/osgeo4w/ticket/114

Regarding the profile tool plugin, Micha, it definitely runs on  
Windows.
But on one of my machines I also got that error message about having  
no

Qwt5.
If I remember correctly, the problem was something like this: it
requires the latest Qwt5 (or PyQwt5) in the OSGeo4W repository, but  
this

machine only had an older version installed, and the OSGeo4W installer
was not showing the latest version for some reason.
I believe to fix it I uninstalled PyQwt5 and Qwt5, then reinstalled
them.

Alister


Date: Wed, 31 Aug 2011 10:35:44 -0500
From: David Fawcett 
Subject: Re: [Qgis-user] Profile Tool
To: Ricardo Filipe Soares Garcia da 
Cc: qgis-user@lists.osgeo.org
Message-ID:




Content-Type: text/plain; charset=ISO-8859-1

There is a windows installer for Shapely.
http://pypi.python.org/pypi/Shapely#downloads

The problem that I ran into was that the installer defaults to the
Python install listed in the Registry.  For me, (and probably most
people), that is not the Python instance installed by OSGEO4W.  At
least last time that I attempted the install, there was no way to  
tell

the Shapely installer to use a different Python instance.

David.

On Wed, Aug 31, 2011 at 8:15 AM, Ricardo Filipe Soares Garcia da
 wrote:

Hi Micha

Concerning the 'Profile from Line' plugin, I've opened a ticket some
months ago at OSGEO4W's bugtracker asking for packaging of a more
recent version of the Shapely package but haven't had a reply. I

guess

they haven't gotten around to do it yet.

However, I believe there must be a way of installing Shapely (and
other Python packages) separately and then make them available

inside

OSGEO4W. Unfortunately I have never tried to do so, as I never had
such a need. Maybe others can help out.

Best regards

2011/8/31 Micha 

RE: [Qgis-user] How Do I Set Field Calculator Units For Area

2011-08-31 Thread Alister Hood
Hi there,
I *think* the area calculations are always in the unit for the layer's
CRS.  So you could either:
- find out what this unit is, and convert the areas to square feet by
multiplying by the correct factor, or
- convert the layer to a CRS which uses square feet.
N.B. there is a feature request to enable coordinate conversion in the
field calculator (although I didn't mention that it would be useful also
for area and length calculations).  See http://hub.qgis.org/issues/4078

Alister

> Date: Wed, 31 Aug 2011 11:18:32 -0500
> From: Andrew Novak 
> Subject: [Qgis-user] How Do I Set Field Calculator Units For Area
>   Calcs?
> To: qgis-user@lists.osgeo.org
> Message-ID:
>

> Content-Type: text/plain; charset="iso-8859-1"
> 
> The area calculations from my field calculator are in an unknown unit.
I
> simply want my units to be square feet. How can I set my units in the
field
> calculator??
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Profile Tool

2011-08-31 Thread Alister Hood
Hi guys,
You can manually extract the files from the shapely installer (using
e.g. Izarc or 7zip, or possibly just by renaming it as .zip or
something), and put them in the right places.
You need to put the shapely folder (from inside PURELIB) in e.g.
C:\OSGeo4W\apps\Python25\Lib\site-packages\, and the geos.dll and
libgeos-3-2-2.dll in I think C:\OSGeo4W\bin, although instead of
installing those I seem to have got it working by editing
C:\OSGeo4W\apps\Python25\Lib\site-packages\shapely\geos.py to use the
lib from OSGeo4W instead (C:\OSGeo4W\bin\geos_c.dll).

For the record, there is also an open ticket (with a suggested script)
for registering the OSGeo4W Python with Windows, so that python package
installers can find it: http://trac.osgeo.org/osgeo4w/ticket/114

Regarding the profile tool plugin, Micha, it definitely runs on Windows.
But on one of my machines I also got that error message about having no
Qwt5.
If I remember correctly, the problem was something like this: it
requires the latest Qwt5 (or PyQwt5) in the OSGeo4W repository, but this
machine only had an older version installed, and the OSGeo4W installer
was not showing the latest version for some reason.
I believe to fix it I uninstalled PyQwt5 and Qwt5, then reinstalled
them.

Alister

> Date: Wed, 31 Aug 2011 10:35:44 -0500
> From: David Fawcett 
> Subject: Re: [Qgis-user] Profile Tool
> To: Ricardo Filipe Soares Garcia da 
> Cc: qgis-user@lists.osgeo.org
> Message-ID:
>

> Content-Type: text/plain; charset=ISO-8859-1
> 
> There is a windows installer for Shapely.
> http://pypi.python.org/pypi/Shapely#downloads
> 
> The problem that I ran into was that the installer defaults to the
> Python install listed in the Registry.  For me, (and probably most
> people), that is not the Python instance installed by OSGEO4W.  At
> least last time that I attempted the install, there was no way to tell
> the Shapely installer to use a different Python instance.
> 
> David.
> 
> On Wed, Aug 31, 2011 at 8:15 AM, Ricardo Filipe Soares Garcia da
>  wrote:
> > Hi Micha
> >
> > Concerning the 'Profile from Line' plugin, I've opened a ticket some
> > months ago at OSGEO4W's bugtracker asking for packaging of a more
> > recent version of the Shapely package but haven't had a reply. I
guess
> > they haven't gotten around to do it yet.
> >
> > However, I believe there must be a way of installing Shapely (and
> > other Python packages) separately and then make them available
inside
> > OSGEO4W. Unfortunately I have never tried to do so, as I never had
> > such a need. Maybe others can help out.
> >
> > Best regards
> >
> > 2011/8/31 Micha Silver :
> >> I'm trying to install the Profile Tool plugin on an OSGeo4W setup.
The
> >> plugin won't install saying it needs Qwt5, but that library should
be
> >> install by the OSGeo4W-setup.
> >>
> >> WHat am I missing?
> >>
> >> BTW, the "Profile from Line" plugin need s Shapely 1.2 and the
OSGeo4W has
> >> shapely 1.0. So is there no profile tool for Win users?
> >>
> >> Thanks,
> >>
> >> Micha
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


RE: [Qgis-user] is it possible to print attribute tables?

2011-08-31 Thread Alister Hood
In case you don't know: you can also add an attribute table to a
composer layout, but that won't be convenient if you want to print a
long attribute table over multiple pages.

Alister

> Date: Wed, 31 Aug 2011 17:58:00 +0100
> From: Alexandre Neto 
> Subject: Re: [Qgis-user] is it possible to print attribute tables?
> To: Andrew Novak 
> Cc: qgis-user@lists.osgeo.org
> Message-ID:
>

> Content-Type: text/plain; charset="iso-8859-1"
> 
> There is probably a better way of doing this, but if you are talking
about a
> shapefile, you can simply open the DBF file in OpenOffice or
LibreOffice,
> and Print it.
> 
> Alexandre Neto
> 
> On Wed, Aug 31, 2011 at 5:16 PM, Andrew Novak 
wrote:
> 
> > is it possible to print attribute tables?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] is it possible to print attribute tables?

2011-08-31 Thread Alexandre Neto
There is probably a better way of doing this, but if you are talking about a
shapefile, you can simply open the DBF file in OpenOffice or LibreOffice,
and Print it.

Alexandre Neto

On Wed, Aug 31, 2011 at 5:16 PM, Andrew Novak  wrote:

> is it possible to print attribute tables?
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] How Do I Set Field Calculator Units For Area Calcs?

2011-08-31 Thread Andrew Novak
The area calculations from my field calculator are in an unknown unit. I
simply want my units to be square feet. How can I set my units in the field
calculator??
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] is it possible to print attribute tables?

2011-08-31 Thread Andrew Novak
is it possible to print attribute tables?
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] Profile Tool

2011-08-31 Thread David Fawcett
There is a windows installer for Shapely.
http://pypi.python.org/pypi/Shapely#downloads

The problem that I ran into was that the installer defaults to the
Python install listed in the Registry.  For me, (and probably most
people), that is not the Python instance installed by OSGEO4W.  At
least last time that I attempted the install, there was no way to tell
the Shapely installer to use a different Python instance.

David.

On Wed, Aug 31, 2011 at 8:15 AM, Ricardo Filipe Soares Garcia da
 wrote:
> Hi Micha
>
> Concerning the 'Profile from Line' plugin, I've opened a ticket some
> months ago at OSGEO4W's bugtracker asking for packaging of a more
> recent version of the Shapely package but haven't had a reply. I guess
> they haven't gotten around to do it yet.
>
> However, I believe there must be a way of installing Shapely (and
> other Python packages) separately and then make them available inside
> OSGEO4W. Unfortunately I have never tried to do so, as I never had
> such a need. Maybe others can help out.
>
> Best regards
>
> 2011/8/31 Micha Silver :
>> I'm trying to install the Profile Tool plugin on an OSGeo4W setup. The
>> plugin won't install saying it needs Qwt5, but that library should be
>> install by the OSGeo4W-setup.
>>
>> WHat am I missing?
>>
>> BTW, the "Profile from Line" plugin need s Shapely 1.2 and the OSGeo4W has
>> shapely 1.0. So is there no profile tool for Win users?
>>
>> Thanks,
>>
>> Micha
>>
>> ___
>> Qgis-user mailing list
>> Qgis-user@lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>>
>
>
>
> --
> ___ ___ __
> Ricardo Garcia Silva
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Re: Trouble with classifying a Spatialite layer

2011-08-31 Thread Jukka Rahkonen
Rahkonen Jukka  writes:

>  I was trying to classify is the osm_line layer filtered with sql="highway"
NOT null.  Classification method is Unique value with the old symbology and
Categorized with the new symbology. Neither of them show me the attribute value
list.

I made some more trials. If I read the whole Spatialite table into QGIS the
automatic classification works but if the layer is created by using SQL query
filter then it does not.

-Jukka Rahkonen-

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


Re: [Qgis-user] Profile Tool

2011-08-31 Thread Ricardo Filipe Soares Garcia da
Hi Micha

Concerning the 'Profile from Line' plugin, I've opened a ticket some
months ago at OSGEO4W's bugtracker asking for packaging of a more
recent version of the Shapely package but haven't had a reply. I guess
they haven't gotten around to do it yet.

However, I believe there must be a way of installing Shapely (and
other Python packages) separately and then make them available inside
OSGEO4W. Unfortunately I have never tried to do so, as I never had
such a need. Maybe others can help out.

Best regards

2011/8/31 Micha Silver :
> I'm trying to install the Profile Tool plugin on an OSGeo4W setup. The
> plugin won't install saying it needs Qwt5, but that library should be
> install by the OSGeo4W-setup.
>
> WHat am I missing?
>
> BTW, the "Profile from Line" plugin need s Shapely 1.2 and the OSGeo4W has
> shapely 1.0. So is there no profile tool for Win users?
>
> Thanks,
>
> Micha
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>



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


Re: [Qgis-user] Rasters alpha channel black instead of transparent

2011-08-31 Thread Pedro Venâncio
Hello Alister,

Yes, the problem is exactly this. It happens to me on Windows with QGIS 1.7 
standalone and 1.8 from osgeo4w. It also happens on Linux 1.7 (not tested in 
1.8 master on Linux).

The Transparency band on the Transparency tab is always "Not set". This option 
will be enabled in the near future?

Thanks!

Best regards,
Pedro




- Original Message -
From: Alister Hood 

Hi,
This sounds like http://hub.qgis.org/issues/2491

> Date: Tue, 30 Aug 2011 02:38:30 -0700 (PDT)
> From: Pedro Ven?ncio 
> 
> Hello everyone,
> 
> I was cutting some rasters in the same way I did several times in the
past,
> adding the alpha channel to ensure transparency:
> 
> gdalwarp -of GTiff -r lanczos -dstalpha -cutline shapefile.shp
raster_input.tif
> raster_output.tif
> 
> However, now the area that would appear transparent, is shown in black
on QGIS
> 1.7 (and 1.8 dev), as you can see in the picture attached.
> 
> I've tried other software and it open the image with transparency in
these
> areas.
> Images that I've cut in the past and opened correctly in QGIS, now are
black
> instead of transparent.
> 
> Why is this happening? It is an option that can be changed?
> 
> Thanks!
> 
> Best regards,
> Pedro Venbncio
> -- next part --
> A non-text attachment was scrubbed...
> Name: alpha_channel.jpg
> Type: image/jpeg
> Size: 71354 bytes
> Desc: not available
> Url :
http://lists.osgeo.org/pipermail/qgis-user/attachments/20110830/b2b9fbec
/alpha_channel.jpg

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


[Qgis-user] Re: Export to ETRS-35TM-FIN (EPSG 3067) fails

2011-08-31 Thread Jukka Rahkonen
Jukka Rahkonen  writes:
 
> This is a very bad thing actually because axis order in EPSG:3067 is
> Easting-Northing but EPSG:3067 is using Northing easting. 

I apologize the many typos. So EPSG:3067 (ETRS-TM35FIN) is a Easting-Northing
system but EPSG:3047 is Northing-Easting system. Shapefiles probably does not
care about this but correctly working WFS 1.1.0 server for sure does.

-Jukka Rahkonen-

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


[Qgis-user] Profile Tool

2011-08-31 Thread Micha Silver

  
  
I'm trying to install the Profile Tool plugin on an OSGeo4W
  setup. The plugin won't install saying it needs Qwt5, but that
  library should be install by the OSGeo4W-setup.
WHat am I missing?
BTW, the "Profile from Line" plugin need s Shapely 1.2 and the
  OSGeo4W has shapely 1.0. So is there no profile tool for Win
  users?
Thanks,
Micha


  

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


[Qgis-user] Re: Export to ETRS-35TM-FIN (EPSG 3067) fails

2011-08-31 Thread Jukka Rahkonen
Giuseppe Sucameli  writes:

> 
> Hi Timo,
> 
> On Tue, Aug 30, 2011 at 1:13 PM, Timo Metsänen
>  wrote:
> > export coordinates (have tried from KKJ / Finland Uniform Coordinate
> System EPSG:2393 and WGS 84 EPSG:4326) to ETRS-35TM-FIN (EPSG
> > 3067), shapefile gets value "EPSG:3047 - ETRS89 / ETRS-TM35".
> > Does anyone have explanation to this or even better, solution?
> 
> Looking at those CRSs, both them have the same proj4 string definition:
> +proj=utm +zone=35 +ellps=GRS80 +units=m +no_defs
> 
> For this reason you get EPSG:3067 instead of EPSG:3047.

This is a very bad thing actually because axis order in EPSG:3067 is
Easting-Northing but EPSG:3067 is using Northing easting. This difference will
make you mad with WMS 1.3.0, WFS 1.1.0, GML 3 and so on. Compare 
http://epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::3047&reportDetail=short&style=urn:uuid:report-style:default-with-urn&style_name=OGP%20Default%20With%20Urn&title=EPSG:3047
with 
http://epsg-registry.org/report.htm?type=selection&entity=urn:ogc:def:crs:EPSG::3067&reportDetail=short&style=urn:uuid:report-style:default-with-urn&style_name=OGP%20Default%20With%20Urn&title=EPSG:3067

There is probably another issue which will give you 100-200 meter transformation
errot because Proj4 tends to lack the +towgs84 parametert for the Finnish KKJ
zones (EPSG:2391-EPSG:2394). All programs using Proj4 make this same error (GDAL
when using the EPSG codes for giving the projection, Mapserver, PostGIS,
Spatialite etc.) It may be that the very latest Proj4 comes with correct
+towgs84 parameters but it does not help with old program versions.

The only really reliable way for doing the conversion is to use ogr2ogr from
command line. Read the instructions from
http://latuviitta.org/documents/YKJ-TM35FIN_muunnos_ogr2ogr_cs2cs.txt (in
Finnish). You can use other tools as well but compare always the result with
something you know to be correct. And if some program works now, after program
update the transformation can be wrong again. Do not ever trust that conversion
between KKJ and other systems goes right. Best thing to do is to make conversion
right once and after that stop using KKJ at all.



-Jukka Rahkonen-




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