#QGIS IRC Log - 2009-04-02

For logs after Feb 3, 2007, all times are GMT-8. Prior logs are GMT-9.
Back to Logs
01:20:01 gypsymauro: hi
01:20:39 gypsymauro: there can I found last version of qgis for windows? ( not the OSGEO4W installer )
01:24:27 lynx_r: developers, is somewere an uml scheme of the qgis?
01:25:21 lynx_r: and do you use uml to develop qgis?
01:26:22 jef: lynx_r: 1. I doubt that something like that exists. 2. obviously not.
01:27:00 lynx_r: jef: ok, i will be know ; )
01:30:47 jef: gypsymauro: for 1.0 there isn't an ( official ) standalone installer yet. it's still in the works ( timlinux& giohappy are busy with that - afaik ). there's a nightly build of trunk ( current qgis, old dependencies )
01:31:22 gypsymauro: jef: I saw.. there are some pre release too .. what a pity :(
01:32:28 : * jef likes the osgeo4w installer approach
01:33:13 spacedman: i had a play with osgeo4w but qgis seemed hard-coded to C:\OSGeo4W... has anyone fixed that?
01:33:57 jef: spacedman: just the qgis.bat or somewhere else?
01:34:13 spacedman: hmmm not sure... it might have just been that...
01:34:28 spacedman: i'll have to fire up a clean windows vm...
01:34:55 jef: spacedman: should be fixed then.
01:35:59 spacedman: cool
01:39:52 gypsymauro: jef: I not 'cause I don't have a goot internet connection I prefer a stand alone setup
01:42:44 jef: gypsymauro: and what's the problem with that? I mean you can download just what you need from osgeo4w, instead of having to download a huge chunk, which includes stuff you might not need.
01:47:00 jef: gypsymauro: IIRC the last installer giohappy made was 256MB. and I'm not sure if it was complete.
01:48:55 jef: gypsymauro: and if something is updated you need to download the whole thing again. with osgeo4w you would just need to download the updated packages...
02:44:02 lynx_r: is there somewere scheme describing qgis plugin framwork?
02:51:13 sigq: tracfeed: Ticket #1612 ( bug created ): QGIS crashes when topological editing is enabled <https://trac.osgeo.org/qgis/ticket/1612>
03:43:42 giohappy: jef: ping
03:43:50 jef: giohappy: pong
03:43:59 giohappy: jef: : )
03:45:03 giohappy: jef: I'm crashing my head on the problem about minus sign... it happens only in mi self-compiled
03:45:20 giohappy: jef: any idea of what it could depend on???
03:46:47 jef: giohappy: oh, you checked with 6.4.0svn from osgeo4w?
03:47:44 giohappy: jef: you mean compile against 6.4.0?
03:47:45 giohappy: nope
03:47:49 giohappy: I will...
03:48:43 jef: giohappy: no, you said it only happens with you build. I just wanted to verify that you have tried the osgeo4w build - did you?
03:50:59 giohappy: jef: it's a problem with qgis and grass-plugin
03:51:03 giohappy: grass works fine
03:51:19 giohappy: and the qgis+grass osgeo4w build works
03:51:46 giohappy: it's a problem with my qgis/grass+plugin build... but I can't understand what/why it happens
03:52:31 jef: giohappy: set GISBASE in a cmd and start qgis from there and see what happens.
03:55:52 giohappy: jef: I'm a bit further... http://pastebin.com/d2cfeeac8
03:55:53 sigq: Title: pastebin - collaborative debugging tool ( at pastebin.com )
03:57:20 giohappy: jef: as I explained it happens only when I select the location from the combo inside the "add-grass-layer" tool, and only for vectors!
03:58:07 giohappy: it DOESN'T happen neither if I select the same location to load rasters, nor if I remove the - sign from the location name...
03:59:18 giohappy: jef: and I'm not able to do a deeper debug with gdb ( I've set a breakpoint inside qgisgrass.dll and have stepped into it, but I get a crash with no more infos )
04:01:24 jef: giohappy: I didn't expect that gdb works on vc binaries at all. I'd use the debugger from vc.
04:01:49 jef: giohappy: did you try to set GISBASE externally yet?
04:04:30 giohappy: yes: C:\Program Files\qgis1.1.0\bin>set GISBASE=C:\OSGeo4W\apps\grass\grass-6.5.svn
04:05:10 giohappy: jef: but I don't think it's a problem with this, as all the other parts of grass plugin work
04:05:27 giohappy: ( except the memory issues to be fixed )
04:14:12 giohappy: jef: can I debug with vc++ an nmake built app?
04:14:47 jef: giohappy: so that didn't help? You did start qgis from the same shell, I suppose. I suspect that the GDAL plugins might not pickup GISBASE.
04:15:11 jef: giohappy: should work. open the .exe as project
04:16:02 giohappy: jef: the strange part is that it happens only with location names having the minus sign! ( and only selecting vectors, not rasters )
04:16:27 giohappy: jef: ( and only from the toolbox, not from qgis open file dialog )
04:16:44 jef: giohappy: ok, you win ; )
04:16:52 giohappy: jef: :-d
04:17:11 giohappy: jef: I try to debug with vc++
04:18:44 jef: giohappy: QGISDEBUG is especially useful there. all output is catched by the debugger and you can double click on QgsDebugMsg output and it takes you to the code ( just like it were compile errors )
04:19:47 giohappy: jef: should I compile DEBUG target?
04:20:14 jef: giohappy: no, RelWithDebInfo. DEBUG required debug libraries.
04:20:23 jef: s/required/requires/
04:21:11 giohappy: jef: I didn't see that target... ok I'll go for it
04:21:13 giohappy: thx
04:23:07 jef: giohappy: well, I don't use nmake. but I guess there should be something like that too.
04:30:52 sigq: tracfeed: Ticket #1613 ( bug created ): Attribut table sorting doesn't work properly with postgis layers <https://trac.osgeo.org/qgis/ticket/1613>
04:35:44 gypsymauro: there is a way to connect a graphical element to a record in a table? I mean.. if every line area or point has an ID ( is it true? ) can join this id with a db table that will show some data about that element
04:40:59 CIA-56: pcav * r10454 /trunk/qgis/src/plugins/grass/modules/r.quant.qgm: Typo in r.quant
04:41:03 sigq: tracfeed: Changeset [10454]: Typo in r.quant <https://trac.osgeo.org/qgis/changeset/10454>
04:46:49 giohappy: jef: how to use QGISDEBUG?? it's not a cmake definition
04:49:03 CIA-56: jef * r10455 /trunk/qgis/src/app/attributetable/BeataModel.cpp: fix #1613
04:49:04 sigq: tracfeed: Changeset [10455]: fix #1613 <https://trac.osgeo.org/qgis/changeset/10455>
04:51:19 jef: giohappy: you should already have that. CMakeLists.txt:230
04:51:20 sigq: tracfeed: Ticket #1613 ( bug closed ): Attribut table sorting doesn't work properly with postgis layers <https://trac.osgeo.org/qgis/ticket/1613#comment:1>
04:52:31 giohappy: jef: ops, I didn't see it.. in fact I already receive the QWarnings
04:53:33 giohappy: anyway, the vc debugger doesnt tell me more then gdb. I simply get a total crash of qgis, program exits with error
04:53:48 giohappy: jef: and the error is the one I've paste-binned
04:54:03 giohappy: http://pastebin.com/d2cfeeac8
04:54:05 sigq: Title: pastebin - collaborative debugging tool ( at pastebin.com )
04:55:01 timlinux: gypsymauro: this join already exists - click a row in the table it will highlight the feature, or hightlight a feature and the row will be highlighted
04:58:07 jef: giohappy: and where does single stepping after the last message take you?
04:58:33 giohappy: I can't do single stepping after that, as qgis exits
04:59:24 giohappy: in gsb I had to load qgisgrass.dll symbols and cset a breakpoint into the setLocations entry point
04:59:44 giohappy: but, anyway, the only I get is what I've written...
04:59:50 giohappy: s/gsb/gdb
05:17:03 jef: giohappy: I meant if you set a breakpoint at the last message, rerun and then single step.
05:22:53 giohappy: jef: how can I set a breakpoint to qgisgrass.dll when debuggin qgis.exe?!
05:23:07 giohappy: jef: I've simply opened qgis.exe from vc++
05:23:10 giohappy: and run F5
05:23:31 giohappy: but I don't have the solution with code...
05:24:06 jef: giohappy: double clicking on the setLocation message doesn't take you to code?
05:24:25 giohappy: jef: wow!!!
05:24:31 giohappy: jef: yes ;- )
05:24:37 jef: giohappy: F9 sets a breakpoint.
05:25:11 giohappy: jef: i'm there
05:25:21 giohappy: fej: it stopped, now I go step by step
05:43:24 giohappy: jef: the crash happens at grassselect.cpp 415
05:43:45 giohappy: jef: level = Vect_open_old_head( &map, ( char * ) mapName.toAscii( ).data( ), ( char * ) mapset.toAscii( ).data( ) );
05:44:02 giohappy: jef: 'Invalid parameter passed to C runtime function'
05:47:59 giohappy: jef: mmm, it doesn'tjef: I correct myself, it doesn't depend on the minus sign
05:48:23 giohappy: it happens always, at the moment it tries to access the vectors, to list them
05:56:27 giohappy: jef: the struct Map_info map seems corrupted. the 'name', 'mapset', 'location' and 'name' members are corrupted pointers
06:00:26 sigq: tracfeed: Ticket #1614 ( bug created ): Query Builder closes after query <https://trac.osgeo.org/qgis/ticket/1614>
06:02:53 gypsymauro: timlinux: is not exaclty what I mean.. : I want to click on the feature and then open a form ( made by qtidesigner or something ) that retrieves data from a database ( postgrewsl or mysql or.. )
06:04:00 gypsymauro: timlinux: so something like : click on feature -> run a script with as parameter feature id : )
06:04:15 jef: gypsymauro: check out actions.
06:04:45 spacedman: gypsymauro: or write a new QgsMapTool
06:07:39 jef: giohappy: where is Vect_open_old_head called after setLocation? and does it load the right grass dlls? that's also in the debugger output.
06:08:08 cfarmer: gypsymauro: sounds like you're looking for a table join... and in that case, it's not possible yet, but it's on the todo list ;- )
06:08:51 jef: gypsymauro: or something like evis ( http://biodiversityinformatics.amnh.org/open_source/evis/index.php?mid=17 )
06:08:52 sigq: Title: The Event Visualization Tool ( eVis ) ( at biodiversityinformatics.amnh.org )
06:19:42 gypsymauro: jef: great!
06:24:46 giohappy: jef: I'm sorry jef, I can't see it...
06:25:58 gypsymauro: jef: it's almost what I search but it seems it works just with pics, : )I will study it thought
06:26:27 giohappy: when I reach Vect_open_old_head I loose the control over qgis... I don't know where to look for the infos you're asking
06:27:31 jef: giohappy: check the call stack.
06:29:50 giohappy: jef: I can view it until the step before Vect_open_old_head gets called
06:30:01 giohappy: it is inside grassplugin.dll
06:30:32 giohappy: when I do a step further
06:30:41 giohappy: it crashes, and the stack get cleaned up
06:36:48 giohappy: jef: look at this: http://yfrog.com/0hqgisdebugj
06:36:49 sigq: Title: ImageShack - Image Hosting :: qgisdebug.jpg ( at yfrog.com )
07:07:23 giohappy: http://yfrog.com/0hqgisdebugj
07:07:24 sigq: Title: ImageShack - Image Hosting :: qgisdebug.jpg ( at yfrog.com )
07:07:25 jef: giohappy: that's ok. map is filled by Vect_open_old_head. what about mapName and mapset?
07:07:40 giohappy: they're ok too
07:08:21 giohappy: I thought the 'not valid <Ptr>' was wrong...
07:08:30 giohappy: ( inside the map struct )
07:09:27 giohappy: so, it's a problem with parameters passed to a not clear C Runtime
07:09:37 giohappy: as this is the only message I receive
07:09:55 giohappy: do you compile with VC 2008 or 2005?
07:10:01 jef: 2008
07:10:26 giohappy: damn, I'm getting really mad with this :-/
07:10:51 giohappy: anyway, mapName and mapset are ok
07:26:58 giohappy: jef: when I ask for rasters, it doesn't call any grass function... so there could be a problem with libgrass_*.dll loading?
07:49:01 giohappy: jef: I will try to recompile grass plugin, maby I have had problems with lib exports... it's the only conclusion, because the grass DLLs work fine ( from inside grass )
07:58:04 macho: hi
07:58:30 dassouki: macho: my gf's house is flooding !! all your fault hydro engineers haha
07:58:43 macho: :D
07:59:00 macho: I deny any responsibility
07:59:20 dassouki: anyways she has a problem, her house's basement is flooding from all areas
07:59:23 dassouki: all 4 walls
07:59:25 dassouki: and from the bottom
07:59:33 dassouki: she has a pump, but man water doesn't want to stop going in
07:59:48 macho: does it come from rain and grouondwater
08:00:36 dassouki: welll what happens is that the ditches get frozen
08:00:40 dassouki: and water stays on top of them
08:00:52 dassouki: and around spring time the whole thing melts and all of a sudden u have a shit load of water that wants to go into ur house
08:01:51 macho: dassouki: where is she located?
08:06:06 dassouki: macho: new brunswick canada
08:07:05 dassouki: i think the problem is that the natural drainage is blocked
08:07:14 dassouki: so the water pools under her house
08:07:25 macho: and there are surely reasons for that - mostly "human" caused
08:08:13 dassouki: ya well now the issue is, does she raise the house, does she poor 6 inches on top of her basement or does she dig a big hole in front of her house to slow water movmemnt
08:20:17 macho: depends on how much water it really is
08:35:42 spacedman: or does she see it as an opportunity and open an aquarium?
08:53:52 jctull: cfarmer: ping
08:54:11 cfarmer: jctull: pong
08:54:19 jctull: how well do you know R?
08:54:33 jctull: is there a raster to vector conversion tool?
08:54:44 jctull: that you know of?
08:55:08 cfarmer: hmmm, well, you can convert a raster to a SpatialPixelsDataFrame, and then from that probably to a point layer...
08:55:21 cfarmer: you thinking raster to polygon?
08:55:21 jctull: ok, I'll stick with grass.
08:55:25 jctull: I was
08:55:35 cfarmer: yeh, not that I know of... hoas
08:55:44 jctull: your plugin has me reinvigorated on R
08:55:47 jctull: : )
08:57:00 cfarmer: excellent! Did you download the latest version... is it working for you?
08:57:15 jctull: do you have an update today?
08:57:23 cfarmer: yes
08:57:33 cfarmer: jctull: the adehabitat package has a getcontour function... might that help?
08:57:44 jctull: I'll look, thanks!
08:57:53 cfarmer: "Computes the Contour Polygon of a Raster Object"
08:58:05 jctull: That might be just right, thanks
08:58:26 jctull: cfarmer: same random error with the plugin...
08:58:48 jctull: How many clicks of the manageR plugin to get to the functional shell?
08:58:59 jctull: ( weak play on tootsie pop commercial, ca. 1970s )
08:59:27 jctull: Owl: 6 clicks... 6 clicks to get to the functional manageR shell
08:59:55 cfarmer: hehe... I remember those commercials.. so they can't be that old ;- )
09:00:16 jctull: well, they played a long time then... kiddo
09:00:50 cfarmer: ah I'm just a wee lad... but seriously... was it 6 tries? Man that's annoying... at least if it never worked I would have something concrete to work on... :-(
09:01:13 jctull: it was 6. No other changes. Just clicked, canceled out of dialog, clicked...
09:02:36 cfarmer: have you tried exporting your RHOME envionment variable first?
09:03:23 cfarmer: I don't know if that's the right terminology for a mac...
09:05:28 jctull: cfarmer: no. I was looking at that stuff the other day and had no luck working it out. .Renviron?
09:08:19 cfarmer: jctull: actually... that doesn't make sense, exporting the RHOME should only be a problem when installing... hmmm
09:08:22 jctull: running demo( rastermaps ) from adehabitat right now. You rock!
09:09:28 cfarmer: nice eh... I almost have it so that you can fully interact with the console ( as in, when it says hit enter, you hit enter and it does stuff ), but this requires running in a separate thread... and then when the user makes a plot... bad things happen...
09:09:37 : * cfarmer will brb
09:14:16 jctull: cfarmer: what format are rasters when you bring them into R? ( what function is used? )
09:35:10 wildintellect: jctull, rgdal
09:40:41 jctull: Is it a bug that qgis keeps a grass location open when starting a new project?
09:41:10 jctull: I would expect there to be no open grass location, despite the prior project having an open location.
09:44:40 jctull: cfarmer: I still have the strange problem where I have to run a command twice
09:45:43 jctull: after a paste command
09:48:42 cgs_bob: cfarmer: ping
09:50:55 cfarmer: cgs_bob: pong
09:51:01 : * cfarmer is back for a little while...
09:52:02 cgs_bob: cfarmer: I just updated to the latest manageR. just wanted to know what are the new features so I can test
09:53:41 cgs_bob: btw, when I hit enter, the cursor just blinks at me. if I hit space and enter, I get the error: Error in withVisible( ) : argument "x" is missing, with no default
09:54:00 cfarmer: cgs_bob: you should now be able to run demos...
09:54:40 cgs_bob: cfarmer: cool! I'll try it out
09:54:45 cfarmer: cgs_bob: yes, I'm looking at this now... I think it has something to do with jctull 's paste problem...
09:55:06 cfarmer: cgs_bob: if you really want a thrill, try the rgl demo... interactive 3-d graphics are a must!
09:56:12 cgs_bob: cfarmer: I just tried to do that...guess I don't have rgl on this machine. time to install : )
09:56:13 cgs_bob: brb
10:02:38 cgs_bob: cfarmer: rgl works great with manageR!
10:04:05 cfarmer: nice huh? it doesn't work so well if you have fancy wobbly windows and stuff, but yeh it looks pretty slick I think... just fixed the issue you mentioned above... will upload later tonight...
10:04:50 cfarmer: oh also, if you want to change the colour of the console to say green text on a black background a la matrix style... you can do this by adjusting the conf.ini file
10:07:12 cfarmer: ok, please play around, and I'll be back later to hear what went wrong... now I'm off to the circus...
10:12:14 cgs_bob: cfarmer: I'll check out the styles. have fun at the circus : )
10:29:17 lynx_r: