Re: [Qgis-user] [1.8.0] Broken UTF-8 support in shapefiles - and workaround

2012-06-29 Thread 欧阳乐岩


On 06/29/2012 05:44 PM, Alexander Bruy wrote:

Hi Even,

2012/6/29 Even Rouault :

the situation, and we should strive for more constructive cooperation. I think..


Dmitry Baryshnikov and I, we already working on this issue. Ticket
#4650 is a part of our work. We also run a lot of tests in different
environments
and data to find all possible parts of code that needs improvements. Hope soon
we'll have patch or patches to completely solve this issue



That's great news. This issue is a blocker in a large part of the world, 
and I can't wait to see it solved ! Right now I have to stop pushing for 
QGis as 1.8 is currently impossible to use in China...

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


Re: [Qgis-user] [Qgis-developer] Announce: TauDEM plugin for QGIS

2012-06-29 Thread Salvatore Larosa
Thanks for your great job!


Il giorno ven, 29/06/2012 alle 21.30 +0300, Alexander Bruy ha scritto:
> Hi all and sorry for cross-posting.
> 
> I happy to announce TauDEM provider for QGIS.
> 
> TauDEM [0] is a set of of Digital Elevation Model (DEM) tools for
> the extraction and analysis of hydrologic information from topography
> as represented by a DEM
> 
> An this plugin is a SEXTANTE provider plugin and allows to run
> TauDEM command line tools directly from QGIS using excellent
> SEXTANTE framework [1].
> 
> Plugin available from QGIS Official repository [2]. Before running
> it please install SEXTANTE plugin first. As this is only front-end
> you also need working TauDEM command line tools. Windows
> users can use precompiled binaries and installation instruction
> from project homepage [0]. For Linux users I prepare small
> instruction in README.TauDEM file [3], hope this helps a bit
> until packages for major distributions will be available.
> 
> If you found a bug or want to leave feature request please use
> plugin bugtracker [4]
> 
> [0] http://hydrology.usu.edu/taudem/taudem5.0/index.html
> [1] http://plugins.qgis.org/plugins/sextante/
> [2] http://plugins.qgis.org/plugins/plugins.xml
> [3] https://github.com/alexbruy/sextante-taudem/blob/master/README.TauDEM
> [4] http://hub.qgis.org/projects/sextante-taudem
> 

-- 
Salvatore Larosa
linkedIn: http://linkedin.com/in/larosasalvatore
twitter: @lrssvt
skype: s.larosa
IRC: lrssvt on freenode

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


Re: [Qgis-user] digitizing

2012-06-29 Thread Andreas Neumann
Hi,

No - there isn't.

But if you work with polygons you can automatically substract already
existing neighbour polygons. In the snap options dialogue set the "avoid
intersections" checkbox. This is even more comfortable and faster than
the tracing mode in my opinion, but it is limited to polygons.

Hope this helps?

Andreas

Am 29.06.2012 19:57, schrieb mi...@crownmaple.com:
> like ARC Gis is there a way of tracing boundaries when you digitize so
> that there are no spatial errors?  I know there is snapping, but
> sometimes that doesn't work as well.
> ___
> 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] [Qgis-developer] Announce: TauDEM plugin for QGIS

2012-06-29 Thread Victor Olaya
Great work!

This will greatly increase the functionality of SEXTANTE :-)

Thanks for your work!

Regards

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


[Qgis-user] digitizing

2012-06-29 Thread mikec
like ARC Gis is there a way of tracing boundaries when you digitize so 
that there are no spatial errors?  I know there is snapping, but 
sometimes that doesn't work as well.

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


[Qgis-user] Announce: TauDEM plugin for QGIS

2012-06-29 Thread Alexander Bruy
Hi all and sorry for cross-posting.

I happy to announce TauDEM provider for QGIS.

TauDEM [0] is a set of of Digital Elevation Model (DEM) tools for
the extraction and analysis of hydrologic information from topography
as represented by a DEM

An this plugin is a SEXTANTE provider plugin and allows to run
TauDEM command line tools directly from QGIS using excellent
SEXTANTE framework [1].

Plugin available from QGIS Official repository [2]. Before running
it please install SEXTANTE plugin first. As this is only front-end
you also need working TauDEM command line tools. Windows
users can use precompiled binaries and installation instruction
from project homepage [0]. For Linux users I prepare small
instruction in README.TauDEM file [3], hope this helps a bit
until packages for major distributions will be available.

