#mapnik log: Monday 02, March 2009

2009 | 03

previous | next
00:46:57 <w0lfie_> Anyone know how freetype finds its fonts? mapnik's complaining
00:55:22 <w0lfie_> hm well that explains that
00:59:51 <w0lfie_> freetype doesn't think i have any fonts installed... nice
01:01:00 <w0lfie_> ah you need to pass the full name
01:13:32 <w0lfie_> Well maybe someone can tell me what I'm doing wrong, http://pastebin.com/m2cde8528
01:14:00 <w0lfie_> Points appear, just no text
01:22:33 *** springmeyer (n=springme@c-24-19-50-92.hsd1.wa.comcast.net) has joined #mapnik
01:25:48 <w0lfie_> dane can you take a look at this for me http://pastebin.com/m2cde8528
01:25:53 <w0lfie_> text not appearing
01:26:09 <springmeyer> hey
01:26:13 * springmeyer looks
01:26:22 *** weizhuo (n=chatzill@nat/yahoo/x-91c5363a7e967550) has joined #mapnik
01:26:38 <w0lfie_> here's how the flex app is shaping up with mapnik + pure wms as backend -> http://oreo.entropy.net/iracambi/
01:26:46 <w0lfie_> esri's api.. hehe
01:26:59 <springmeyer> t = TextSymbolizer('name', 'DejaVu Sans Book', 12, Color('black')) -- > t = TextSymbolizer('NAME', 'DejaVu Sans Book', 12, Color('black'))
01:27:06 <springmeyer> #199
01:27:07 <nikq> Ticket #199: "Shapefile reader should look for file=""name.shp""", http://trac.mapnik.org/ticket/199
01:28:19 <springmeyer> thats very nice w0lfie_
01:28:22 <w0lfie_> no difference with s/name/NAME/
01:28:59 <w0lfie_> the perf is pretty good with fcgi
01:30:16 <springmeyer> good, so mapnik wms is serving which layers?
01:30:29 * springmeyer looks at pastebin again
01:30:42 <w0lfie_> everything except the landsat/srtm
01:30:50 <w0lfie_> there are more layers in my local version.. only a couple in that one
01:30:56 <w0lfie_> just a bunch of shapefiles basically
01:31:19 <w0lfie_> probably be a sql of some sort later.. just figuring out what's best for this nonprofit
01:32:00 <w0lfie_> probably will cut out the landsat and tile it so its faster rather than grabbing from jpl's wms.. and we're going to buy some ikonos probably
01:32:16 <w0lfie_> but yeah.. i'm liking mapnik
01:33:03 <springmeyer> cool
01:33:23 <w0lfie_> can it read VPF?
01:33:37 <crschmidt> ogr can read vpf
01:33:37 <springmeyer> do your labels show up if you turn off the points?
01:33:39 <crschmidt> to some extent
01:33:45 <crschmidt> so 'probably, but it might be hard'
01:34:01 <crschmidt> and you're probably best converting your vpf to something more sane...
01:34:03 <w0lfie_> probably easier to convert to shapefiles or postgis then
01:34:04 <w0lfie_> yeah
01:34:24 <w0lfie_> well if i use it at work it'll probably be for doing all the uvmap/ufd/vmap/etc
01:35:12 <w0lfie_> yeah turning off the points works
01:35:20 <springmeyer> okay, then do:
01:35:25 <springmeyer> t.allow_overlap = True
01:35:42 <w0lfie_> perfect
01:36:26 <w0lfie_> have you seen the labelling work with diacritics? is that a font choice issue?
01:36:33 <springmeyer> w0lfie_: and try:
01:36:34 <crschmidt> Yes
01:36:39 <springmeyer> t.displacement(5,5)
01:36:59 <w0lfie_> any suggestions for fonts?
01:38:20 <crschmidt> I think most people use the ttf-dejavu fonts
01:38:29 <w0lfie_> that's what i'm using
01:38:29 <springmeyer> anything ttf or otf
01:38:42 <w0lfie_> get question marks for diacritics though; wonder if it's related to reading from a dbf
01:38:46 <crschmidt> w0lfie_: if you're having problems with things looking like boxes, you might be having encoding problems
01:38:49 <crschmidt> almost definitely
01:38:52 <w0lfie_> yeah
01:39:00 <crschmidt> I'd recommend converting to a postgis database
01:39:06 <crschmidt> and seeing if you still have the same problems
01:39:06 <springmeyer> w0lfie_:  dejavu should work if the shp encoding it right
01:39:12 <w0lfie_> diacritics come through in globalmapper
01:39:26 <crschmidt> the encoding aspects of shapes are unfortunately terribly defined
01:39:33 <w0lfie_> yes, they are
01:39:36 <crschmidt> (in other words, not at all)
01:39:42 <crschmidt> so OGR probably can't understand what globalmapper is doing
01:39:44 <w0lfie_> had a lot of issues with vietnam data before
01:42:58 <w0lfie_> i actually got this data originally as a kml heh
01:53:54 *** ninja_ (n=pankur@nat/yahoo/x-da7a940bac9a2b23) has joined #mapnik
01:57:48 <w0lfie_> anyway, this is some good software def.
02:10:28 <scruggs> is there any documentation for using the new sqlite plugin?
02:13:11 *** jburgess_ has quit (brown.freenode.net irc.freenode.net)
02:13:11 *** w0lfie_ has quit (brown.freenode.net irc.freenode.net)
02:13:11 *** racicot has quit (brown.freenode.net irc.freenode.net)
02:13:11 *** crschmidt has quit (brown.freenode.net irc.freenode.net)
02:13:11 *** dodobas has quit (brown.freenode.net irc.freenode.net)
02:13:19 *** jburgess_ (n=jburgess@bb-87-80-234-70.ukonline.co.uk) has joined #mapnik
02:13:19 *** w0lfie_ (n=wolf@cpe-67-49-133-78.hawaii.res.rr.com) has joined #mapnik
02:13:19 *** racicot (n=chatzill@dsl-209-166-85-189.whidbey.net) has joined #mapnik
02:13:19 *** crschmidt (i=crschmid@59.176.232.72.static.reverse.ltdomains.com) has joined #mapnik
02:13:19 *** dodobas (n=dodobas@open.geof.hr) has joined #mapnik
03:56:15 *** D3f0 (n=defo@190.176.247.242) has joined #mapnik
05:56:21 *** D3f0 has quit (Remote closed the connection)
07:15:32 *** weizhuo has quit ("ChatZilla 0.9.84 [Firefox 2.0.0.20/2008121709]")
07:16:03 *** springmeyer has quit ()
07:49:58 *** xcacou (n=aga@98.24.86-79.rev.gaoland.net) has joined #mapnik
08:59:27 *** ninja_ has quit (Read error: 110 (Connection timed out))
09:55:04 *** darragh (n=darragh@83.70.173.25) has joined #mapnik
10:27:34 *** ninja_ (n=pankur@cm54.psi132.maxonline.com.sg) has joined #mapnik
13:12:12 *** sanjiv (n=chatzill@59.180.129.127) has joined #mapnik
13:29:15 *** aub has quit ()
13:52:02 *** sanjiv has quit (Remote closed the connection)
13:52:50 *** sanjiv (n=chatzill@59.180.129.127) has joined #mapnik
13:54:10 *** sanjiv has quit (Read error: 104 (Connection reset by peer))
13:54:55 *** sanjiv (n=chatzill@59.180.129.127) has joined #mapnik
13:55:28 *** sanjiv has quit (Read error: 104 (Connection reset by peer))
13:56:45 *** sanjiv (n=chatzill@59.180.129.127) has joined #mapnik
13:57:31 *** hades__ (n=hades@89.246.194.115) has joined #mapnik
13:58:24 <hades__> hi, i have a general question about the features of mapnik
14:00:29 <hades__> is it possible to check if a given coordinate is in a specific layer (country)?
14:05:49 *** aub (n=aubrey@216.156.96.6) has joined #mapnik
14:12:17 <hades__> okay, i refine this question: is there a way to check if a point is in a polygon?
14:31:38 *** sanjiv has quit (Read error: 104 (Connection reset by peer))
14:36:10 *** sanjiv (n=chatzill@59.180.129.127) has joined #mapnik
14:43:02 *** sanjiv has quit (Remote closed the connection)
14:43:53 *** sanjiv (n=chatzill@59.180.129.127) has joined #mapnik
14:45:22 <ninja_> hey hades__ mapnik itself cant do that as far as i know
14:45:44 <ninja_> the easiest way to do this is probably store the data in postgresql
14:45:51 <hades__> hi ninja
14:45:56 <ninja_> and use sql statements to access the data with postgis methods
14:46:13 <ninja_> oops sorry have to run now , talk to you later hades__
14:46:20 <hades__> kk
14:46:23 <hades__>  ty
14:51:55 *** sanjiv has quit (Remote closed the connection)
14:53:58 *** D3f0 (n=defo@190.176.247.242) has joined #mapnik
14:59:20 *** sanjiv (n=chatzill@59.180.129.127) has joined #mapnik
15:00:05 *** sanjiv has quit (Read error: 104 (Connection reset by peer))
15:54:24 *** hades__ has quit ()
16:41:04 *** xcacou has quit (Remote closed the connection)
16:58:05 *** darragh has quit (Remote closed the connection)
17:05:38 *** joeh_ (n=joeh@12.164.190.13) has joined #mapnik
17:06:00 *** ninja_ has quit ()
17:06:47 <joeh_> Is there some sort of documentation I can find that will teach a newbie how to use Mapnik?
17:12:50 <joeh_> I guess more precisely how to include shapefiles in the mix with my PostGres data.
17:43:14 <cmarqu> Of the input formats understood my Mapnik (SVN), which would be the easiest to modify by hand or generate by a script? Shapefiles?
17:43:53 <cmarqu> I was thinking of constructing a map legend.
18:06:36 <cmarqu> Hmm, I suppose I could try nickw's easymapnik or whatever it was called.
18:31:37 *** kunitoki (n=kraken@host217-241-dynamic.44-79-r.retail.telecomitalia.it) has joined #mapnik
18:57:47 <crschmidt> cmarqu: PostGIS is probably easiest to script.
18:59:05 <cmarqu> Hmm. I suppose the OSM format has advantages in that there are editors that I can use in addition.
18:59:21 <crschmidt> Well
18:59:25 <crschmidt> There are many shapefile editing tools
19:00:15 <cmarqu> Ok, then s/that I can use/that I know how to use/ :)
19:04:37 <crschmidt> and typically are as good, or better, than OSM editing tools for a lot of tasks, in my experience, for something like creating input to mapik
19:08:17 <cmarqu> I just remembered that you said the encoding of shp is undefined - if I *make* everything to be UTF-8, that won't be a problem though, right?
19:08:36 <cmarqu> Because I would want to have localised legends.
19:13:02 <crschmidt> Er
19:13:11 <crschmidt> I'm not entirely sure how you plan to go from a shapefile to a legend
19:13:42 <crschmidt> 'make everything be utf-8' ... well, there are 3 different ways of encoding that a shapefile is 'utf-8', and depending no whether your tools agree on the same one, then that might be a problem.
19:13:43 <cmarqu> I would create a fake map with the features I want to show and then render it.
19:14:15 <crschmidt> However, it's likely that Mapnik and any shapefile creation tool you could create would be speaking the same languag,e unless you're using a proprietary product
19:15:51 <cmarqu> That would work then.
19:24:04 *** D3f0 has quit ("Konversation terminated!")
19:45:23 <CIA-23> mapnik-utils: cmarqu42 * r578 /sandbox/cascadenik/hike_n_bike/ (7 files): Support mode signs of the Dresdner Heide.
21:10:09 *** kunitoki has quit ("Lost terminal")
21:51:15 *** joeh_ has quit ("Ex-Chat")
22:56:53 *** aba_ has quit (brown.freenode.net irc.freenode.net)
22:56:53 *** aub has quit (brown.freenode.net irc.freenode.net)
22:56:53 *** scruggs has quit (brown.freenode.net irc.freenode.net)
23:00:50 *** jbronn_ (n=jbronn@70-138-113-15.lightspeed.hstntx.sbcglobal.net) has joined #mapnik
23:01:43 *** jbronn has quit (Remote closed the connection)
23:02:39 *** weizhuo (n=chatzill@nat/yahoo/x-e973f63a759cb607) has joined #mapnik
23:04:04 *** CIA-4 (n=CIA@208.69.182.149.simpli.biz) has joined #mapnik
23:04:33 *** aub (n=aubrey@216.156.96.6) has joined #mapnik
23:04:33 *** aba_ (n=aba@2001:a60:f006:deb:0:0:0:1) has joined #mapnik
23:04:33 *** scruggs (n=chris@72-161-105-25.dyn.centurytel.net) has joined #mapnik
23:04:40 *** CIA-4 has quit (Excess Flood)
23:04:45 *** CIA-23 has quit ()
23:04:50 *** CIA-6 (n=CIA@208.69.182.149.simpli.biz) has joined #mapnik
23:05:23 *** aba_ has quit (brown.freenode.net irc.freenode.net)
23:05:23 *** scruggs has quit (brown.freenode.net irc.freenode.net)
23:05:23 *** aub has quit (brown.freenode.net irc.freenode.net)
23:05:23 *** ser has quit (brown.freenode.net irc.freenode.net)
23:05:23 *** jbglaw has quit (brown.freenode.net irc.freenode.net)
23:05:23 *** scruggs_ has quit (brown.freenode.net irc.freenode.net)
23:05:23 *** _closure_ has quit (brown.freenode.net irc.freenode.net)
23:05:23 *** stamf has quit (brown.freenode.net irc.freenode.net)
23:06:16 *** aba_ (n=aba@2001:a60:f006:deb:0:0:0:1) has joined #mapnik
23:06:16 *** scruggs (n=chris@72-161-105-25.dyn.centurytel.net) has joined #mapnik
23:06:16 *** aub (n=aubrey@216.156.96.6) has joined #mapnik
23:06:16 *** ser (n=ser@sergiusz.pawlowicz.name) has joined #mapnik
23:06:16 *** stamf (n=antstam@nat/yahoo/x-4ea1009ad6507c53) has joined #mapnik
23:06:16 *** scruggs_ (n=chris@72-161-105-25.dyn.centurytel.net) has joined #mapnik
23:06:16 *** jbglaw (n=jbglaw@lug-owl.de) has joined #mapnik
23:06:16 *** _closure_ (n=E78C8EE4@li48-120.members.linode.com) has joined #mapnik
23:53:37 <nikq> Mapnik Trac: Changeset [984]: scons: warn if the SYSTEM_FONTS directory does not exist | http://trac.mapnik.org/changeset/984