#QGIS IRC Log - 2009-06-12

For logs after Feb 3, 2007, all times are GMT-8. Prior logs are GMT-9.
Back to Logs
00:42:33 kingcharles: anyone can help me with layers refresh for a real-time apps qith qgis ?
01:20:54 milovanderlinden: Hi all, serious issues with Ubuntu Jaunty 64bit have caused me to use another linux distro. I am now on #! crunchbang linux which is intrepid based. I pointed to ppa.launchpad to get qGIS unstable, it installed. But when I run it I get Segmentation fault. How can I debug the run process?
01:21:47 kpanic: milovanderlinden, same here, I apt-get build-dep qgis, downloaded the latest qgis and recompiled. works like a charm
01:22:31 kpanic: milovanderlinden, I was getting segfault in the 'style editor'
01:23:44 milovanderlinden: kpanic, gonna try build-dep, thanks!
01:24:30 milovanderlinden: w00t, it requires 75 new packages :D..
01:31:29 kpanic: milovanderlinden, hope it will work. yeah a lot !
01:33:31 milovanderlinden: kpanic; not yet. I will try to reboot and see if that works
01:33:45 milovanderlinden: otherwise I need a way to get details on the segmentation fault.
01:33:49 kpanic: milovanderlinden, okay
01:34:05 milovanderlinden: back in a few sec.
01:37:52 milovanderlinden: still a segmentation fault.
01:39:05 milovanderlinden: no messages on /var/log/messages
01:40:44 kpanic: milovanderlinden, yes, maybe 'strace' it
01:45:13 milovanderlinden: thanks kpanic, I tought strace needed source code. bit newb on that terrain..
01:45:34 kpanic: milovanderlinden, nope, at least you see where at lowlevel it fails
01:45:36 macho: I'd always prefer building it from source rather using a package
01:46:19 milovanderlinden: that is indeed macho, macho ;- ) I did build from source too before, but I dislike the fact that I do not get auto update messages then
01:48:31 macho: depends on what you want .. building qgis froum source takes about 10min here
01:48:39 macho: and once in a week i rebuild it from svn
01:49:36 milovanderlinden: macho: darn! I want that too!
01:52:17 milovanderlinden: strace throws a lot of ( No such file or directory ) errors at me..
01:52:54 milovanderlinden: If I want to go for "from source" do I need to apt-get remove qgis and all the dependencies or qgis only?
02:03:32 macho: i do not even have some of the qgis repositories inside my sources.list
02:10:31 milovanderlinden: But if you build from source, do you have everything there including qt4 and the grass connections?
02:11:32 macho: of course
02:12:06 macho: it can even be compiled with connection to the recent grass svn build ( which i also do myself ) ; )
02:14:16 milovanderlinden: macho, do you want to share your method? I would love to build from source too
02:14:43 macho: of course i will - but i'm at work currently - and on windows :( - my linux pc is @home
02:15:03 milovanderlinden: It would even be nice to create a howto for the qgis community, but only if you would like that
02:26:06 macho: hmmm - once i find out which dependencies building qgis in a debian environment has - i'll do a wiki page
02:29:09 milovanderlinden: macho: If you create a starting point; I can always help.
02:29:11 macho: i always have a parallel install of stable and current trunk side by side .. that very helpful sometimes ..
02:29:19 milovanderlinden: No need to work out the ins and outs alone
02:29:48 milovanderlinden: Yeah, that sounds great, having two side by side is excellent for instance for testing translation
02:30:01 macho: : ) thats what i do ..
02:30:12 macho: my job as translation coordinator ..
02:35:12 il_rugginoso: hi all
03:05:14 strk: jef: for the record. I'm using my version of that postgis layer loader and I'm very happy with it. Would be a pity to loose mainstream.
03:05:31 strk: to recap, my version simply always uses <tablename>.<columname>
03:05:38 strk: for sure it's not necessarely always good
03:05:47 strk: for the reason you mentioned ( it's usually always the_geom )
03:05:52 strk: and cause someone would also want the schema
03:06:02 strk: so my final proposal for The Way To Do It ( tm ) is:
03:06:13 strk: let user specify that in the configuration file : )
03:06:36 strk: LayerNameFormat %d.%s.%t.%c
03:06:44 strk: ( database, schema, table, column )
03:07:12 strk: point me to a place where I can record the "feature request" if you have one please : )
03:15:16 strk: wrote to -devels...
03:40:54 CIA-65: wonder * r10906 /branches/symbology-ng-branch/src/ ( 7 files in 2 dirs ):
03:40:54 CIA-65: Features for labeling are now extracted in the main drawing loop ( using a pair of hooks ).
03:40:54 CIA-65: This avoids one more iteration through the layer.
04:26:12 : * il_rugginoso is away: Per ora assente
04:31:13 CIA-65: wonder * r10907 /branches/symbology-ng-branch/src/plugins/labeling/ ( 4 files ): Option to set distance from label to the feature. Available for points and lines.
05:12:07 CIA-65: rugginoso * r10908 /trunk/qgis/src/plugins/grass/ ( 790 files in 6 dirs ): Changed GRASS modules directory structure to allow different modules version for different GRASS versions.
05:13:07 jef: 790 files? urgs.
05:15:34 il_rugginoso: jef: renamed the directory of modules...
05:16:38 il_rugginoso: uh
05:17:48 jef: il_rugginoso: did you just move the files or did you also change them? svn move might have been a good idea.
05:21:17 il_rugginoso: some of them where changed...
05:21:18 il_rugginoso: fgh
05:21:23 il_rugginoso: sorry :D
05:24:11 kingcharles: why do I havea segmentation fault on :
05:24:12 kingcharles: actlyr=mapcanvas.currentLayer( )
05:24:12 kingcharles: QgsMapLayerRegistry.instance( ).removeMapLayer( actlyr.getLayerID( ) )
05:32:19 spacedman: kingcharles: have you actually got a layer selected?
05:32:43 kingcharles: correction:
05:32:46 kingcharles: seg fault on
05:32:59 kingcharles: QgsMapLayerRegistry.instance( ).removeMapLayer( vl.getLayerID( ) )
05:33:09 kingcharles: vl is a vector layer that i have created
05:33:26 kingcharles: QgsMapLayerRegistry.instance( ).addMapLayer( vl )
05:34:15 kingcharles: vl = QgsVectorLayer( "Point", "provaLayer", "memory" )
05:34:22 kingcharles: sorry the reverse order
05:35:06 spacedman: hmmm i cant get removeMapLayer to crash even with bogus inputs... 1.0.2-Kore version
05:35:36 kingcharles: i use 1.1.0
05:35:46 kingcharles: should be the problem ?
05:36:09 spacedman: possibly - i dont have 1.1.0, I'm sticking with packaged releases
05:36:41 spacedman: does your layer show up in the legend and map okay?
05:36:48 spacedman: vl.isValid( ) is True?
05:36:52 kingcharles: yes
05:37:20 spacedman: how do you create vl?
05:38:17 kingcharles: wait
05:39:35 kingcharles: vl = QgsVectorLayer( "Point", "provaLayer", "memory" )
05:39:36 kingcharles:
05:39:36 kingcharles: if vl.isValid( ):
05:39:36 kingcharles: print "Layer Loaded"
05:39:36 kingcharles: else:
05:39:37 kingcharles: print "Failed to load layer"
05:39:39 kingcharles: #Create Layer
05:39:41 kingcharles: QgsMapLayerRegistry.instance( ).addMapLayer( vl )
05:39:44 kingcharles: pr = vl.dataProvider( )
05:39:46 kingcharles: #Add fileds
05:39:47 kingcharles: pr.addAttributes( { "ID" : "int" } )
05:39:49 kingcharles: pr.addAttributes( { "Type" : "string" } )
05:39:51 kingcharles: pr.addAttributes( { "Version" : "string" } )
05:39:53 kingcharles: pr.addAttributes( { "Lat" : "double" } )
05:39:55 kingcharles: pr.addAttributes( { "Lon" : "double" } )
05:39:57 kingcharles: # add feature 1
05:39:59 kingcharles: x=12.108
05:40:03 jef: kingcharles: um, please use a paste site
05:40:03 kingcharles: y=42.066
05:40:05 kingcharles: point = QgsPoint( )
05:40:07 kingcharles: point.setX( x )
05:40:10 kingcharles: point.setY( y )
05:40:11 kingcharles: geom = QgsGeometry( )
05:40:13 kingcharles:
05:40:15 kingcharles: fet = QgsFeature( )
05:40:18 kingcharles: fet.setFeatureId( 10 )
05:40:20 kingcharles: fet.setAttributeMap( { 0 : QVariant( "12" ), 1 : QVariant( "wideband" ), 2 :
05:40:21 kingcharles: QVariant( "1.0" ) } )
05:40:23 kingcharles: fet.setGeometry( geom.fromPoint( point ) )
05:40:25 kingcharles: pr.addFeatures( [ fet ] )
05:40:28 kingcharles: QgsMapLayerRegistry.instance( ).removeMapLayer( vl.getLayerID( ) )
05:40:35 kingcharles: sorry
05:41:12 kingcharles: other problem.... i cannto remove fet using pr.deleteFeatures( [fet] )
05:43:30 spacedman: i just pasted all your code, and no crash
05:44:38 kingcharles: ok... correct
05:44:44 kingcharles: also for me now
05:44:57 kingcharles: some code to comment
05:45:33 kingcharles: i am doing an error concerning pr.deleteFeatures( [fet] ) ???????
05:58:26 kingcharles: if I use..... removeMapLayer( vl.getLayerID( ),False ) crash...
06:30:29 sigq: tracfeed: Ticket #1732 ( bug created ): Redirect handling is not implemented <https://trac.osgeo.org/qgis/ticket/1732> || Ticket #1731 ( bug created ): Redirect handling is not implemented <https://trac.osgeo.org/qgis/ticket/1731>
06:32:29 sigq: tracfeed: Ticket #1733 ( bug created ): When a / is on the end of an url http: is dropped from the GET <https://trac.osgeo.org/qgis/ticket/1733> || Ticket #1732 ( bug closed ): Redirect handling is not implemented <https://trac.osgeo.org/qgis/ticket/1732#comment:1>
06:34:48 CIA-65: rugginoso * r10909 /trunk/qgis/src/plugins/grass/ ( 3 files in 2 dirs ): Added r.external GRASS module. Fixes #1623.
06:36:30 sigq: tracfeed: Ticket #1623 ( enhancement closed ): add r.external module <https://trac.osgeo.org/qgis/ticket/1623#comment:2> || Changeset [10909]: Added r.external GRASS module. Fixes #1623. <https://trac.osgeo.org/qgis/changeset/10909>
06:36:41 pcav: r.external now in qgis!!
06:36:45 pcav: great thing
06:56:04 CIA-65: rugginoso * r10910 /trunk/qgis/src/plugins/grass/modules-6.4/r.external.1.png: Changed the icon for r.external GRASS plugin module
06:56:05 sigq: tracfeed: Changeset [10910]: Changed the icon for r.external GRASS plugin module <https://trac.osgeo.org/qgis/changeset/10910>
07:27:41 CIA-65: rugginoso * r10911 /trunk/qgis/src/plugins/grass/ ( 3 files in 2 dirs ): Added r.external.qgis GRASS plugin module.
07:27:42 sigq: tracfeed: Changeset [10911]: Added r.external.qgis GRASS plugin module. <https://trac.osgeo.org/qgis/changeset/10911>
07:58:50 CIA-65: rugginoso * r10912 /trunk/qgis/src/plugins/grass/config/default.qgc: Removed duplicated entry in GRASS plugin module list.
08:00:51 sigq: tracfeed: Changeset [10912]: Removed duplicated entry in GRASS plugin module list. <https://trac.osgeo.org/qgis/changeset/10912>
08:03:56 sigq: tracfeed: Ticket #1734 ( enhancement created ): Use a dockable tabbed window for plugins <https://trac.osgeo.org/qgis/ticket/1734>
09:41:09 nik_: Hi all!
09:42:20 nik_: Ehmmm... I just wanted to have a quick info WRT Paolo's post in the list titled "help for GRASS modules: *.region.*"
09:45:15 nik_: As I posted in the list, I can ( eventually ) spare some time and try to help. Is there some free time next week ( Tuesday, Wednesday? ) to feed me with information?
10:09:54 CIA-65: wonder * r10913 /branches/symbology-ng-branch/src/core/pal/layer.cpp: Fixed bad_alloc exception followed by a deadlock when working with invalid geometry.
11:25:20 CIA-65: gcontreras * r10914 /trunk/qgis/src/providers/ogr/qgsogrprovider.cpp: Fix for bug #1520, After adding a column for OGR-Layer, column doesn't appear in attribute table
11:39:57 sigq: tracfeed: Ticket #1520 ( enhancement closed ): After adding a column for OGR-Layer, column doesn't appear in attribute table <https://trac.osgeo.org/qgis/ticket/1520#comment:5>
12:37:56 timlinux: hi all
12:38:00 timlinux: @seen gsherman
12:38:00 sigq: timlinux: gsherman was last seen in #qgis 1 week, 0 days, 4 hours, 32 minutes, and 1 second ago: * gsherman back later
12:38:58 CIA-65: wonder * r10915 /branches/symbology-ng-branch/src/plugins/labeling/ ( pallabeling.cpp pallabeling.h ): Fixed an occasional segfault coming from incorrect geometry deletion.
12:38:59 sigq: tracfeed: Changeset [10915]: Fixed an occasional segfault coming from incorrect geometry deletion. <https://trac.osgeo.org/qgis/changeset/10915>
12:43:06 CIA-65: gcontreras * r10916 /trunk/qgis/src/app/qgisapp.cpp: Fix for ticket #1702, when loading an ogr database datasource with one layer the password appears in legend.
12:46:17 sigq: tracfeed: Ticket #1702 ( bug closed ): When loading an ogr database datasource with one layer the password appears in legend <https://trac.osgeo.org/qgis/ticket/1702#comment:1>
13:46:33 sigq: tracfeed: Ticket #366 ( enhancement closed ): Adding a new column to a ( dbf ) table? <https://trac.osgeo.org/qgis/ticket/366#comment:13>
13:51:57 jiho: Hi everyone. Newbie to qgis here. I have a IKONOS satellite file that is supposed to be GeoTIFF ( it comes as a tiff file accompanied by .ers and .tfw files with the same name ). The documentation says the datum/projection is GDA94/MGA55 ( the image is from Autralia ). However, when opened in qGis the default WGS 84 is used and the coodinates look like 335413,8374684 so nowhere like lat,lon couples.
13:52:30 jiho: I though GeoTIFF's had this information embedded. Is there anything special I should care about when opening the image?
13:53:46 macho: jiho: try to define the projection before you open the file
13:53:57 macho: there are some issues with decent projections and datums ..
13:54:05 macho: long outstanding bugs .. :(
13:54:14 jiho: in case someone is interested in looking at the files directly, here are links:
13:54:14 jiho: http://files.getdropbox.com/u/1047321/GeoTif/Lizardisland_240905.tif
13:54:15 jiho: http://files.getdropbox.com/u/1047321/GeoTif/Lizardisland_240905.tfw
13:54:15 jiho: http://files.getdropbox.com/u/1047321/GeoTif/Lizardisland_240905.ers
13:54:15 jiho: just note that the tiff files is ~150MB
13:54:33 jiho: macho: thanks, trying that now
13:54:47 macho: mostly caused by other programs writing out none standard projection definition files
13:59:05 jiho: macho: you mean setting the projection for the project right?
14:01:15 macho: yes
14:02:18 jiho: macho: if I set GDA94/MGA55 in project properties, tick "enable on-the-fly" CRS transfornation, then add a raster layer with the tif files, nothing appears and I have an invalid scale message in the botom right of the status bar
14:04:56 jiho: macho: is there any way I can check that the GeoTiff file is actually georeferenced?
14:05:07 macho: i'll look at it tomorrow
14:05:33 jiho: macho: thanks that's very kind of you. in which timezone are you?
14:08:59 macho: GMT+1 Europe/Vienna
14:09:10 macho: hmm - summertime - so i guess its GMT+2
14:09:20 jiho: oh that's late for you indeed!
14:09:34 jiho: my email is jo.irisson ( at ) gmail.com
14:09:45 macho: what is your timezone?
14:10:04 jiho: I am in the eastern US so I will only be able to connect to IRC sometime in the afternoon for you
14:10:08 jef: I don't think there is any usable projection information. the .ers file is not used.
14:10:42 jiho: jef: "any usable projection" in the Tiff file you mean?
14:10:46 macho: for projection there should be a .prj file ..
14:10:49 jef: I'd just set the CRS in the layer properties.
14:10:50 jiho: I see
14:10:54 macho: but i've had a simmilar problem a few month ago
14:11:08 macho: and it was hard to tell qgis howto load the geotiff properly
14:11:38 jiho: OK. well it is a very small region so the exact projection used should actually not matter very much
14:11:54 jiho: what I am most intrested in it getting lat,lon coordinates that make sense
14:12:14 macho: what lat lon are you expecting?
14:13:29 jiho: around S14.6 and E145.5
14:14:08 macho: ok - maybe i've time tomorrow to take a look at
14:14:14 macho: good night ..
14:14:21 jiho: thanks very much again
14:14:24 jiho: good night
14:14:43 jef: jiho: set the CRS in the layers properties to GDA94/MGA55 and the project's CRS to WGS84 and enable on-the-fly projection
14:15:08 jiho: jef: trying that now
14:17:23 jiho: jef: the image disappears when I do that. Basically I need the CRS to be the same in both the layer and project otherwise I just see a blank page
14:17:43 jiho: trying to zoom to the extent of the data does not seem to do anything
14:17:59 jiho: ( in case the change of project just shifted the image somwhere else )
14:18:08 jiho: projection*
14:18:10 macho: oh - jef is here : )
14:20:02 jiho: jef: oh something interesting though: by doing what you advise, I get valid coordinates ( hovering the mouse over the map gives me values of 145 and -14 )
14:21:39 macho: so it works now?
14:22:34 jiho: oh qgis just hanged and I had to kill it
14:22:57 jiho: it seems qgis was eating all my RAM
14:23:27 jiho: so maybe I was just seeing a blank page because qgis was in the process of rendering the image
14:23:32 CIA-65: kyngchaos * r10917 /trunk/qgis/mac/xcode/Qgis.xcodeproj/project.pbxproj: GRASS module reorg and updates ( r10903, r10908, r10909, r10910, r10911 )
14:23:50 jiho: my CPU was not sollicited though
14:24:27 jiho: macho: well, the coordinates are right but now I don't see any image : )
14:24:42 sigq: tracfeed: Changeset [10917]: GRASS module reorg and updates ( r10903, r10908, r10909, r10910, r10911 ) <https://trac.osgeo.org/qgis/changeset/10917>
14:30:36 jiho: jef: anything else I can test?
14:37:09 jef: jiho: well, not a big raster user on this end. looks like the vector approach doesn't work well on rasters.
14:41:13 jiho: jef: sorry, I did not see your reply
14:41:55 jiho: ok. actually my goal is to contour the fetures I am interested in and get vectors instead of raster.
14:42:02 jiho: I also want to get away from the raster
14:42:04 jiho: ; )
14:42:32 jiho: it seems to work since I now get correct coordinates. there just seems to be a problem with the drawing of the map
14:42:38 jiho: thanks for your help anyway
14:42:55 jiho: half of the problem is solved it seems
14:45:11 jef: jiho: gdalwarp -s_srs epsg:28355 -t_srs epsg:4326 Lizardisland_240905.tif Lizardisland_240905-wgs84.tif
14:46:35 jiho: great. processing it now
14:47:13 jiho: whoo
14:47:15 jiho: great
14:47:19 jiho: that worked
14:47:25 jiho: well I guess you tested it
14:47:27 jiho: ; )
14:47:34 jiho: thanks a million
14:47:56 jef: jiho: np
14:48:05 jiho: now I'll digitize the parts I am interested in and export the shapefiles
14:49:24 jiho: while I am here. qGis only produces ESRI shapefiles when I start a new vector layer. Is there a way to export them to simple x,y coordinates ASCII files from within qGis afterwards?
14:49:32 milovanderlinden: Hi there, I get a segmentation fault with qGIS on #! crunchbang linux ( based on Ubuntu 8.10 ). I had it before, but this time, I am getting a splash screen flashing ( one step further then before ) I strace'd it. Is someone able to look at the strace output and maybe help me see what is wrong?
14:49:55 jiho: Otherwise I will compile shp2txt. but if there is something already in qgis that would be easier
14:55:21 jef: jiho: not sure. the ogr converter might work. shape to csv
14:56:40 jiho: thanks. I tried that but could not get it to work. probably just a problem on my end.
14:57:07 jiho: jef: thanks again for you help. have a nice evening/morning/night
14:59:46 jef: jiho: you too
15:01:41 FiReSTaRT: hey juergen.. how you doin? : )
15:02:30 jef: tired. ; )
15:05:08 FiReSTaRT: i know what you mean... been handling some logistical issues for a client in chile and it's been NUTTS... i was supposed to be back in santiago 3 days ago and i don't think i'll be going back until tuesday
16:01:41 CIA-65: ersts * r10918 /trunk/qgis/src/core/raster/qgsrasterlayer.cpp:
16:01:42 CIA-65: -removed the use of setPixel( ) in the rendering routines, thanks Yan for the suggestion
16:01:42 CIA-65: -swapped all of the myColumns and myRows in the rendering routines, as they were reversed
16:07:19 jiho: jef: Thanks to you I am finished with my tracing and I got the coordinates in the format I wanted ( it turns out R, which I am using afterwards, can read shapefiles just fine ! ). Here is the result if you are interested: http://files.getdropbox.com/u/1047321/Picture%202.png
16:07:26 jiho: Thanks again
16:08:51 jiho: gotta go