RE: [Qgis-user] RE: Shapefile structure viewer and editor plugin

2010-09-06 Thread Benoit de Cabissole
Hi Alister,

Interesting. It seems that your shapefile has an empty multipolyline in it
or it contains a line with no point?
If you don't mind, yes, send me that shapefile.

A new version 0.0.5 has been put in the contributed repo that should handle
this case.

I'm developing with the nightly builds (1.6 Trunk in OSGeo4W on XP) so I'm
not so surprised it crashes V1.5 on error.

Thanks for reporting the error.
Benoit


 -Original Message-
 From: qgis-user-boun...@lists.osgeo.org
 [mailto:qgis-user-boun...@lists.osgeo.org]on Behalf Of Alister Hood
 Sent: Monday, 06 September 2010 01:34
 To: qgis-user@lists.osgeo.org
 Subject: [Qgis-user] RE: Shapefile structure viewer and editor plugin


 Hi Benoit,
 I have found a shape file that causes QGIS 1.5 to crash when I try to
 start your plugin.  In the nightly builds it doesn't crash QGIS, but the
 plugin fails to start, with the error below.  I am on Windows XP.  I can
 send you the shape file if you are interested.

 Regards,
 Alister


 An error has occured while executing Python code:

 Traceback (most recent call last):
   File C:/Documents and
 Settings/alister.hood/.qgis/python/plugins\bccSHPV\bccSHPV.py, line
 193, in cdlgInit
 dialog = cdlgSHPV(self.iface, theLayer, iType, bSelected)
   File C:/Documents and
 Settings/alister.hood/.qgis/python/plugins\bccSHPV\cdlgSHPV.py, line
 111, in __init__
 self.DoLine()
   File C:/Documents and
 Settings/alister.hood/.qgis/python/plugins\bccSHPV\cdlgSHPV.py, line
 1088, in DoLine
 x= xm[0]
 IndexError: list index out of range

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


 QGIS version:
 1.6.0-Trunk Trunk, 14191

 Python path: ['C:\\Documents and
 Settings\\alister.hood\\.qgis\\python\\plugins\\elevation',
 'C:/OSGeo4W/apps/qgis-dev/./python', 'C:/Documents and
 Settings/alister.hood/.qgis/python', 'C:/Documents and
 Settings/alister.hood/.qgis/python/plugins',
 'C:/OSGeo4W/apps/qgis-dev/./python/plugins',
 'C:\\OSGeo4W\\apps\\gdal-17\\pymod', 'H:\\',
 'C:\\OSGeo4W\\bin\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs',
 'C:\\OSGeo4W\\apps\\Python25\\lib',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk',
 'C:\\OSGeo4W\\apps\\qgis-dev\\bin', 'C:\\OSGeo4W\\apps\\Python25',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
 'C:\\Documents and
 Settings\\alister.hood\\.qgis\\python\\plugins\\cadtools\\tools',
 '~/.qgis/python',
 'C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools',
 '/usr/share/qgis/python/', '/usr/share/qgis/python/',
 '/usr/share/qgis/python']

 ___
 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] Composer Scale

2010-09-06 Thread Brett Adams
 You were spot on Andreas. Even though the map displayed one projection 
it was still running in lat-long.


Thanks heaps

On 5/09/2010 5:48 AM, Andreas Neumann wrote:

Hi,

Not sure if you got help/reply already.

Often, you should first check if the map units AND the projection is
correctly set. In most cases, this fixes any scale issues. QGIS cannot
know which projection your project is in, if you do not tell it.

If, after explicitly setting units and projection, the map scale still
displays wrong values it is probably a bug. You should then submit a bug
report with some simple sample data, a sample project and short
description of the problem.

Hope this helps,
Andreas


On Fri, September 3, 2010 5:43 am, Brett Adams wrote:

   Hi Folks,
How does the map scale in composer work? The scale suggested doesn't
appear related to what my map is showing.

I want to generate a map at 1:25,000

--
Brett Adams
Spinifex Geophysics
0438 861 974
SKYPE:brettadams_spinifex

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






--
Brett Adams
Spinifex Geophysics
0438 861 974
SKYPE:brettadams_spinifex

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


RE: [Qgis-user] RE: Shapefile structure viewer and editor plugin

2010-09-06 Thread Alister Hood
Yes, this file works with 0.0.5 in nightly QGIS (It still crashes 1.5).

