#mapnik log: Wednesday 08, April 2009

2009 | 04

previous | next
00:04:06 <nikq> Mapnik Trac: Filter edited | http://trac.mapnik.org/wiki/Filter?version=7
00:15:00 <nikq> Mapnik Trac: Ticket #119 (Case insensitivity with Field name lookup in Symbolizers) updated | http://trac.mapnik.org/ticket/119#comment:3
00:16:52 *** rcoup has quit ()
00:17:04 *** artem has parted #mapnik ()
00:22:46 *** ortelius has quit ("ChatZilla 0.9.84 [Firefox 3.0.8/2009032609]")
00:26:06 <nikq> Mapnik Trac: Ticket #198 (Allow configuration of JPEG quality) closed | http://trac.mapnik.org/ticket/198#comment:4
00:27:37 <nikq> Mapnik Trac: Changeset [1082]: update docstrings based on jpeg quality controls (#198) | http://trac.mapnik.org/changeset/1082
00:30:50 <nikq> Mapnik Trac: Ticket #291 (make build fails due to -lagg not being found) closed | http://trac.mapnik.org/ticket/291#comment:7
00:47:37 *** weizhuo (n=chatzill@nat/yahoo/x-c51bd154059b6ae8) has joined #mapnik
01:01:22 *** rcoup (n=rcoup@ip-58-28-159-166.static-xdsl.xnet.co.nz) has joined #mapnik
01:39:23 <nikq> Mapnik Trac: MapnikInstallation edited | http://trac.mapnik.org/wiki/MapnikInstallation?version=10
01:39:54 <nikq> Mapnik Trac: MapnikInstallation edited | http://trac.mapnik.org/wiki/MapnikInstallation?version=11
02:20:19 *** weizhuo has quit ("ChatZilla 0.9.84 [Firefox 3.0.8/2009032609]")
02:24:58 *** ser has quit (Read error: 110 (Connection timed out))
02:53:55 *** ser (n=ser@sergiusz.pawlowicz.name) has joined #mapnik
04:00:17 <nikq> Mapnik Trac: Ticket #297 (Improve auto-detection of boost libs/includes) created | http://trac.mapnik.org/ticket/297
05:04:44 *** rcoup has quit ()
05:39:11 *** jbronn_ (n=jbronn@70-138-113-15.lightspeed.hstntx.sbcglobal.net) has joined #mapnik
05:40:25 <nikq> Mapnik Trac: Ticket #298 (Support Proj4 init cache) created | http://trac.mapnik.org/ticket/298
05:50:45 *** jbronn has quit (Read error: 110 (Connection timed out))
06:14:59 <CIA-6> mapnik-utils: dane.springmeyer * r634 /trunk/nik2img/ (CHANGELOG.txt nik2img.py):
06:15:00 <CIA-6> mapnik-utils: dane.springmeyer * r635 /trunk/nik2img/CHANGELOG.txt:
06:15:00 <CIA-6> mapnik-utils: dane.springmeyer * r636 /trunk/nik2img/ (deploy.py setup.py):
06:15:01 <CIA-6> mapnik-utils: dane.springmeyer * r637 /trunk/nik2img/deploy.py:
06:18:58 <CIA-6> mapnik-utils: dane.springmeyer * r638 /tags/nik2img/ (nik2img-0.2.4.tar.gz 0.2.4/deploy.py 0.2.4): tag nik2img 0.2.4 (fixes distribution problem when installed from pypi with easy_install)
08:22:17 *** _Dennis_ has quit (Remote closed the connection)
08:49:56 *** xcacou (n=aga@vel78-2-82-243-106-36.fbx.proxad.net) has joined #mapnik
08:57:21 *** epifanio (n=chatzill@host227-195-dynamic.6-87-r.retail.telecomitalia.it) has joined #mapnik
08:58:42 <epifanio> hi all
08:58:55 <epifanio> i'm compiling mapnic on osx
09:01:38 <epifanio> i used these port instrucyions :  sudo port install icu jam boost +python25 +icu cairo cairomm py-cairo
09:02:36 <epifanio> then i modified the SConstruct file to : http://rafb.net/p/oWu6H544.html
09:03:38 <epifanio> now to add optional libs in the Sc can i add postgis, gdal
09:03:47 <epifanio> hoopss ...
09:04:08 <epifanio> now to add optional libs in the SConstruct file
09:04:23 <epifanio> like ..   opts.Add(PathOption('PGSQL_INCLUDES',...
09:04:48 <epifanio> at which line of the file i need to add these instruction ?
09:15:47 <epifanio> ... how to add cairo pycairo in the build ?
09:20:20 *** aura (n=wolf@cpe-67-49-133-78.hawaii.res.rr.com) has joined #mapnik
09:22:24 *** w0lfie_ has quit (Read error: 60 (Operation timed out))
09:58:09 *** _Dennis_ (n=dennis@irafs1.ira.uni-karlsruhe.de) has joined #mapnik
10:02:09 *** _Dennis_ is now known as _Dennis
10:47:20 <ser> wms.py is leaking :-(
11:57:29 <johto> has anyone built mapnik using visual studio?
12:00:16 <epifanio> any one on mac too ? ... i'm having problem with gdal .. the build ends withou errors but seems that gdal is not loaded  :  http://rafb.net/p/4YpNjp50.html  help
12:01:38 <epifanio> hummm maybe  i need to change in scontruct (line 124 in the paste)  .. from false to True ...
12:04:26 <ser> sorry chaps, no window$, no maco$
12:05:21 <epifanio> ahh ok i find maybe a solution, in config.py  i added :  INPUT_PLUGINS = 'gdal,ogr,postgis,raster,shape,sqlite'
12:05:40 <epifanio> now building .. and see if it load gdal :-)
12:07:16 <epifanio> it works :-)  http://rafb.net/p/mKcQ1O62.html
12:08:09 <epifanio> a question ... any clue about osm2pgsql ?
12:08:31 <epifanio> i need to compile it from source ?  or it is included in mapnik ?
12:11:25 <epifanio> any clue ?
12:11:38 <epifanio> i'm really intersted in osm2pgsql :-9
12:14:16 *** jbronn_ is now known as jbronn
12:18:29 <epifanio> but building it from source i had some erros :-(
12:18:35 <epifanio> *errors
12:19:03 <epifanio> i'll try to document the build .. maybe some one with unix-build experience can help me, thanks!
12:25:07 <ser> it works perfectly, it is not included
12:25:31 <ser> there is no experience needed, just "make"
12:26:34 <epifanio> yes i know ... the make give me errors
12:26:39 <ser> please mention you need postgres headers
12:27:02 <ser> eg. postgresql-dev package
12:27:03 <epifanio> i'll document the log ... maybe it search the pg headers in a wrong place
12:27:08 <epifanio> i'm on osx
12:27:34 <epifanio> pg headers are in /usr/local/pgsql/include
12:27:53 <ser> so check your makefile?
12:28:46 <ser> btw, i am sure on your hadware you can run linux with a mapnik out-of-the-box ;-)
12:29:20 <epifanio> i've dualboot on linux it works
12:29:32 <epifanio> :-)
12:30:08 <ser> sok, i have mac as well but not for a server purposes
12:30:46 <epifanio> i need to "serve"  locally maps needed by a gis application
12:30:52 <ser> i do not have time to play with these crappy packages
12:31:16 <ser> imho workstation is not enough to be a good server as well
12:31:38 <ser> i prefer client-server solutions
12:31:40 <ser> ;)
12:33:10 <epifanio> can i change CFLAGS += $(shell geos-config --cflags)  to a "full path" like :  CFLAGS += /usr/local/.../geos-config  etc.. ??
12:34:23 <ser> rather INCLUDE
12:36:39 <epifanio> these the makefile http://rafb.net/p/RRzOAk44.html  where can i change the include path ?
12:38:23 <epifanio> ok changing to : CFLAGS += $(shell /Library/Frameworks/GEOS.framework/Versions/3/Programs/geos-config --cflags)
12:38:50 <epifanio> fix the geos problem .. now i need to che where to set the proj include files
12:39:46 <epifanio> maybe : from LDFLAGS += -g -lproj   to :  LDFLAGS += -g -L/path/to/proj/lib   ?
12:40:07 <ser>  /j macosx ;-)
12:40:15 <epifanio> hehe ...
12:40:18 <epifanio> ok ;-)
12:40:30 <epifanio> sorry :-/
12:41:07 <ser> no problem, i prefer to have packages built by smartest than me
12:41:52 <ser> not to re-invent the wheel
12:42:56 <epifanio> ohhh ... looks like the needed weel is missed on osx-mapnic side
12:48:27 <epifanio> ok done :-) : http://rafb.net/p/vwE1zD62.html
12:49:13 <epifanio> build fine now, thanks for any  help
13:07:09 <ser> :)
13:10:21 <epifanio> i'm importing right now the italy.osm data into postgis :-)
13:10:27 <epifanio> i'm happy!!!
13:15:51 <ser> how big is your RAM?
13:24:43 <epifanio> works fine :-) !!! i loaded the data into qgis right now
13:24:55 <epifanio> i'm on 2.33ghz 2gb ram
13:26:37 *** sanjiv (n=sanjiv@59.180.142.38) has joined #mapnik
13:39:41 <ser> i am trying to load EU+north africa and it takes 24h
13:40:19 <ser> but probably italy is much much smaller
13:41:44 <epifanio> ohh yes of corse it its .osm is 600 mb
14:40:36 *** wonxly (n=brian@49.165.189.72.cfl.res.rr.com) has joined #mapnik
14:43:20 *** wonxly has parted #mapnik ()
14:44:24 *** sanjiv has quit (Connection timed out)
14:46:23 *** sanjiv (n=sanjiv@59.180.155.21) has joined #mapnik
14:46:27 <springmeyer> hey epifanio: hacking on Mapnik again I see :)
14:47:03 <springmeyer> epifanio: glad you found the option to turn on gdal plugin
14:47:36 <springmeyer> you should never have to hack the SConscript
14:49:32 <springmeyer> regarding cairo/pycairo - you figure it out yet?
14:49:57 <springmeyer> cairo/cairomm/pycairo are all configured inside SCons via pkg-config
14:50:41 <springmeyer> so if it is not picked up automatically you need to modify the PKG_CONFIG_PATH variable for your user/system environment
14:55:52 <nikq> Mapnik Trac: UsingScons edited | http://trac.mapnik.org/wiki/UsingScons?version=16
14:56:12 <nikq> Mapnik Trac: UsingScons edited | http://trac.mapnik.org/wiki/UsingScons?version=17
15:04:14 <epifanio> hi springmeyer :-)
15:04:22 <springmeyer> hey :)
15:04:33 <epifanio> just come back to home ..
15:04:43 <epifanio> i modified a bit the make file
15:05:05 <springmeyer> btw, epifanio: its impossible to see your changes to SConscruct unless they are in diff/patch form :)
15:05:08 <epifanio> now i need to set pkg_config to have pycairo
15:05:19 <epifanio> yes of course
15:05:26 <springmeyer> are you working from cairo/pycairo framework?
15:05:42 <springmeyer> also, how did you install boost?
15:06:05 <epifanio> no i used port to have bost installed , i treid a source installation of boost too .. but it dosen't
15:06:20 <epifanio> wok .. so i swiitched to port for boos
15:06:24 <epifanio> *boost
15:06:48 <epifanio> i used cairo from port too... but i can easy try to use the framewroks too
15:07:21 <springmeyer> okay, I see
15:07:46 <springmeyer> epifanio: reason I am asking is that there is a boost bug with macports right now
15:07:54 <springmeyer> but it seems you've not hit it :)
15:08:04 <springmeyer> epifanio: cairo from port is great
15:08:19 <springmeyer> epifanio: what python version are you running, how did you install?
15:08:54 <springmeyer> ser: I await your mem leak patch for the ogc server :)
15:10:22 <epifanio> i'm using the system python (Leopard python) these the diff to Sconstruct : http://rafb.net/p/TlPyPX68.html
15:11:35 <epifanio> wile these the makefile i used to compile osm2pgsql :  http://rafb.net/p/klR3Fi29.html
15:11:40 <springmeyer> :) okay
15:11:49 * springmeyer chuckles
15:12:36 <epifanio> do you have any experience using a source installation for boost ?
15:12:36 <springmeyer> cool, ya re: the osm2pgsql makefile all I've needed to change were the proj stuff
15:12:48 <springmeyer> geos-config you can put on your default path and then it will be found
15:13:02 <epifanio> yes it is
15:13:16 <epifanio> in the future i'll hope to avoid port or fink :-/
15:13:38 <springmeyer> huh, and its not found, thats odd
15:13:46 <springmeyer> epifanio: so boost...
15:13:54 <springmeyer> yes I have installed from source and from macports
15:14:13 <springmeyer> if the macports install is not conflicting with your PYTHON version, then you should be fine
15:14:22 <springmeyer> (but I'm not sure why it isn't)
15:14:41 <epifanio> what's the procedure to have it running from source (boost) i compiled it without errors but i can't have it detected form manik
15:15:04 <springmeyer> okay, I can help with that...
15:15:16 <springmeyer> just FYI on boost from macports: http://trac.mapnik.org/wiki/InstallationTroubleshooting#PythonVersionMismatch
15:15:29 <epifanio> springmeyer: i'm ready to any kind of test to see if all works fine
15:15:51 <springmeyer> okay, so from source likely went into '/usr/local/' ya?
15:15:55 <springmeyer> so do:
15:16:06 <epifanio> you refer to boost ?
15:16:08 <springmeyer> $ ls -l /usr/local/lib/libboost*
15:16:11 <springmeyer> ya
15:16:13 <epifanio> ok
15:17:42 <springmeyer> past that result
15:17:55 <epifanio> just a sec, i'm restoring it
15:18:10 <springmeyer> epifanio: the key is likely that you'll need to specify BOOST_TOOLKIT='xggc40'...
15:18:13 <epifanio> i deleted the mak-install files .. so to avoid any conflict
15:18:24 <springmeyer> but this paste will let me know
15:18:54 <springmeyer> epifanio: this is my 'config.py' for python 26 and boost 1_37 from source:
15:18:55 <springmeyer> http://dpaste.com/30161/
15:18:56 <ser> springmeyer: i do not know what exactly is leaking, so probably it is simpler to restart fcgi each 1000 req
15:19:27 <ser> but is it only my server leaking?
15:19:41 <springmeyer> i doubt it
15:19:54 <epifanio> restoring bosst source installation and paste the results of $ ls -l /usr/local/lib/libboost*
15:20:15 <springmeyer> ser: I don't think the OGC Server has seen much production use yet
15:20:19 <ser> so nobody uses it? :-)
15:20:59 <springmeyer> ser: because the OGC Server did not support loading of XML (until the release last week) few have stuck with it
15:21:13 <ser> ok, i can understand now
15:21:37 <ser> my 64G server is due in next 10 days!
15:21:44 <springmeyer> cool :)
15:22:09 <ser> i gave up with using my old one, it is too much stressful
15:23:05 <ser> btw, one question if i can:
15:23:06 <ser> gis=> CREATE UNIQUE INDEX planet_osm_roads_id_idx ON planet_osm_roads ( osm_id );
15:23:06 <springmeyer> epifanio: fyi also on macports: http://trac.macports.org/ticket/19114
15:23:09 <ser> ERROR:  could not create unique index "planet_osm_roads_id_idx"
15:23:12 <ser> DETAIL:  Table contains duplicated values.
15:23:26 <epifanio> these the line i used to compile boost  :
15:23:28 <epifanio> bjam --toolset=darwin   --with-thread --with-filesystem --with-iostreams   --with-regex --with-program_options --with-python   --with-system stage   --architecture=x86 --address-model=64 --with-system stage
15:23:42 <ser> is it normal this table has duplicated values after an initial planet import?
15:23:43 <springmeyer> sounds like you've got some duplicated values :)
15:24:07 <springmeyer> ser: does not surprise me
15:24:10 <epifanio> a copy paste error ;-)
15:24:28 <ser> ok so is it safe just to remove duplicates?
15:24:39 <springmeyer> ser: I'd ask more on #osm-dev about how to detect/remove
15:24:52 <ser> springmeyer: ok, thanks
15:25:20 <springmeyer> fixing problems in the osm database is an art I'm no expert at, but it would be good to understand if this might be an osm2pgsql issue or really some cruft from the actual planet dump
15:25:51 <springmeyer> and whether it matters to upstream or whether you just need to delete some dumps and go on your way
15:26:06 <springmeyer> in other words, let me know what the answer is :)
15:26:22 <ser> writing #osm-dev you mean IRC or a list?
15:26:42 <springmeyer> epifanio: going 64 bit huh?
15:26:51 <epifanio> yes
15:27:21 <springmeyer> I was thinking IRC, but irc is on irc.oftc.net not freenode
15:27:59 <ser> ok, i've got it
15:28:01 <springmeyer> epifanio: I don't recommend it, because python is no running 64 bit and boost needs to link against it
15:28:02 <ser> thanks
15:28:38 <springmeyer> oh ser: or just #osm - seems thats were there is more discussion
15:29:44 <epifanio> ahhh gulp! it is true .... so i have to recompile it :-( ... it needs some time to do ;-)
15:30:47 <epifanio> hiwever these is the ls output :
15:31:01 <epifanio> http://dpaste.com/30172/
15:31:16 <springmeyer> okay, for reference here are my build notes: http://trac.mapnik.org/wiki/MacInstallationSource#InstallBoost
15:31:51 <epifanio> now i'll remove the istalled stuf from usr/local  and use fresh boost-source to recompile it
15:32:02 <springmeyer> okay
15:32:51 <springmeyer> $ python scons/scons.py BOOST_INCLUDES=/usr/local/include/boost_1_38 BOOST_LIBS=/usr/local/lib BOOST_TOOLKIT=xgcc40
15:33:09 <springmeyer> epifanio: once you've rebuilt that is what you'll need ^^^
15:33:13 <ser> crschmidt > ser: Relations often turn into multiple roads
15:33:19 <epifanio> ahhh that't what i missed :-)  cool!!!
15:33:46 <epifanio> i'll try it of course after get  boost compiled
15:33:48 <springmeyer> ah cool, and crschmidt knows his stuff
15:33:53 <ser> springmeyer: so it is impossible to create an unique index on roads, lines and points tables
15:34:12 <springmeyer> okay
15:34:37 <springmeyer> I've done it but I guess not in places where there were many relations :)
15:34:48 <ser> the question is is it worth to create an oridnary index fro a mapnik purposes?
15:35:20 <ser> (instead of unique)
15:35:35 <springmeyer> good question for the mailing list i figure
15:35:42 <springmeyer> (mapnik-users)
15:35:51 <ser> ok.
15:50:39 * epifanio .. is happy to have mapink using boost form source !
15:51:10 <epifanio> during the build i'll try to see how to use the gtk-famework for cairo
15:53:03 <epifanio> springmeyer: the only way to setup cairo is using pkgcongig ?  or we can use a stasndard  /lib .. /include  path ?
15:53:10 <epifanio> *f
15:53:32 <springmeyer> no, only through pkg-config
15:53:57 <epifanio> ok .. boost is istalled
15:53:59 <springmeyer> so put the /opt/local/bin on your path
15:54:00 <springmeyer> cool
15:54:10 <springmeyer> or set the PKG_CONFIG_PATH variable
15:54:11 <epifanio> using yout config option :-)
15:54:16 <springmeyer> nice
15:54:37 * springmeyer hopes epifanio reworks this then: http://trac.mapnik.org/wiki/MacInstallationSource#InstallBoost
15:54:45 <springmeyer> with those options as examples ^^^^ :)
15:55:29 <epifanio> now i'll try to change th SConstruct to point to the nes boost ? or the scons command line overraid it ?
15:55:56 <epifanio> i used that page, it worked fine, i only used .38 instead of 35
15:56:53 <springmeyer> right, update it to .38 if you will
15:57:09 <springmeyer> epifanio: SCons command line options OVERRIDE
15:57:12 <epifanio> these the ls paste : http://rafb.net/p/w1jim717.html
15:57:15 <epifanio> ah ok :-9
15:58:44 <epifanio> i'm using these line :
15:58:46 <epifanio> python scons/scons.py DEBUG=y GDAL_LIBS=/Library/Frameworks/GDAL.framework/Versions/1.6/unix/lib GDAL_INCLUDES=/Library/Frameworks/GDAL.framework/Versions/1.6/Headers/ PGSQL_LIBS=/usr/local/pgsql/lib/ PGSQL_INCLUDES=/usr/local/pgsql/include/ BOOST_INCLUDES=/usr/local/include/boost_1_38 BOOST_LIBS=/usr/local/lib BOOST_TOOLKIT=xgcc40
16:02:40 <epifanio> cool .. it works :-)
16:08:18 <epifanio> now i'll try with pkgkonfig .. and set cairo from the framewroks
16:08:31 <epifanio> springmeyer: have you any suggestion about ?
16:10:10 <springmeyer> epifanio: try to get your pkgconfig program to be able to find cairo itself (outside of SCons)
16:10:18 <springmeyer> by setting environment variables
16:10:31 <springmeyer> first I would do:
16:10:32 <epifanio> inside the cairoframework i've a directory called pkgconfig
16:10:39 <springmeyer> $ which pkgconfig
16:10:40 <springmeyer> cool
16:11:01 <epifanio> which pkgconfig give me nothinhg in the shall
16:11:16 <springmeyer> okay
16:11:18 <springmeyer> then try
16:11:27 <springmeyer> export PKG_CONFIG_PATH=/that/framework/pkgconfig
16:11:50 <springmeyer> or just put that path on your PATH
16:12:24 <epifanio> ok done it
16:13:00 <epifanio> now i'll rename the /opt directory  to an other name .. just to be sure nothing is token from it ... is a right choice ?
16:13:09 *** darragh (n=darragh@83.70.173.25) has joined #mapnik
16:13:19 <springmeyer> ah, sorry not 'which pkgconfig'
16:13:26 <springmeyer> rather: $ which pkg-config
16:13:31 <epifanio> the /opt is the macprots directory
16:13:41 <springmeyer> you need to be able to do:
16:13:52 <springmeyer> $ pkg-config --libs pycairo
16:13:55 <epifanio> ah infact
16:13:57 <springmeyer> and get results back
16:13:59 <epifanio> it give me :
16:14:02 <springmeyer> and then you can re-run Scons
16:14:05 <epifanio>  -  /opt/local/bin/pkg-config
16:14:20 <epifanio> it use the port pkgiconfig
16:14:23 <springmeyer> okay, cool
16:14:30 <epifanio> i need to avoid it
16:14:36 <springmeyer> right, so that means you've got the program installed with macports which is fine
16:14:49 <springmeyer> then you can use PK_CONFIG_PATH to point to the frameworks location
16:16:07 <epifanio> ok done it .. now if i try to re-run :  which pkg-config  i'll have the new path ?  (maybe no)
16:16:17 <springmeyer> no
16:16:31 <springmeyer> .g PKG_CONFIG_PATH
16:16:32 <nikq> springmeyer: http://www.linuxquestions.org/questions/linux-software-2/pkgconfigpath-230545/
16:16:38 <epifanio> ok so PK_CONFIG_PATH  is only for scns right ?
16:16:48 <epifanio> *scons
16:17:10 <springmeyer> no
16:17:33 <springmeyer> it is a variable to point to a folder that contains entries for libs that pkg-config can use
16:17:50 <springmeyer> an environment variable
16:18:15 <epifanio> yes i know, but it will be used by scons instead of the port pkg-config ?
16:18:16 <springmeyer> SCons uses pkg-config to find stuff and if that variable is set then SCons can find stuff :)
16:18:34 <springmeyer> epifanio:
16:18:40 <springmeyer> paste the result of:
16:18:44 <epifanio> or i need to eliminate the pkg-config from ports ?
16:19:00 <springmeyer> $ ls -l /path/to/framworks/pkgconfig
16:19:23 <springmeyer> (where 'pkgconfig' should be a FOLDER not an executatble)
16:19:33 <epifanio> it is : http://rafb.net/p/NyLYGX47.html
16:20:13 <springmeyer> okay, so thats good
16:20:39 <springmeyer> but no 'pycairo.pc' so that will not indicates that the framework does not provide the python bindings
16:20:53 <epifanio> yes it's true
16:21:10 <epifanio> i hvent py-cairo on my python systyem yet
16:21:22 <epifanio> i can try to build it from source
16:22:19 <epifanio> i'll try these src : http://pypi.python.org/pypi/pycairo/1.8.4
16:24:45 <epifanio> hummm seems it need a python >= 2.6
16:25:46 <springmeyer> ugh, ya I noticed that too. just grab an earlier version
16:26:01 <epifanio> yes .. i'm downloading 1.8.0
16:26:48 <epifanio> 1.8.0 configure done :-)
16:26:52 <epifanio> tring to make ..
16:27:41 <epifanio> ok done it
16:31:30 <nikq> Mapnik Trac: Ticket #299 (SCons printed output needs to reflect overridden commandline arguments) created | http://trac.mapnik.org/ticket/299
16:34:53 <nikq> Mapnik Trac: Ticket #299 (SCons printed output needs to reflect overridden commandline arguments) updated | http://trac.mapnik.org/ticket/299#comment:1
16:40:32 <darragh> I am getting this error when requesting multiple layers from OGCServer - OGCException: STYLES length does not match LAYERS length
16:49:44 <springmeyer> hey darragh
16:50:19 <springmeyer> darragh: ya if you are specifying multiple layers what styles do you want applied?
16:50:31 <springmeyer> or do you care?
16:51:34 <springmeyer> btw, are you loading layers and styles via python or XML?
16:56:47 <darragh> Loading styles and layers via python, using same style for multiple layers
16:56:57 <darragh> would prefer to be using XML
16:58:00 <springmeyer> darragh: so mapnik 0.5.x?
16:58:05 <springmeyer> is what you are using?
16:58:16 <darragh> springmeyer: yes
16:58:21 <darragh> springmeyer: code is http://pastebin.com/dd7f65ef
16:58:29 <darragh> springmeyer: will be moving to 0.6.
16:58:48 <springmeyer> okay.
16:59:03 <darragh> springmeyer: but need to get in working before upgrading
16:59:05 <springmeyer> ya, in 0.6.0 I added the xml loading stuff
16:59:38 <springmeyer> and in 0.6.0 you can do 'LAYERS=__all__' which will render all layers with their appropriate styles
16:59:54 <springmeyer> without having to specify styles or list layers
17:00:16 <springmeyer> in OL that would just be {layers:'__all__'}
17:00:35 <springmeyer> darragh: get what working? just your WMS request?
17:01:18 <darragh> springmeyer: yes, wms request working
17:01:30 <springmeyer> try this: { layers:['a','b','c'], styles:['','',''] }
17:02:44 <darragh> springmeyer: Cool, thanks
17:03:17 <springmeyer> darragh: if you can find a citation that it meets the WMS to be able to do....
17:03:34 <springmeyer> layers:['a','b','c'], styles:''}
17:04:09 <springmeyer> then I bet that would be an easy patch
17:04:59 <springmeyer> (WMS Spec) I meant
17:08:15 *** xcacou has quit (Remote closed the connection)
17:19:11 <darragh> springmeyer: The specs says "Zero or more Styles may be advertised for a Layer or collection of layers"
17:20:14 <springmeyer> cool. so the style checking should be lessened
17:20:23 <springmeyer> thanks for checking darragh
17:20:50 <springmeyer> if you file a ticket with that reference/link I'll take a look at it
17:21:11 <darragh> springmeyer: Sounds like that until you get down to GetMap request which says "
17:21:13 <darragh> Comma-separated list of one rendering style per requested
17:21:14 <darragh> layer.
17:21:29 <springmeyer> oh :)
17:22:03 <springmeyer> ya I guess by 'adversized' thay may mean GetCapabilities
17:22:16 <springmeyer> which surely is different that the GetMap request
17:22:43 <darragh> springmeyer: yes
17:27:38 <epifanio> springmeyer: after installing py-cairo i done a simlink : sudo ln -s /System/Library/Frameworks/Python.framework/Versions/2.5/lib/pkgconfig/pycairo.pc /Library/Frameworks/Cairo.framework/Resources/dev/lib/pkgconfig/
17:28:04 <epifanio> and recompiled mapnik ... now it has pycairo too :-)
17:28:33 <springmeyer> rock on
17:42:41 <dukeku> springmeyer: didn't you say you knew some people in portland state's gis/geog depts?
17:47:32 *** darragh has quit (Read error: 113 (No route to host))
19:24:54 *** rcoup (n=rcoup@ip-118-90-4-16.xdsl.xnet.co.nz) has joined #mapnik
19:45:29 *** sanjiv has quit ("ChatZilla 0.9.84 [Firefox 3.0.8/2009032711]")
20:11:47 <nikq> Mapnik Trac: Changeset [1083]: Maintain support for boost version before 1.34 when writing argument  ... | http://trac.mapnik.org/changeset/1083
20:38:42 *** Ldp_ (n=thid@osm.xs4all.nl) has joined #mapnik
20:44:40 <Ldp_> springmeyer: so text styling has never been requested?
20:44:58 <Ldp_> (except for the spacing)
20:45:09 <springmeyer> right
20:45:45 <Ldp_> ok, I'll file a ticket soon
20:45:51 <springmeyer> text manipulation has been requested but not styling like underlines/italics/bold
20:46:09 <springmeyer> likely because those are usually handled by the font (italic and bold at least)
20:46:18 <Ldp_> I was looking for that, since I wanted to underline capital cities, to see how it'd look
20:46:23 <Ldp_> okay, could've photoshopped it...
20:47:29 <Ldp_> but since the documentation is so fragmented, I was not sure it wasn't already in there somewhere hidden
20:48:04 <Ldp_> like how I found the regex filter matching ;/
20:48:39 <springmeyer> ya, docs are ALL user contributed
20:49:45 <Ldp_> yeah, things like http://trac.mapnik.org/wiki/LinePatternSymbolizer need some TLC
20:51:03 <springmeyer> ya :)
20:51:40 <springmeyer> Ldp_: I know the docs seem slim but you'd be surprised by how many there are now compared to just a year ago
20:51:52 <Ldp_> I'll take your word for it
20:51:56 <springmeyer> :)
20:52:08 <Ldp_> as I only seriously started working with mapnik and stylesheets last week
20:53:07 <springmeyer> cool
20:53:13 <Ldp_> I would dearly love to be able to do localised styles, like per-country colors and shield styles
20:53:23 <Ldp_> I noticed a few geo functions in the filter code
20:53:24 <springmeyer> yes, that would be awesome
20:53:28 <Ldp_> Within, Intersects, etc
20:53:38 <Ldp_> are they actually used?
20:53:43 <springmeyer> Ldp_: http://trac.mapnik.org/stractistics is a good place to see activity
20:53:59 <Ldp_> bookmarked
20:54:01 <springmeyer> if you put like 100 weeks back you can see the USER drive content start
20:54:33 <springmeyer> Ldp_: good question, I think only Intersects are used in the current code mainly
20:54:43 <springmeyer> for bounding box clipping
20:55:08 <Ldp_> something like Within and a supplied poly in the filter code could go a long way
20:55:08 <springmeyer> ie Envelope.intersects(Envelope)
20:55:21 <Ldp_> probably slows things down heavily, though
20:55:29 <springmeyer> actually within is likely used in the Mapnik::query
20:55:54 <springmeyer> I'd ask artem when he is around
20:58:07 <Ldp_> <Filter>[highway]='motorway' and [highway].Within(some_country_polygon)</Filter>
20:58:41 <Ldp_> don't know how feasible that would be, and it'd probably be a 1.0.0++ target, i.e. not anytime soon :)
20:59:21 * Ldp_ shudders at the thought of stylesheets growing exponentially if that starts to get used per country
21:00:03 <springmeyer> Ldp_: ya geometry filters - thats been mentioned as kind of a 1.0 thing (e.i. waiting for someone to write a patch)
21:00:30 <springmeyer> jburgess_: okay I must have read the boost docs wrong. >1.35 makes sense
21:00:45 <springmeyer> since I am testing with 1.35 on ubuntu and os x
21:01:02 <jburgess_> whatever works :)
21:02:33 <springmeyer> :) ya, sorry my bad here
21:03:43 <springmeyer> i've got an ubuntu VM with 1.33 on it to test but I can't get to this latest issue because of this
21:03:46 <springmeyer> unresolved one:
21:03:47 <springmeyer> http://trac.mapnik.org/ticket/252
21:08:24 * springmeyer has to head off to a bit
21:08:26 <springmeyer> bbl
21:52:42 <nikq> Mapnik Trac: ElseFilter edited | http://trac.mapnik.org/wiki/ElseFilter?version=2
21:53:13 <Ldp_> aha, big brother sees all my changes :)
22:25:45 <nikq> Mapnik Trac: Changeset [1084]: named docstring arguments only supported in boost python >= 1.35 | http://trac.mapnik.org/changeset/1084
22:26:07 <springmeyer> yup, jburgess_: >= 1.35 thx
22:26:32 <springmeyer> I managed to uninstall boost 1.34 on an ubuntu box to test
22:27:19 <jburgess_> that works for me too, with 1.34.1 on F10
22:27:33 <springmeyer> great
22:37:32 *** jburgess_ has quit (Remote closed the connection)
23:09:31 <nikq> Mapnik Trac: Ticket #300 (Improve tests) created | http://trac.mapnik.org/ticket/300
23:11:49 <nikq> Mapnik Trac: 040809_new_tests.diff attached to Ticket #300 | http://trac.mapnik.org/attachment/ticket/300/040809_new_tests.diff
23:14:18 <nikq> Mapnik Trac: test_output.txt attached to Ticket #300 | http://trac.mapnik.org/attachment/ticket/300/test_output.txt
23:30:38 *** aub has quit ()
23:32:12 <ser> :)
23:58:47 *** Ldp_ has quit ()