If you found a bug or want to leave feature request please use
plugin bugtracker [4]

[0] http://hydrology.usu.edu/taudem/taudem5.0/index.html
[1] http://plugins.qgis.org/plugins/sextante/
[2] http://plugins.qgis.org/plugins/plugins.xml
[3] https://github.com/alexbruy/sextante-taudem/blob/master/README.TauDEM
[4] http://hub.qgis.org/projects/sextante-taudem

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


Re: [Qgis-user] Problems to open older project

2012-06-29 Thread William Kyngesburye
Hmm, I guess disabling a plugin does not disable the provider component, still 
crashing on a delimited text layer.

I don't know where to go with this, taking it back to the mailing list...

crash snippet:

Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
0   libdelimitedtextprovider.so 0x000119012eaf 
QgsDelimitedTextProvider::~QgsDelimitedTextProvider() + 35
1   libdelimitedtextprovider.so 0x000119012e62 
QgsDelimitedTextProvider::~QgsDelimitedTextProvider() + 18
2   org.qgis.qgis_core  0x000103e2d5b4 
QgsProviderRegistry::provider(QString const&, QString const&) + 192
3   org.qgis.qgis_core  0x000103e50e2b 
QgsVectorLayer::setDataProvider(QString const&) + 89
4   org.qgis.qgis_core  0x000103e5b825 
QgsVectorLayer::readXml(QDomNode const&) + 463
5   org.qgis.qgis_core  0x000103dfc763 
QgsMapLayer::readXML(QDomNode const&) + 3999
6   org.qgis.qgis_core  0x000103e1e815 
QgsProject::addLayer(QDomElement const&, QList&, 
QList >&) + 1291
7   org.qgis.qgis_core  0x000103e1c910 
QgsProject::_getMapLayers(QDomDocument const&) + 1378
8   org.qgis.qgis_core  0x000103e1f908 QgsProject::read() + 
3760
9   org.qgis.qgis   0x000100023cd0 QgisApp::fileOpen() 
+ 616
10  org.qgis.qgis   0x000100249257 
QgisApp::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 4747


On Jun 29, 2012, at 10:03 AM, José Carlos Guerrero Antúnez wrote:

> Hi,
> 
> I updated GDAL MrSID plugin, GeoPDF Plugin and disabling the delimited text 
> before loading the project.
> 
> I still have the same problem (attached QGIS report crash).
> 
> Regards,
> 
> Jose Carlos Guerrero
> 
> 2012/6/28 William Kyngesburye 
> That got most of it clean, there is still a reference to an old framework.  
> Maybe from the GDAL MrSID plugin, maybe from the GDAL GeoPDF plugin.
> 
> Still crashing in the delimited text plugin.  Do you have delimited text (ie 
> csv) layers in this project (and not in the others that opened)?  You could 
> try disabling the delimited text plugin before loading the project.
> 
> P.S.  crash reports in PDF form are hard to read.  If you ignore the crash 
> and open Console.app, you can attach plain text crash logs (Diagnotic 
> Reports) directly to a new email from the File menu. ^_^
> 
> On Jun 28, 2012, at 4:04 PM, José Carlos Guerrero Antúnez wrote:
> 
> > Hi William,
> >
> > I followed your instruction, and I updated all frameworks, python module 
> > and qgis but I can't open this project (attached file with the report qgis).
> >
> > In contrast, other older project I can open and sometime it showme "Handle 
> > bad layers" and then I browse the layers without problem and the project is 
> > opened correctly.
> >
> > Many thanks again,
> >
> > Jose Carlos Guerrero
> >
> >
> > 2012/6/28 William Kyngesburye 
> > A few things I see that might be a problem:
> >
> > It looks like you might have an old matplotlib (it's getting loaded by a 
> > QGIS plugin).  I updated that after the Big Update.
> >
> > Old builtin QGIS plugins are loaded.  These usually cause QGIS to crash 
> > immediately.  Delete the QGIS.app and reinstall.
> >
> > It's crashing in the delimited text plugin/provider.  Take care of the 
> > above things and see if it works.
> >
> > On Jun 28, 2012, at 10:41 AM, José Carlos Guerrero Antúnez wrote:
> >
> > > I don't remember well but I think the answer is not. I attached pdf files 
> > > in the order of the tasks performed.
> > >
> > > Regards,
> > >
> > > José Carlos Guerrero
> >
> > 
> 
> -
> William Kyngesburye 
> http://www.kyngchaos.com/
> 
> All generalizations are dangerous, even this one.
> 
> 
> 
> 
> 