Be warned - unless you choose to load a small selection the plugin takes
a long time to load this file, due to the large amount of information in
it :)

Alister


Alister Hood
Consultant
 
Synergine Group Limited
Unit 105, 23 Edwin Street, Mt Eden
PO Box 8000 Symonds Street
Auckland 1150, New Zealand
 
Ph: +64 9 631 1777
DDI: +64 9 632 0223
Fax: +64 9 631 0070
Email: alister.h...@synergine.com
 
 

-Original Message-
From: Benoit de Cabissole [mailto:ben...@exigesa.com] 
Sent: Monday, 6 September 2010 6:42 p.m.
To: Alister Hood; qgis-user@lists.osgeo.org
Subject: RE: [Qgis-user] RE: Shapefile structure viewer and editor
plugin

Hi Alister,

Interesting. It seems that your shapefile has an empty multipolyline in
it
or it contains a line with no point?
If you don't mind, yes, send me that shapefile.

A new version 0.0.5 has been put in the contributed repo that should
handle
this case.

I'm developing with the nightly builds (1.6 Trunk in OSGeo4W on XP) so
I'm
not so surprised it crashes V1.5 on error.

Thanks for reporting the error.
Benoit


 -Original Message-
 From: qgis-user-boun...@lists.osgeo.org
 [mailto:qgis-user-boun...@lists.osgeo.org]on Behalf Of Alister Hood
 Sent: Monday, 06 September 2010 01:34
 To: qgis-user@lists.osgeo.org
 Subject: [Qgis-user] RE: Shapefile structure viewer and editor plugin


 Hi Benoit,
 I have found a shape file that causes QGIS 1.5 to crash when I try to
 start your plugin.  In the nightly builds it doesn't crash QGIS, but
the
 plugin fails to start, with the error below.  I am on Windows XP.  I
can
 send you the shape file if you are interested.

 Regards,
 Alister


 An error has occured while executing Python code:

 Traceback (most recent call last):
   File C:/Documents and
 Settings/alister.hood/.qgis/python/plugins\bccSHPV\bccSHPV.py, line
 193, in cdlgInit
 dialog = cdlgSHPV(self.iface, theLayer, iType, bSelected)
   File C:/Documents and
 Settings/alister.hood/.qgis/python/plugins\bccSHPV\cdlgSHPV.py, line
 111, in __init__
 self.DoLine()
   File C:/Documents and
 Settings/alister.hood/.qgis/python/plugins\bccSHPV\cdlgSHPV.py, line
 1088, in DoLine
 x= xm[0]
 IndexError: list index out of range

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


 QGIS version:
 1.6.0-Trunk Trunk, 14191

 Python path: ['C:\\Documents and
 Settings\\alister.hood\\.qgis\\python\\plugins\\elevation',
 'C:/OSGeo4W/apps/qgis-dev/./python', 'C:/Documents and
 Settings/alister.hood/.qgis/python', 'C:/Documents and
 Settings/alister.hood/.qgis/python/plugins',
 'C:/OSGeo4W/apps/qgis-dev/./python/plugins',
 'C:\\OSGeo4W\\apps\\gdal-17\\pymod', 'H:\\',
 'C:\\OSGeo4W\\bin\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs',
 'C:\\OSGeo4W\\apps\\Python25\\lib',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk',
 'C:\\OSGeo4W\\apps\\qgis-dev\\bin', 'C:\\OSGeo4W\\apps\\Python25',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
 'C:\\Documents and
 Settings\\alister.hood\\.qgis\\python\\plugins\\cadtools\\tools',
 '~/.qgis/python',
 'C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools',
 '/usr/share/qgis/python/', '/usr/share/qgis/python/',
 '/usr/share/qgis/python']

 ___
 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] [solved] QGIS MapServer SVG

2010-09-06 Thread Horst Düster

Hi Marco

Thank you very much. I use new generation symbology and your hints 
solved my problem when I store my svg files in


$CMAKE_INSTALL_PREFIX/share/qgis/svg

But when I store the svg files in a folder like

$CMAKE_INSTALL_PREFIX/share/qgis/svg/mySymbols

it doesn't work.

Greetings from Barcelona

Horst

Am 05.09.2010 12:32, schrieb Marco Hugentobler:

Hi Horst

Which renderer do you use (old symbology marker, new symbology svg marker or
any other)?

