#mapnik log: Monday 16, March 2009

2009 | 03

previous | next
00:35:25 <CIA-6> mapnik-utils: dane.springmeyer * r594 /trunk/nik2img/nik2img.py: code cleanup
00:58:34 <CIA-6> mapnik-utils: dane.springmeyer * r595 /trunk/nik2img/README.txt: minor formatting
01:53:45 *** vladimir_e has quit ("Leaving")
01:57:38 *** jlivni has quit ("Lost terminal")
02:19:35 <w0lfie_> haha
02:19:41 <w0lfie_> my 97 escort finally hit 25k miles
02:27:07 *** rweait1 has parted #mapnik ()
02:32:07 *** kris32 (n=Anon387@78-105-53-176.zone3.bethere.co.uk) has joined #mapnik
02:32:21 *** kris32 has parted #mapnik ()
03:29:37 *** aub has quit ()
03:47:49 *** rcoup has quit ()
05:13:51 *** racicot has quit ("ChatZilla 0.9.84 [Firefox 2.0.0.21pre/2009020912]")
05:36:11 *** racicot (n=chatzill@dsl-209-166-85-189.whidbey.net) has joined #mapnik
06:13:03 *** weizhuo has quit ("ChatZilla 0.9.84 [Firefox 2.0.0.20/2008121709]")
08:39:54 *** rcoup (n=rcoup@ip-118-90-3-165.xdsl.xnet.co.nz) has joined #mapnik
10:18:44 *** rcoup has quit ()
12:05:54 *** aub (n=aubrey@cpe-72-227-134-148.nyc.res.rr.com) has joined #mapnik
12:30:30 *** xcacou (n=aga@28.54.86-79.rev.gaoland.net) has joined #mapnik
12:38:08 *** aub has quit ()
13:15:19 *** aub (n=aubrey@216.156.96.6) has joined #mapnik
14:06:51 *** aub_ (n=aubrey@216.156.96.6) has joined #mapnik
14:08:05 *** aub_ has quit (Remote closed the connection)
14:08:09 *** aub has quit (Read error: 104 (Connection reset by peer))
14:08:10 *** aub_ (n=aubrey@216.156.96.6) has joined #mapnik
14:13:26 *** aub (n=aubrey@216.156.96.6) has joined #mapnik
14:14:39 *** aub_ has quit (Read error: 60 (Operation timed out))
14:17:39 *** aub has quit (Remote closed the connection)
14:17:45 *** aub (n=aubrey@216.156.96.6) has joined #mapnik
14:17:56 *** aub has quit (Client Quit)
17:02:48 *** xcacou has quit (Remote closed the connection)
18:16:43 <cmarqu> springmeyer: My files are at http://mapnik-utils.googlecode.com/svn/sandbox/cascadenik/hike_n_bike/
18:17:12 <cmarqu> Though some icons will be missing, as will the raster images.
18:17:47 <springmeyer> hey thanks
18:17:56 <springmeyer> ya, thought I was wondering about the rasters...
18:18:08 <springmeyer> thinking that might be the issue
18:26:35 <springmeyer> cmarqu: I wonder if you can prompt the segfault using another sample xml file?
18:27:21 <springmeyer> if you can prompt it with something simplier then that might be more efficient that me recontructing your hike_n_bike stuff
18:27:25 <dukeku_> is there any epsg projection for just worldwide lat/lon?
18:27:29 <springmeyer> (at first)
18:27:54 <dukeku_> 4326, perhaps?
18:28:00 <springmeyer> dukeku_: ya a couple, 4326 being the most frequently used
18:28:15 <springmeyer> others will be based off of other datums
18:35:12 <dukeku_> springmeyer: know of any svg viewers that work with coordinate transforms (eg crs:CoordinateReferenceSystem)?
18:35:45 <springmeyer> nope, what do you have in mind?
18:36:06 <dukeku_> just trying some tomfoolery
18:36:11 <springmeyer> geopdf stuff?
18:36:25 <dukeku_> someone at work is hacking together a svg renderer for data he's working on
18:36:35 <dukeku_> and doing some nasty tricks to project it right
18:36:53 <springmeyer> so, geodata -> svg?
18:36:57 <dukeku_> yeah, basically
18:37:03 <springmeyer> or rendering svg - > graphic?
18:37:19 <dukeku_> svg docs say you can transform in the svg, given the right stuff
18:37:37 <springmeyer> ya, and I've seen that in code snippets in the past
18:37:49 <springmeyer> dukeku_: you should check out osmarenderer
18:37:51 <dukeku_> so i decided to help out :) chrome is even ignoring my transform arguments that are in the spatial reference section
18:37:56 <dukeku_> so i have a feeling it's just ignoring it all together
18:39:19 <dukeku_> springmeyer: will do, thanks :)
18:39:44 <dukeku_> looks like they do similar hacks for projection...calculating it all out before actually inserting the data into the svg
18:42:16 <cmarqu> springmeyer: Ok, will try it later tonight
19:12:30 *** rcoup (n=rcoup@ip-118-90-101-32.xdsl.xnet.co.nz) has joined #mapnik
19:29:16 *** keroseno (i=984add29@gateway/web/ajax/mibbit.com/x-1a6eb7eab0be6a33) has joined #mapnik
19:30:27 <keroseno> hi, i have a question about mapnik
19:30:42 <keroseno> who can help me, please?
19:31:33 <springmeyer> don't ask to ask, just ask :)
19:31:41 <keroseno> thanks
19:31:49 <keroseno> is about the render mode
19:32:16 <keroseno> mapnik generates tiles and store it in hard disk
19:32:29 <keroseno> o render dynamic like mapserver?
19:33:14 <springmeyer> either
19:33:50 <keroseno> how can i do to render dynamic?
19:33:53 <springmeyer> althought mapnik is really just the rendering library, and it up to you to decide how you want to generate tiles
19:34:26 <keroseno> ok, but i use "openlayers" to show in web
19:34:55 <springmeyer> keroseno: the mapnik OGCServer is usually how folks render dynamic tiles (when they don't need to be cached)
19:35:23 <springmeyer> that is easy to configure with OpenLayers using an OpenLayers WMS layer
19:35:53 <keroseno> but, when i leave my shp and osm files in my local server?
19:36:08 <keroseno> or, how i tell to maplink that render those files?
19:36:33 <springmeyer> usually the workflow goes as follows...
19:37:01 <springmeyer> 1) define an mapnik xml stylesheet that points at your shp and osm files
19:37:28 <keroseno> ok...
19:37:29 <springmeyer> 2) point the OGCServer or another server/tile generator at the XML stylesheet
19:37:55 <springmeyer> 3) Set up your web application to point to your server/tile generator url
19:38:37 <springmeyer> caveat: you'll need Mapnik trunk to using the OGCServer with XML files (otherwise the OGCserver only support defining your styles using Python Scripting)
19:40:29 <keroseno> ok, but OGCServer is a remote server, how can i do to mount a server/tile generator on my local server
19:40:51 <springmeyer> by local server you mean what?
19:41:07 <keroseno> on my pc
19:41:11 <keroseno> localhost
19:41:50 <springmeyer> OGCServer, or any other tool that can interface with Mapnik will run on localhost just fine
19:42:30 <keroseno> ook
19:42:45 <springmeyer> that just an issue of how you deploy the tool... for instance whether you use Apache, CGI, FastCGI, etc...
19:43:15 <keroseno> look, i just install mapnik last night
19:43:23 <springmeyer> OGCServer support a WSGI protocal so it is very easy to have it attach to any local port, like http://localhost:8000
19:43:23 <keroseno> to the step:
19:43:39 <keroseno> in python >>> import mapnik
19:43:44 <springmeyer> cool
19:43:50 <springmeyer> on windows, linux?
19:43:55 <keroseno> and without problems whit libs
19:43:58 <keroseno> linux
19:44:05 <springmeyer> mapnik from svn?
19:44:09 <keroseno> yes
19:44:13 <springmeyer> good stuff
19:44:19 <springmeyer> what os?
19:44:28 <springmeyer> er linyux distro?
19:44:31 <keroseno> really copy-paste from web support :P
19:44:36 <keroseno> kubuntu
19:45:06 <springmeyer> good, so you copied from the trac.mapnik.org/UbuntuInstallation and it worked flawlessly?
19:46:09 <keroseno> yes
19:46:14 <keroseno> all right
19:46:16 <springmeyer> cool
19:46:51 <keroseno> some commands i use "sudo" and work fine
19:47:07 <keroseno> and when the page sais "cd ~/src"
19:47:24 <keroseno> i had to create before
19:47:45 <keroseno> nothing more that i remember.
19:48:57 <keroseno> but, now.. i dont know what i have to do
19:49:38 <keroseno> where i put the shp files and all that stuff
19:51:30 <keroseno> ?
19:51:52 <springmeyer> keroseno: I know that you want to get serving tiles locally but have you run though this yet?
19:51:53 <springmeyer> http://trac.mapnik.org/wiki/GettingStarted
19:52:07 <springmeyer> will help you understand basics of mapnik first
19:54:49 <keroseno> thanks
19:55:16 <keroseno> i`ll look that
20:02:12 <rcoup> springmeyer: has there been any discussion around adding vector symbolizers? (point, line pattern, etc)
20:02:35 <rcoup> seems it wouldn't be too hard for Cairo to use SVG files as symbols
20:02:53 <springmeyer> yes, to the extent that it is desired
20:03:03 <springmeyer> but I'm not sure if any development has taken place
20:03:07 * rcoup was asked by a client about it today
20:03:16 <springmeyer> cool
20:03:17 <rcoup> they might get me to add it.
20:06:06 <springmeyer> ... http://www.mail-archive.com/dev@openstreetmap.org/msg01048.html
20:06:19 <springmeyer> and http://trac.mapnik.org/ticket/155
20:06:46 <springmeyer> two discussions that relate, but that's the limit of my knowledge
20:07:28 <rcoup> Jürgen posted a couple of times on the mapnik list (he works for my client) about it, but didn't get much uptake.
20:08:03 <springmeyer> gocha
20:13:49 <rcoup> looks like agg has some basic support, and cairo has librsvg as a renderer, plus whatever Mozilla's using.
20:14:15 <rcoup> librsvg can use cairo as a renderer.
20:14:23 <rcoup> early in the morning, language not fully functioning yet
20:14:33 <springmeyer> :) right on
22:02:01 *** weizhuo (n=chatzill@nat/yahoo/x-416056770efd7044) has joined #mapnik
22:12:15 *** keroseno has quit ("http://www.mibbit.com ajax IRC Client")
23:47:29 <dukeku_> so i know there was discussion on creating plugins here earlier
23:47:57 <dukeku_> where would one start on developing one? just look at the previously developed plugins?
23:56:33 <springmeyer> yep