-
William Kyngesburye 
http://www.kyngchaos.com/

"Oh, look, I seem to have fallen down a deep, dark hole.  Now what does that 
remind me of?  Ah, yes - life."

- Marvin


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


Re: [Qgis-user] Extract lat/long coordinate from a custom projected layer

2012-06-29 Thread Giovanni Manghi
Hi Pietro,


> I have a list of points in monte mario Italy zone 2 - 3004 that I want to
> reproject to Lat/long WGS84 with conversion between these two crs based on a
> NTV2 grid file.
> 
> So, I load a xy temporary layer in a 3004 crs project and I save it as a shp
> (3004).
> 
> Then I change the crs to 4326 and I use the transformation manager
> (transformation tool) pluigin to adjust the on the fly reprojection from
> 3004 to 4326 based on the NTV2 grid file.


that's not how transformation tool (TT) works.

In TT create a transformation selecting the two CRSs (call them "A and
B" or "start and arrive", as you want) and the method (towgs84
parameters ot ntv2 grids) and save it.

Then close TT and add normally your layers. Depending on your project
CRS and the CRS of the layers you are adding, if the two CRSs will "fit"
one on the transformations you defined in TT, then a dialog will pop up
asking if you want to apply one of those transformation to the layer you
are adding.


cheers

-- Giovanni --

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


Re: [Qgis-user] qGIS 1.8 Vector Points in Polygon function?

2012-06-29 Thread Oscar Ramírez
I have install Quantum 1.8 recently, but its impossible to install
any add- "complement".  Why happen that?

Say: Error in phython

No se pudo cargar el complemento 'dumploadfield' de
['D:/PROGRA~1/Quantum GIS Lisboa/apps/qgis/./python', 'C:/Documents
and Settings/Oscar Ramírez/.qgis//python', 'C:/Documents and
Settings/Oscar Ramírez/.qgis//python/plugins', 'D:/PROGRA~1/Quantum
GIS Lisboa/apps/qgis/./python/plugins', 'D:\PROGRA~1\Quantum GIS
Lisboa\bin\python27.zip', 'D:\PROGRA~1\Quantum GIS
Lisboa\apps\Python27\DLLs', 'D:\PROGRA~1\Quantum GIS
Lisboa\apps\Python27\lib', 'D:\PROGRA~1\Quantum GIS
Lisboa\apps\Python27\lib\plat-win', 'D:\PROGRA~1\Quantum GIS
Lisboa\apps\Python27\lib\lib-tk', 'D:\PROGRA~1\Quantum GIS
Lisboa\apps\qgis\bin', 'D:\PROGRA~1\Quantum GIS Lisboa\apps\Python27',
'D:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages',
'D:\PROGRA~1\Quantum GIS Lisboa\apps\Python27\lib\site-packages\PIL',
'D:\PROGRA~1\Quantum GIS
Lisboa\apps\Python27\lib\site-packages\win32', 'D:\PROGRA~1\Quantum
GIS Lisboa\apps\Python27\lib\site-packages\win32\lib',
'D:\PROGRA~1\Quantum GIS
Lisboa\apps\Python27\lib\site-packages\Pythonwin',
'D:\PROGRA~1\Quantum GIS
Lisboa\apps\Python27\lib\site-packages\wx-2.8-msw-unicode',
'D:\PROGRA~1\Quantum GIS
Lisboa\apps\qgis\python\plugins\fTools\tools']

Traceback (most recent call last):
  File "D:/PROGRA~1/Quantum GIS
Lisboa/apps/qgis/./python\qgis\utils.py", line 143, in loadPlugin
__import__(packageName)
  File "D:/PROGRA~1/Quantum GIS
Lisboa/apps/qgis/./python\qgis\utils.py", line 309, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named dumploadfield

Versión de Python:
2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)]


Versión de QGIS:
1.8.0-Lisboa Lisboa, 6416f38