new symbology:
If you build with qgis trunk, the mapserver looks for svg symbols at the QGIS
install path ($CMAKE_INSTALL_PREFIX/share/qgis/svg). So normally, it should
not be necessary to move the svg files.

old symbology:
If you are using old symbology, the absolute svg pathes are in the project file
(assuming you save with 'absolute paths' in project properties).

Regards,
Marco


Am Samstag, 4. September 2010, um 17.32:57 schrieb Horst Düster:


Hi

I have created a QGIS project with some new SVG symbols. Now I want to
serve this project as a WMS via QGIS MapServer, but all SVG symbols
don't appear in the resultant WMS image. Now I'm in doubt where I have
to put my SVG files on my server.

Any hint will be appreciated.

Horst
___
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] Composer Scale

2010-09-06 Thread Andreas Neumann
Hi Ahmad,

Did you build pyramids on your raster data to improve the performance?

Double click the raster layer and the layer properties dialogue opens.
Then in the left iconbar go to Pyramids. On the bottom right you can use
the Build Pyramids button. If you already have pyramids, you will see
them listed here.

Hope this helps,
Andreas

On Sun, September 5, 2010 7:24 am, ahmad jauhari wrote:
 Dear,

 I'm using ubuntu as OS, RAM 4GB, HD 320GB, RAM VGA 256MB.
 I digitized on screen a sattelite image in big size (43 MB).
 I got problem, the program crash or restart suddenly. Or,
 QGIS is run Slowly when  rendering process.
 I Already check the quality of shape file, it's OK.
 What's problem?
 Are there any solution?

 Thank you very much


 Best Regard,


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



-- 
Andreas Neumann
http://www.carto.net/neumann/
http://www.svgopen.org/

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


Re: [Qgis-user] [solved] QGIS MapServer SVG

2010-09-06 Thread Marco Hugentobler
Hi Horst

 But when I store the svg files in a folder like
 
 $CMAKE_INSTALL_PREFIX/share/qgis/svg/mySymbols
 
 it doesn't work.

Hm, strange. Could you have a look into the project file and check the svg file 
pathes? Normally, they should be something like:

symbol outputUnit=MM alpha=1 type=marker name=0
layer pass=0 class=SvgMarker locked=0
prop k=angle v=0/
prop k=name v=/biology/Coniferous.svg/
prop k=offset v=0,0/
prop k=size v=6/
/layer
/symbol

So in your case /mySymbol/symbol.svg

See you in Barcelona,
Marco

Am Montag, 6. September 2010, um 09.54:12 schrieb Horst Düster:
 Hi Marco
 
 Thank you very much. I use new generation symbology and your hints
 solved my problem when I store my svg files in
 
 $CMAKE_INSTALL_PREFIX/share/qgis/svg
 
 But when I store the svg files in a folder like
 
 $CMAKE_INSTALL_PREFIX/share/qgis/svg/mySymbols
 
 it doesn't work.
 
 Greetings from Barcelona
 
 Horst
 
 Am 05.09.2010 12:32, schrieb Marco Hugentobler:
  Hi Horst
  
  Which renderer do you use (old symbology marker, new symbology svg marker
  or any other)?
  
  new symbology:
  If you build with qgis trunk, the mapserver looks for svg symbols at the
  QGIS install path ($CMAKE_INSTALL_PREFIX/share/qgis/svg). So normally,
  it should not be necessary to move the svg files.
  
  old symbology:
  If you are using old symbology, the absolute svg pathes are in the
  project file (assuming you save with 'absolute paths' in project
  properties).
  
  Regards,
  Marco
  
  Am Samstag, 4. September 2010, um 17.32:57 schrieb Horst Düster:
  Hi
  
  I have created a QGIS project with some new SVG symbols. Now I want to
  serve this project as a WMS via QGIS MapServer, but all SVG symbols
  don't appear in the resultant WMS image. Now I'm in doubt where I have
  to put my SVG files on my server.
  
  Any hint will be appreciated.
  
  Horst
  ___
  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
Webereistrasse 66, 8134 Adliswil, 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


Re: [Qgis-user] txt to shp

2010-09-06 Thread Martin Weis
Hello John,

