On Mon, 2009-12-21 at 06:56 -0800, owntheweb wrote: > Jon, > Thanks for your great feedback! > > > The labels would end up in a field (column) in the DBF file > > Awesome. > > > If might be easiest to put all the data into a csv file: x,y,z,name > > http://www.gdal.org/ogr/drv_csv.html > > Then you can either convert this to a shapefile or mapnik may be able to > > read this directly via the ogr driver. > > I'll check out the csv option as that hugely simplifies things.
Once you have a the csv file then ogr2ogr should do the work of converting to a shapefile. > > The scale is arbitrary and can be whatever you want. Often it is in > > degress (lattitude/longitude) or metres or feet. In your case it could > > be millons of km, light-years or whatever make most sense to you. > > The scale is clear as crystal now. > > > Are you using the 'z' values for 3D data? > > If so then Mapnik may not work for you. It currently only does 2D maps > > and typically ignores the z value of a 3D geometry. > > 'z' is out as the in-game 3D map tends to confuse people anyway. A > consistent 2D map that doesn't rotate every which way will be helpful. > > http://old.nabble.com/file/p26874951/mapDesign1A.gif Ignoring Z does make things much easier. > Do you see any rendering challenges with the style plan? Right now the guess > is that I'll need to make multiple layers for the points as they have double > borders. (I'll dive into this area more soon) It looks like you will need one layer for the plents and another for the lines between them. Mapnik currently has fairly limited ability to draw geometric shapes itself. The best way to draw the points is probably to create icons in the 4 different colours, each with the spot and the surrounding ring. Then you'll need to use the ShieldSymbolizer[1] with rules which choose the right colour icon and specify the text label. Alternatively you could use a PointSymbolizer + TextSymbolizer to draw the icon and text separately but the ShieldSymbolizer is probably better since it does both at the same time. For the lines between the planets you will need to create a table with which lines you want to be shown. Then you can render the dashed appearance using the LineSymbolizer using the stroke-dasharray feature[2]. Jon 1: http://trac.mapnik.org/wiki/ShieldSymbolizer 2: http://trac.mapnik.org/wiki/LineSymbolizer _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