Ruta de Python: ['D:/PROGRA~1/Quantum GIS Lisboa/apps/qgis/./python',
'C:/Documents and Settings/Oscar Ram\xc3\xadrez/.qgis//python',
'C:/Documents and Settings/Oscar
Ram\xc3\xadrez/.qgis//python/plugins', 'D:/PROGRA~1/Quantum GIS
Lisboa/apps/qgis/./python/plugins', 'D:\\PROGRA~1\\Quantum GIS
Lisboa\\bin\\python27.zip', 'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27\\DLLs', 'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27\\lib', 'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27\\lib\\plat-win', 'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27\\lib\\lib-tk', 'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\qgis\\bin', 'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27', 'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27\\lib\\site-packages', 'D:\\PROGRA~1\\Quantum
GIS Lisboa\\apps\\Python27\\lib\\site-packages\\PIL',
'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27\\lib\\site-packages\\win32',
'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27\\lib\\site-packages\\win32\\lib',
'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27\\lib\\site-packages\\Pythonwin',
'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode',
'D:\\PROGRA~1\\Quantum GIS
Lisboa\\apps\\qgis\\python\\plugins\\fTools\\tools']
-- 
*Oscar Ramírez A. M.Sc.*


Escuela de Ciencias Biológicas Universidad Nacional, Costa Rica.

Apdo 86-3000 Heredia, Costa Rica

Tel: Tel. +506- 2277-3325

Presidente Capítulo Costa Rica, Sociedad Mesoamericana para la Biología y
la Conservación.

http://costaricasmbc.net/


Comité Científico de la Asociación Ornitológica de Costa Rica.
http://www.avesdecostarica.org/
http://listaoficialavesdecostarica.wordpress.com/
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] [1.8.0] Broken UTF-8 support in shapefiles - and workaround

2012-06-29 Thread Alexander Bruy
Hi Even,

2012/6/29 Even Rouault :
> the situation, and we should strive for more constructive cooperation. I 
> think..

Dmitry Baryshnikov and I, we already working on this issue. Ticket
#4650 is a part of our work. We also run a lot of tests in different
environments
and data to find all possible parts of code that needs improvements. Hope soon
we'll have patch or patches to completely solve this issue

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


[Qgis-user] Extract lat/long coordinate from a custom projected layer

2012-06-29 Thread Pietro Rossin
Hi all
I'm trying to understand how Qgis handles coordinates extraction coming from
a layer that is projected by a custom transformation.

I have a list of points in monte mario Italy zone 2 - 3004 that I want to
reproject to Lat/long WGS84 with conversion between these two crs based on a
NTV2 grid file.

So, I load a xy temporary layer in a 3004 crs project and I save it as a shp
(3004).

Then I change the crs to 4326 and I use the transformation manager
(transformation tool) pluigin to adjust the on the fly reprojection from
3004 to 4326 based on the NTV2 grid file.

If now I try to calculate the lat/long values with field calculator with $X,
$y variables Qgis returns original Monte mario metric values, right?
So I must save as new 4326 shp my 3004 layer to calculate Lat/long WGS84,
right?

Saving to 4326 Qgis mantains the NTV2 transformation so I can calculate more
accurate coordinates?

Thanks
Pietro

--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Extract-lat-long-coordinate-from-a-custom-projected-layer-tp4984788.html
Sent from the Quantum GIS - User mailing list archive at Nabble.com.
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


Re: [Qgis-user] qGIS 1.8 Vector Points in Polygon function?

2012-06-29 Thread Chavoux Luyt
Thanks Leyan!

On 29 June 2012 08:30,  wrote:

> From:  
>  



> Make sure you have the ftools plugin installed and activated. I thought

 it would be on by default?


> What you want to do is done with the "Join attribute by location" in
> "Vector->Data Management"
>
> Leyan
>

I did not have python-qgis installed, which is why I did not have most of
the plug-ins! :-s

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


Re: [Qgis-user] [1.8.0] Broken UTF-8 support in shapefiles - and workaround

2012-06-29 Thread Even Rouault
Hi,