Am 04.09.2010 20:58, schrieb john:
 Hello Gerardo, After seeing how long it takes to load and view a
 large file in qgis 1.5.0  I see the advantage of using smaller excel
 files of one or two degrees lon and lat. Do you know of a quick and
 easy way to join points with attributes of similar values of a txt
 file into polygons?

I do not exactly know what you want:
a)
You simply cannot store polygons in a table. One thing you could think
about: use WKT for the polygon geometry.
Even if you have a bunch of point coordinates with the same attribute
(identifying the polygon) in the table, the order of them would be
important, and each polygon has to start and end within the same point.

b)
Or do you have *corresponding* points for polygons (one point within
polygon)? Intersection/join attributes by location are your friends.

c)
If you want to join a plain table based on corresponding attributes, you
can use join attributes (works only with a layer or dbf so far - you
could create it from your data).

 Is it easier to do it as a cvs text file in excel
 or once loaded into qgis. Any suggestions will of course be much
 appreciated. thanks, J.R.

Martin



signature.asc
Description: OpenPGP digital signature
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-user


RE: [Qgis-user] FILE .dwg and .cad

2010-09-06 Thread Duarte Carreira
Andreas,

But QGIS reads DGN files directly, I assume through OGR, and with all geometry 
types in a single layer. We can then filter each geometry type and save to 
shapefile. Can't QGIS work the same way with DWG theoretically? If/when OGR 
provides a dwg driver that is similar to the dgn driver, then I would assume 
this would work.

Duarte

-Mensagem original-
De: Andreas Neumann [mailto:a.neum...@carto.net]
Enviada: sábado, 4 de Setembro de 2010 22:36
Para: herman palaquium
Cc: qgis-user@lists.osgeo.org
Assunto: Re: [Qgis-user] FILE .dwg and .cad

Hi,

Currently, the dxf2shp plugin is more or less the only way to import dxf
data to QGIS, by converting the dxf to multiple shapefiles.

OGR (GDAL) recently included improvements for reading and writing in QGIS,
but because QGIS cannot read several geometry types from one single file,
it cannot be loaded directly from OGR without additional work in QGIS.

DWG is again a different beast. There is the opendwg library (that needs
to be licensed), and there are the attempts of other OS projects. However,
DWG is a complex format, and it changes with every new Autocad releases.
Not fun to write a reader/converter for.

It is therefore unlikely that QGIS will soon have DWG support. You should
ask the supplier of the file to deliver it in dxf or other more readable
formats.

Andreas

On Fri, September 3, 2010 5:10 pm, herman palaquium wrote:
 hi all

 how to import to the data view from file extension dwg and extension cad

 i cannot open that from add vector command or add raster command icon

 lovely QGIS thetys

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



--
Andreas Neumann
http://www.carto.net/neumann/
http://www.svgopen.org/


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


[Qgis-user] GIS data of France

2010-09-06 Thread Stefano Grassi
Hi there,

I am searching for GIS data of France. I prefer data divided by region or
department instead of nationwide data.
The preferable resolution is 1:25.000 or better.
I search for in particular data about:

   - land use but with better resolution than the data of Corinne project:
  - settlement, villages, cities, etc...
  - forest, agriculture, vegetation, etc...
  - rivers, lakes, ponds, etc
   - protected areas (all types available and indicated by the law):
  - birds migration, wet sensitive areas, faunal reproduction area, and
  more
   - infrastructure:
  - roads, railways,
  - transmission lines, pipelines,
  - airports, runways,
  - water canals,
  - TV-radio broadcasting stations,.
  - military bases, airports, radars
   - ground structure:
  - bedrock, soil structure, aquifer, alluvial beds,  ground water
  level,.
   - landownership parcels
   - administrative and political boundaries
   - topographic maps

Do you have any links/governmental body/ server to suggest me please?

thank you in advance for the help to the community

Cheers

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


Re: [Qgis-user] GIS data of France

2010-09-06 Thread nikos ves
On Mon, 2010-09-06 at 19:06 +0200, Stefano Grassi wrote:
 Hi there,
 

 
 
 thank you in advance for the help to the community
 
 Cheers
 
 
 Stefano G.


http://www.openstreetmap.org/ for roads, maps, towns, general interest
polygons.

Corine Land Cover 2006 seamless vector data - version 13 (02/2010)
Land use polygon vectors
(http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version)

Maps for France that you can digitize:
 http://www.lib.utexas.edu/maps/ams/france/

also check eea site for any data you can use
 http://www.eea.europa.eu/data-and-maps/data

