#QGIS IRC Log - 2009-04-10

For logs after Feb 3, 2007, all times are GMT-8. Prior logs are GMT-9.
Back to Logs
02:40:51 timlinux: morning all
02:40:51 timlinux: jachym: hi
02:58:10 jachym: hi timlinux
02:58:43 jachym: how do you going ?
03:03:23 timlinux: jachym: cool thanks
03:03:33 timlinux: thanks for the help getting pywps set yo
03:04:16 timlinux: set up
03:04:31 timlinux: I'm going to start writing my raster clip service this week
03:05:26 jachym: cool, we have to write the python-wps client!
03:05:45 jachym: I have something in javascript, porting it to python should not be complicated
03:17:58 timlinux: jachym: yeah that would be nice
03:18:13 timlinux: jachym: no doubt I will spam you with lots of questions next week :- )
03:18:25 jachym: : )
03:19:03 jachym: be aware: on monday, I'll be offline ;- )
03:19:34 timlinux: jachym: no worries
03:19:38 timlinux: is it a long weekend there?
03:20:00 timlinux: mon is a holiday here so Ill only start looking on tues probably
03:20:29 jachym: in czech r. we have holiday only on monday too
03:22:07 timlinux: south africa has holiday today and Monday
03:22:29 timlinux: any chance for more holidays they will always take it
03:53:41 arkygeek: hi timlinux
05:51:02 epifanio: hiya :- )
05:52:18 epifanio: anyone can give me an help to know how to use a cmake macro to add frameworks inside qgis dependancies ?
05:52:30 epifanio: i'm on osx
05:56:01 epifanio: that's my problem : the cmakelist.txt on linux -> http://dpaste.com/31296/ it is the code to have loaded the ossimplanet library ( compiled on linux using a standard path : /usr/local/lib )
05:56:02 sigq: Title: dpaste: #31296 ( at dpaste.com )
05:56:27 dassouki: epifanio: are u familiar with the qgis api, i might have a question for u
05:57:26 epifanio: on osx i've the needed ossimplanet library compiled as ossimplanet.framework so the previouse code don't find the needed library on osx , that's the error log http://dpaste.com/31295/
05:57:27 sigq: Title: dpaste: #31295 ( at dpaste.com )
05:57:56 epifanio: hi dassouki i'm a newbie on qgis api ... bit i can try
06:01:12 dassouki: epifanio: have u ever used qssnapper
06:01:34 dassouki: epifanio: i have to restart brb
06:19:58 dassouki: epifanio: back
06:21:03 epifanio: dassouki:hi, i never used qssnapper
06:21:10 dassouki: ooh k no problem
06:21:47 epifanio: but i'm the wrong one to ask about qgis api ... i had my first experience with them ... yrstarday
06:22:02 epifanio: maybe asking ... we can learn togheter ;- )
06:22:50 dassouki: no worries
06:31:28 dassouki: http://www.rentacoder.com/RentACoder/misc/BidRequests/ShowBidRequest.asp?lngBidRequestId=1140519 interesting bid if anyone is looking for work
06:31:30 sigq: Title: Rent A Coder - Create an Virtual terrain render engine with OpenSceneGraph ( at www.rentacoder.com )
06:35:04 FrankW: Is anyone looking to take on Greg Coat's task?
06:38:20 dassouki: FrankW: i know u are busy, i was wondering if there is a way to use qgssnapper in python. What i'm tryint to do is connect a point from a point layer to the nearest line of a line layer
06:39:20 FrankW: sorry, I'm not familiar with this aspect of qgis.
06:39:44 dassouki: no problem :D thank u for the responce :DD:
06:49:26 dassouki: http://i39.tinypic.com/5vu1s8.jpg <--- i would like to connect my centroids to the nearest road within a zone, any ideas on how to do it? using python and qgisapi perhaps ?
07:45:02 jef: FrankW: doesn't rig
07:45:22 jef: FrankW: doesn't ring a bell. what is the task?
07:45:56 FrankW: Greg wants someone to build a qgis project file for his set of jpeg2000 files for some US city and was willing to pay for it.
07:46:00 FrankW: I wondered if anyone was picking it up.
07:48:09 alan_s: howdy
07:48:16 : * jef wonders why he didn't see that mail
07:48:46 alan_s: i have a noob question in windows...i sortof closed my map legend side bar in qgis, how do i get it back?
07:52:08 cgs_bob_: alan_s: right click on the toolbar and click on Layers
07:52:45 alan_s: sweet
07:52:46 alan_s: : )
07:53:27 alan_s: i was super worried for a moment there: )..i gues i should have tried..anywhoo...back to it then: )
07:54:30 cgs_bob_: alan_s: cool! have fun with qgis : )
07:55:28 alan_s: lol..not sure how much fun work can be:P..but ill try...kick arse prog btw..i prefer the linux build, but since my drive is busted atm i have to do teh windows thing
07:57:59 cgs_bob_: alan_s: for me work is fun...especially when I have a bunch of fun lovin' geologists coworkers : )
09:25:18 : <_-Slash-_> yop
09:45:14 epifanio: jctull: hi
09:45:22 jctull: hello epifanio
09:45:32 epifanio: a question ... are you familiar with cmake
09:45:35 epifanio: +on osx
09:45:46 jctull: a bit
09:47:37 jctull: ask away and we'll see
09:49:09 epifanio: i'm tring to load ossimplanet inside qgis
09:49:33 epifanio: so i need to set an entry fro the ossimPlanet.framework
09:49:59 epifanio: i create a file : FindOssimPlanet.cmake
09:50:07 epifanio: i put it in the cmake dir
09:50:45 jctull: well, you already surpassed my knowledge. You are now the expert ; )
09:51:10 jctull: have you contacted William?
09:51:39 epifanio: :-( these the findOssimPlanet http://rafb.net/p/O6TPhs26.html then compile a plug-in that has these cmake file : http://rafb.net/p/5dvtPx37.html
09:51:40 sigq: Title: Nopaste - No description ( at rafb.net )
09:51:52 epifanio: i contacted him .. but no clue about cmake
09:52:30 epifanio: the configuration .. works a bit .. it compile find the includes file ... but fail to link the libraries
09:53:24 jctull: there might be an install_name_tool requirement, but I am just guessing here
09:53:50 epifanio: the " install_name_tool" is a realyy osx evil !
09:54:17 epifanio: it is a "guastatore"
10:12:10 jef: epifanio: I guess that should read LINK_DIRECTORIES( ${OSSIMPLANET_FRAMEWORK} ) instead of LINK_DIRECTORIES( ${OSSIMPLANET_LIBRARY} )
10:12:52 jef: epifanio: and either ossimPlanet or ${OSSIMPLANET_LIBRARY} in TARGET_LINK_LIBRARIES
10:39:28 gsherman: anyone have a password protected wms i can test against?
10:41:40 gsherman: ( i don't need the password )
11:01:07 epifanio: jef: i just come back right now
11:01:19 epifanio: i'll try your suggestion of course
11:01:23 epifanio: thanks!
11:09:00 jef: gsherman: are you on #1603?
11:09:17 gsherman: jef i was just poking around
11:09:19 gsherman: why?
11:09:21 gsherman: you?
11:12:25 jef: gsherman: I was not. I just remembered that bug report, when you asked. and I added .htaccess to an internal mapserver.
11:12:53 gsherman: ah, i went ahead and set up a service here to test against
12:32:17 springmeyer: hey gsherman
12:33:03 gsherman: springmeyer, hi
12:33:14 springmeyer: : )
12:33:25 springmeyer: gsherman: did you git repo address change for mapserver_export?
12:33:37 gsherman: i don't think so
12:33:41 gsherman: not working?
12:34:24 springmeyer: more likely I don't know how to use git : )
12:34:31 springmeyer: but ya I get 'connection refused'
12:34:33 gsherman: oh
12:34:39 springmeyer: lemme try a new clone thingy
12:35:34 springmeyer: $ git clone git://spatialserver.net/mapserver_export.git
12:35:34 springmeyer: Initialized empty Git repository in /Users/spring/hg/mapserver_export/.git/
12:35:34 springmeyer: spatialserver.net[0: 69.93.210.82]: errno=Connection refused
12:35:34 springmeyer: fatal: unable to connect a socket ( Connection refused )
12:36:01 gsherman: hmm
12:36:38 springmeyer: hmm, snapshot download works, weird
12:37:48 : * springmeyer goes to try from another machine
12:38:16 gsherman: try now
12:38:21 gsherman: git daemon was down
12:38:51 springmeyer: ah, lovely : )
12:38:53 springmeyer: thank you
12:39:24 gsherman: no problem, not sure why it was down
12:39:49 springmeyer: gsherman: what is the code relation between the core export functionality in your standalone tool
12:39:56 springmeyer: vs the qgis plugin?
12:40:24 springmeyer: ie, can you pretty much move the export script between them when you update one?
12:41:08 : * springmeyer admits he has not looked at the source for the plugin, but would be happy to get pointed in the right direction
12:44:56 springmeyer: hmm, me fingers type hg st when me thinks git status
12:45:29 gsherman: springmeyer, there is some difference between the two but it escapes me at present : )
12:45:50 springmeyer: ah, okay, that works for me : )
12:46:38 springmeyer: gsherman: okay, last one... : )
12:46:41 timlinux: hi all
12:47:01 timlinux: is this a git howto session?
12:47:11 gsherman: git-howto
12:47:11 : * timlinux is curious to learn git some day
12:47:25 : * timlinux has been called a hairy git a few times
12:47:28 springmeyer: have you ever considered writing the mapfile using the qgis python bindings to directly ask QGIS about the map and layer elements?
12:47:44 springmeyer: ( obviously only relevant for a non-standalone tool )
12:48:03 : * timlinux goes to read the log
12:48:06 gsherman: springmeyer, you mean for the loaded layers, not a saved project file?
12:48:14 gsherman: timlinux, hi, won't find much in the log : )
12:48:18 springmeyer: I guess I'm curious if the python bindings have enough introspection power for that to be possible
12:48:25 springmeyer: gsherman: ya, exactly
12:48:50 gsherman: i haven't thought about it since python bindings came about, before that it was uglier than i wanted to deal with
12:48:55 gsherman: may be possible nwo
12:48:57 gsherman: er now
12:49:16 springmeyer: ah, gocha, so you wrote things before the bindings....
12:49:23 gsherman: yes
12:49:32 springmeyer: I see, good context
12:49:38 gsherman: and then never looked back, as usual
12:49:44 springmeyer: : )
12:49:51 : * gsherman goes to tend to his Fortran IV code...
12:49:57 springmeyer: !
12:50:43 springmeyer: okay, well thanks for the info sir
12:51:08 timlinux: springmeyer: what's going to be new in ( geo )django 1.1?
12:51:53 gsherman: qgis i hear
12:51:53 springmeyer: sqlite support, cool aggregate queries, wicked slicing of geos geometries, bugs no mas
12:52:03 springmeyer: : )
12:52:36 timlinux: what is geometry slicing?
12:52:50 gsherman: illegal in most countries
12:52:52 : * timlinux is envisaging a guy with a chainsaw
12:53:08 timlinux: springmeyer: sqlite or spatialite?
12:53:12 springmeyer: http://code.djangoproject.com/ticket/9877
12:53:13 sigq: Title: #9877 ( More Pythonic mutations of geometry objects ) - Django - Trac ( at code.djangoproject.com )
12:53:15 springmeyer: spatiallite
12:53:20 timlinux: nice
12:53:46 springmeyer: mapnik just added sqlite backend too, everybodies do'in it : )
12:54:32 : * gsherman has to go --
12:54:35 timlinux: yeah we will have it in 1.1 too
12:54:40 timlinux: gsherman: fader
12:54:41 springmeyer: see ya
12:55:03 gsherman: be back in a couple hour
12:55:12 wildint: I was dreaming of a mapnik plugin for qgis this morning
12:55:33 timlinux: wildint what would it do - beautifully rendered maps?
12:56:33 wildint: yes
12:56:51 wildint: basically make it easy to take what you see in qgis and produce a beautiful map
12:57:17 wildint: very similar in concept to the mapserver export
12:57:49 wildint: I was just reading mapnik docs this morning and drooling over possibilities
12:57:58 jef: timlinux: do you know how martin's work will compare with mapnik?
12:58:26 springmeyer: wildint: I don't believe you - what mapnik docs? : )
12:58:29 timlinux: jef: I don't really know mapnik other than seeing some osm renders
12:58:39 jef: timlinux: me neither.
12:58:55 wildint: springmeyer, http://www.mapnik.org/documentation/
12:58:56 sigq: Title: Mapnik C++/Python GIS Toolkit | Documentation ( at www.mapnik.org )
12:58:58 timlinux: springmeyer: == the mapnik guru no?
12:59:46 springmeyer: he he
13:00:11 wildint: I think the primary difference between a mapnik export and upgrades to qgis map making is the end goal - mapnik for on the fly tile production for wms
13:00:54 springmeyer: actually mapnik is a library and knows nothing about what a tile is
13:01:28 springmeyer: or wms
13:03:17 wildint: but it get's used to produce tiles
13:05:22 springmeyer: right, sorry to be an ass. so you're just saying the reason you would export to mapnik is to ultimately make tiles? or no?
13:05:47 wildint: well to generate the images that go into a tilecache
13:06:09 wildint: yes in the short term I was thinking of making some paper maps with it too
13:06:10 springmeyer: cuz when I think of a good looking map I think of a single large render
13:07:00 timlinux: does mapnick read sld?
13:07:15 wildint: I don't think so
13:07:15 springmeyer: does qgis have support for custom annotation/ manual labeling?
13:07:27 timlinux: springmeyer: kinda
13:07:48 wildint: I'll be honest I do that in inkscape right now
13:07:58 timlinux: springmeyer: you can specify x,y fields in your db that define labelplacement
13:08:00 springmeyer: mapnik's xml format smells of sld but is much more concise in places and much more verbose in others...
13:08:03 springmeyer: ie label placement
13:08:14 springmeyer: okay, thx
13:09:00 springmeyer: ya, i was thinking if qgis could do on the fly annotation ( in mem datasource + WYSIWYG labels on layou )...
13:09:28 springmeyer: then serializing that to mapnik xml would greatly benefit mapnik community/map making
13:09:33 wildint: springmeyer, yes a single large render at high enough dpi would provide the image to be broken up and tiled
13:09:48 timlinux: springmeyer: we can't do all the nifty line following etc stuff that I think you do in mapnik
13:09:57 wildint: yet
13:10:21 springmeyer: timlinux: ya that will be cool to add to qgis
13:10:25 timlinux: well even with the integration of PAL we still won't get that
13:10:36 springmeyer: oh?
13:10:48 timlinux: pal is a placement alg
13:10:56 timlinux: but it works with bounding boxes
13:10:57 springmeyer: but as far as line-based labeling in a qgs2mapnik export would be easy to assume that if the geometry is line
13:11:06 springmeyer: okay, bummer
13:11:12 timlinux: so it finds the best place to place a label based on its bb
13:11:41 timlinux: but of the best place is along a curve, we need to write some logic to tell the label to follow the curve
13:11:51 timlinux: which may change its bb
13:11:53 timlinux: and so on
13:12:09 timlinux: s/but of/but if/ above
13:12:23 springmeyer: gocha
13:12:33 springmeyer: ya, across layers too : )
13:12:47 timlinux: it does do some neat stuff like working across layers
13:12:59 timlinux: and priorities
13:13:24 springmeyer: okay, great
13:14:18 timlinux: what is mapnick render performance like? the emphasis is more on quality than speed right?
13:15:39 springmeyer: generally yes. there is a lot of focus in general and of late on performance with large result sets
13:15:52 springmeyer: since OSM rendering is a key target
13:16:16 springmeyer: but yes, the symbolization stuff is more expensive the better it works
13:16:35 springmeyer: and the priority there is the way it looks/works
13:17:11 springmeyer: makes sense given that no matter how ber fast your renderer is
13:17:19 : * timlinux is wondering what would happen if we swapped out qgis / qt renderer for mapnik
13:17:21 springmeyer: ber/über
13:17:48 springmeyer: you are still going to serve pregenerated map tiles
13:17:50 timlinux: for vector data anyway
13:17:59 springmeyer: for stuff such as OSM
13:18:17 springmeyer: swapped renderer is an interesting idea
13:18:35 wildint: timlinux, I was pondering that too, or just a different rendering engine, not sure what inkscape uses
13:18:55 timlinux: wildint I guess some gnome thing like cairo
13:19:07 wildint: maybe we could let people turn on and off which one they want
13:19:12 springmeyer: timlinux: have you seen the QT mapnik viewer?
13:19:13 timlinux: ya
13:19:20 springmeyer: k
13:19:21 timlinux: springmeyer: nope?
13:19:27 : * timlinux googles
13:19:34 springmeyer: http://trac.mapnik.org/wiki/MapnikViewer
13:19:35 sigq: Title: MapnikViewer – Mapnik Wiki & Documentation – Trac ( at trac.mapnik.org )
13:19:39 springmeyer: QT4
13:22:12 timlinux: springmeyer: intriguing
13:22:32 wildint: timlinux, "Currently we use our own renderer called livarot. We plan to migrate to Cairo when it is mature enough. In 0.46, Cairo is already used for Outline mode. "
13:22:52 wildint: info on inkscape...
13:22:56 timlinux: wildint ah
13:23:48 springmeyer: what is the best references for learning the python api to qgis?
13:24:38 wildint: springmeyer, the existing python plugins
13:24:41 springmeyer: any any tricks for playing with it...
13:25:21 wildint: http://doc.qgis.org/ does a good job once you learn to read it
13:25:40 wildint: I mostly go off things I've seen in existing plugins
13:25:44 springmeyer: wildint: okay, is there a good plugin example that interfaces with layers and their styles?
13:26:14 timlinux: springmeyer: the modules section there I have tagged every class that belongs to core or gui
13:26:29 : * springmeyer currently looking at that : )
13:26:29 timlinux: which are the classes that have python bindings
13:26:31 springmeyer: thx!
13:26:46 wildint: springmeyer, maybe symbology-ng
13:27:09 timlinux: springmeyer: there are a couple of pages on http://blog.qgis.org under that python tuts
13:27:11 sigq: Title: Quantum GIS Blog | Dev-Speak and other QGIS Ramblings... ( at blog.qgis.org )
13:27:22 timlinux: there used to be some that showed how to create symbologies
13:27:48 springmeyer: cool
13:28:10 wildint: I checked the symbology-ng definately has some of what you want
13:28:50 wildint: from Martin's repo
13:30:01 timlinux: yup though it may also be using accompanying changes to the api?
13:30:34 springmeyer: cool, great resources
13:30:52 springmeyer: one simple noobie one...
13:31:13 springmeyer: what is in scope when using the Python Console in qgis?
13:31:28 wildint: oh ya the manual has good how to start a plugin
13:31:38 wildint: springmeyer, I think anything in the api is game
13:31:39 springmeyer: ie. 'iface' clearly is as mentioned in the little usage example...
13:31:54 timlinux: springmeyer: iface is the plugin interface
13:32:03 springmeyer: k
13:32:27 springmeyer: oh oh
13:32:28 springmeyer: cool
13:32:37 : * springmeyer just remembered that you can call
13:32:49 springmeyer: >>> dir( ) # with no arguments and get the whole shebang
13:33:01 timlinux: for a class?
13:33:01 : * springmeyer feels stupid now that he kept typing
13:33:09 springmeyer: >>> QgisMapLayer
13:33:12 springmeyer: : )
13:33:34 springmeyer: everything in scope
13:33:41 timlinux: QgsMapLayer
13:33:47 springmeyer: lol
13:33:54 timlinux: :- )
13:34:05 : * springmeyer considering renaming parts of mapnik core to mapnk
13:34:20 springmeyer: keep the dumb folks out like me : )
13:35:17 timlinux: springmeyer: we should have had you at our hackfest
13:35:17 timlinux: :- )
13:35:40 timlinux: springmeyer: how about coming along to vienna and hacking on a mapnik renderer swap in
13:38:13 springmeyer: that would rock
13:38:47 : * springmeyer is in seattle so maybe racicot and I could tele in : )
13:43:49 timlinux: springmeyer: yeah we thought about having a cross continent hackfest with 2way video stream
13:45:14 springmeyer: so in the python console are all object instances available through the 'iface' variable?
13:50:14 springmeyer: hmm, links doe seem to work off of: http://mapserver.sk/~wonder/qgis/plugins-sandbox.xml
13:52:12 springmeyer: ah ha.
13:52:26 springmeyer: >>> iface.mapCanvas( ) # thats what I was looking for
13:53:07 timlinux: springmeyer: I forgot to mention I haven't used the qgis python bindings much
13:53:19 timlinux: wildint or others here can probably help more
13:53:37 springmeyer: okay. gocha
13:53:58 timlinux: springmeyer: you may be interested in the maplayerregistry too
13:54:01 springmeyer: that was my in... now I can play a bit later
13:54:03 springmeyer: okay
13:54:05 timlinux: its a registry of all layers
13:54:14 springmeyer: great
13:54:19 timlinux: and the qgssinglesymbolrenderer
13:54:25 : * springmeyer time to head out.
13:54:25 timlinux: unque renderer
13:54:27 timlinux: etc
13:54:31 springmeyer: thanks for your time guys
13:54:31 timlinux: ok cya!
13:54:38 timlinux: our pleasure :- )
13:54:42 springmeyer: !
22:36:08 sigq: tracfeed: Ticket #1315 ( bug closed ): "Actions" in qgis do not work on MS windows <https://trac.osgeo.org/qgis/ticket/1315#comment:7>
22:45:06 : <_-Slash-_> yo