(Disclaimer: I'm a GDAL contributor)

First I'd like to say that pointing the finger at GDAL will not help improving
the situation, and we should strive for more constructive cooperation. I think
there are various issues involved and I'll try to summarize my vision of things
:
- Before GDAL 1.9, the Shapefile driver didn't have any knowledge of shapefile
encoding, and in both reading and writing operations, it took raw bytes to
read/write them in the .DBF file
- Starting with GDAL 1.9, the Shapefile driver will :
   * for write operations : recode from UTF-8 to the encoding specified by the
ENCODING layer creation option (-lco option of ogr2ogr) (or, for an existing
shapefile, from the value of the LDID field of the .dbf header or the .cpg file)
. If the value of that variable is of the form LDID/xx, then xx is written as
the LDID field in the .dbf header. If it is of another form, then it is written
as a plain string in the accompaying .cpg file. If no value for ENCODING is
specified, then LDID/87 is assumed. This value is supposed to be the "Current
ANSI codepage", a concept that doesn't make actually sense on all platforms, and
that doesn't make sense when transporting shapefiles from a system to another
one. An assumption is then made that this LDID/87 is
actually ISO-8859-1 (Latin1) and, indeed, this is strongly biased towards
Western Europe language. As far as QGIS is concerned, when creating shapefile,
it might be prudent to specify ENCODING=UTF-8 if strings passed to OGR
CreateFeature() are in UTF-8. The consequence will be that no recoding will
occur, and a .cpg file with UTF-8 in it will be written.
* recode from the encoding specified in the LDID field in the .dbf header or
the value of the .cpg file (the .cpg file has priority over the LDID field).
Several issues can occur then :
- The actual content of the .dbf may not match with the declared LDID
value or .cpg. In which case the recoding to UTF-8 will fail. This can be
gotten around by specifying the SHAPE_ENCODING environmenet variable to the
appropriate value, when it is known. You can also set SHAPE_ENCODING to the
empty string, in which case no recoding at all will occur. That might be the
solution for QGIS if QGIS want to do recoding on its side, based on user input
for example.
 - Even if the .dbf, LDID or .cpg are consistant, you can have issues if
the build of GDAL does not use the iconv library used for doing recoding
(there's only built-in conversion betweeen Latin1 and UTF-8 without iconv
dependency). Until recent fixes in GDAL (not yet released, see
http://trac.osgeo.org/gdal/ticket/4650), there was indeed a bug in the
TestCapability(OLCStringsAsUTF8) method that returned TRUE as soon as the shape
encoding was found, without checking that the recoding services were actually
available.

I hope that the working of the shapefile driver is clearer and that the QGIS
team can find the best solution on how to integrate with it.

Best regards,

Even

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


Re: [Qgis-user] [1.8.0] Broken UTF-8 support in shapefiles - and workaround

2012-06-29 Thread Andre Joost

Hi,

Am 29.06.12 09:28, schrieb Alexander Bruy:


The only thing that does not work as expected:
All text with non-ASCII-characters (e.g. ä ö ü) is broken.

Fisrt of all this is known issue and it is not QGIS bug, but GDAL one.
See http://hub.qgis.org/issues/5255,


It lokks as if Qgis and GDAL are not talking properly to each other ;-)



Also your solution will work only in some cases, when shapefiles are
in UTF-8 encoding.


That was more or less standard with Qgis 1.7.4. So most end-users are 
stuck with UTF-8 shapefiles now displayed broken, creating new 
shapefiles with wrong encoding and may not find the solution in the 
russion blogpost mentioned in the issue #5255:



I hoped this issue would be setteled for the "stable" version 1.8.0.



So if you use in one project shapefiles with different
encodings this will not work.


The other solution would be a seperate .cpg file along with the .shp. 
But I didnt test it, and I dont know what is chosen if environment 
variable and .cpg have different values.



Also this will not work if shapefile encoding
not supported by GDAL recoding method.



Ok, then you are lost after all, but you would not get those cases from 
proper working older qgis projects anyway.


Greeteings,
Andre Joost



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


Re: [Qgis-user] [1.8.0] Broken UTF-8 support in shapefiles - and workaround

2012-06-29 Thread Alexander Bruy
Hi Andre,

2012/6/28 Andre Joost :
> The only thing that does not work as expected:
> All text with non-ASCII-characters (e.g. ä ö ü) is broken.
Fisrt of all this is known issue and it is not QGIS bug, but GDAL one.
See http://hub.qgis.org/issues/5255, http://hub.qgis.org/issues/5340
and http://hub.qgis.org/issues/5508.

Also your solution will work only in some cases, when shapefiles are
in UTF-8 encoding. So if you use in one project shapefiles with different
encodings this will not work. Also this will not work if shapefile encoding
not supported by GDAL recoding method.

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