Be sure to contact France Army Map service (the mother of all map
sources in your country)

Now for wildlife, those datas are pretty rare, my recommendation is to
check with any university that runs that kind of projects, and ask them
(politely) if they have any data to share.

I hope I helped a bit

nick



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


Re: [Qgis-user] GIS data of France

2010-09-06 Thread Johannes Signer
that may be useful too:

http://www.diva-gis.org/gdata



On Mon, Sep 6, 2010 at 1:24 PM, nikos ves vesni...@gmail.com wrote:

 On Mon, 2010-09-06 at 19:06 +0200, Stefano Grassi wrote:
  Hi there,
 
 
 
 
  thank you in advance for the help to the community
 
  Cheers
 
 
  Stefano G.


 http://www.openstreetmap.org/ for roads, maps, towns, general interest
 polygons.

 Corine Land Cover 2006 seamless vector data - version 13 (02/2010)
 Land use polygon vectors
 (http://www.eea.europa.eu/data-and-maps/data/clc-2006-vector-data-version)

 Maps for France that you can digitize:
  http://www.lib.utexas.edu/maps/ams/france/

 also check eea site for any data you can use
  http://www.eea.europa.eu/data-and-maps/data

 Be sure to contact France Army Map service (the mother of all map
 sources in your country)

 Now for wildlife, those datas are pretty rare, my recommendation is to
 check with any university that runs that kind of projects, and ask them
 (politely) if they have any data to share.

 I hope I helped a bit

 nick



 ___
 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] GIS data of France

2010-09-06 Thread MORREALE Jean Roc
Answering each item of your list would take me the week so I'll just 
point you to http://www.geocatalogue.fr/SearchTileForward.do which point 
to many ressources, thank to INSPIRE.


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


Re: [Qgis-user] GIS data of France

2010-09-06 Thread Sylvain Maillard
hello,

depending on what you plan to do, you can find almost all of these data on
the National Geographic Institute portal: http://www.geoportail.fr
there is a full api with wfs and wms services (
http://api.ign.fr/geoportail/api/doc/index.html)


cheers,
Sylvain



2010/9/6 Stefano Grassi stegra...@gmail.com

 Hi there,

 I am searching for GIS data of France. I prefer data divided by region or
 department instead of nationwide data.
 The preferable resolution is 1:25.000 or better.
 I search for in particular data about:

- land use but with better resolution than the data of Corinne project:
   - settlement, villages, cities, etc...
   - forest, agriculture, vegetation, etc...
   - rivers, lakes, ponds, etc
- protected areas (all types available and indicated by the law):
   - birds migration, wet sensitive areas, faunal reproduction area,
   and more
- infrastructure:
   - roads, railways,
   - transmission lines, pipelines,
   - airports, runways,
   - water canals,
   - TV-radio broadcasting stations,.
   - military bases, airports, radars
- ground structure:
   - bedrock, soil structure, aquifer, alluvial beds,  ground water
   level,.
- landownership parcels
- administrative and political boundaries
- topographic maps

 Do you have any links/governmental body/ server to suggest me please?

 thank you in advance for the help to the community

 Cheers

 Stefano G.


 ___
 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: Shapefile structure viewer and editor plugin

2010-09-06 Thread Alister Hood
Yes, that feature seems to be invalid in the original Mapinfo file too.

Thanks for the warning about multipolylines.

Alister

-Original Message-
From: Benoit de Cabissole [mailto:ben...@exigesa.com] 
Sent: Monday, 6 September 2010 10:56 p.m.
To: Alister Hood
Subject: RE: [Qgis-user] RE: Shapefile structure viewer and editor
plugin

Alister,

Thanks for the shapefile. Yes it takes a long while to load!
I've noticed that my plugin only loads 1106 of the 1107 features in the
shapefile.
On further examination I've found that the first feature (OBJECTID = 1)
could be invalid?

I also realised that although I import the multipolylines 'correctly' in
the
plugin, the Save as and Save functions are really buggy: all multi-parts
of
a multipolylines are connected to each other resulting in a spaghetti
shapefile. I'm working on a fix right now. Please do not use the save
commands on multipolylines shapefiles!

multipolylines are shapefiles that contain one set of attributes linked
to
more that one individual lines (for example, select OBJECTID 481 and you
will see what I mean: many non-connected lines are 'attached' to the
attributes of OBJECTID 481)

Cheers,
Benoit

 -Original Message-
 From: Alister Hood [mailto:alister.h...@synergine.com]
 Sent: Monday, 06 September 2010 09:10
 To: ben...@exigesa.com
 Subject: RE: [Qgis-user] RE: Shapefile structure viewer and editor
 plugin


 Yes, this file works with 0.0.5 in nightly QGIS (It still crashes
1.5).

 Be warned - unless you choose to load a small selection the plugin
takes
 a long time to load this file, due to the large amount of information
in
 it :)

 Alister

 -Original Message-
 From: Benoit de Cabissole [mailto:ben...@exigesa.com]
 Sent: Monday, 6 September 2010 6:42 p.m.
 To: Alister Hood; qgis-user@lists.osgeo.org
 Subject: RE: [Qgis-user] RE: Shapefile structure viewer and editor
 plugin

 Hi Alister,

 Interesting. It seems that your shapefile has an empty multipolyline
in
 it
 or it contains a line with no point?
 If you don't mind, yes, send me that shapefile.

 A new version 0.0.5 has been put in the contributed repo that should
 handle
 this case.

 I'm developing with the nightly builds (1.6 Trunk in OSGeo4W on XP) so
 I'm
 not so surprised it crashes V1.5 on error.

 Thanks for reporting the error.
 Benoit


  -Original Message-
  From: qgis-user-boun...@lists.osgeo.org
  [mailto:qgis-user-boun...@lists.osgeo.org]on Behalf Of Alister Hood
  Sent: Monday, 06 September 2010 01:34
  To: qgis-user@lists.osgeo.org
  Subject: [Qgis-user] RE: Shapefile structure viewer and editor
plugin
 
 
  Hi Benoit,
  I have found a shape file that causes QGIS 1.5 to crash when I try
to
  start your plugin.  In the nightly builds it doesn't crash QGIS, but
 the
  plugin fails to start, with the error below.  I am on Windows XP.  I
 can
  send you the shape file if you are interested.
 
  Regards,
  Alister
 
 
  An error has occured while executing Python code:
 
  Traceback (most recent call last):
File C:/Documents and
  Settings/alister.hood/.qgis/python/plugins\bccSHPV\bccSHPV.py, line
  193, in cdlgInit
  dialog = cdlgSHPV(self.iface, theLayer, iType, bSelected)
File C:/Documents and
  Settings/alister.hood/.qgis/python/plugins\bccSHPV\cdlgSHPV.py,
line
  111, in __init__
  self.DoLine()
File C:/Documents and
  Settings/alister.hood/.qgis/python/plugins\bccSHPV\cdlgSHPV.py,
line
  1088, in DoLine
  x= xm[0]
  IndexError: list index out of range
 
  Python version:
  2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit
(Intel)]
 
 
  QGIS version:
  1.6.0-Trunk Trunk, 14191
 
  Python path: ['C:\\Documents and
  Settings\\alister.hood\\.qgis\\python\\plugins\\elevation',
  'C:/OSGeo4W/apps/qgis-dev/./python', 'C:/Documents and
  Settings/alister.hood/.qgis/python', 'C:/Documents and
  Settings/alister.hood/.qgis/python/plugins',
  'C:/OSGeo4W/apps/qgis-dev/./python/plugins',
  'C:\\OSGeo4W\\apps\\gdal-17\\pymod', 'H:\\',
  'C:\\OSGeo4W\\bin\\python25.zip',
'C:\\OSGeo4W\\apps\\Python25\\DLLs',
  'C:\\OSGeo4W\\apps\\Python25\\lib',
  'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win',
  'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk',
  'C:\\OSGeo4W\\apps\\qgis-dev\\bin', 'C:\\OSGeo4W\\apps\\Python25',
  'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages',
  'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32',
  'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib',
  'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin',
 
'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode',
  'C:\\Documents and
  Settings\\alister.hood\\.qgis\\python\\plugins\\cadtools\\tools',
  '~/.qgis/python',
  'C:\\OSGeo4W\\apps\\qgis-dev\\python\\plugins\\fTools\\tools',
  '/usr/share/qgis/python/', '/usr/share/qgis/python/',
  '/usr/share/qgis/python']
 
  ___
  Qgis-user mailing list
  Qgis-user@lists.osgeo.org