On Thu, Nov 20, 2008 at 4:16 PM, Dane Springmeyer <[EMAIL PROTECTED]> wrote:
> Nguyen,
>
> On Nov 19, 2008, at 9:30 PM, Nguyen Vu Hung wrote:
>
>> lyr2.datasource = Shapefile(file='../data/nations_name')
>> lyr2.styles.append('My Style')
>
> This looks good on first glance. Make sure that your 'nations_name'
> shapefile is in the same projection at the other layer otherwise set the
> projection like:
> lyr2.srs = 'some custom proj4 string'
I have nations_name.{shp,dbf,shx} in the ../data/folder.> > If you do not set the projection Mapnik assumes it is in WGS84 or epsg 4326, > which is the projection of the world_borders shapefile. I've change the structure and put it here: http://aoclife.ddo.jp/~vuhung/foss/mapnik/mapnik-vietnam.2008-11-21.tar.gz just download and run make( hopefully it work!). > You'll also notice that the code snippet you are using saves the XML > representation of the map you are creating in python. Taking a look at the > XML output can often help catch typos that prevent a style or layer from > being properly added to the map. XML file is included in http://aoclife.ddo.jp/~vuhung/foss/mapnik/mapnik-vietnam.2008-11-21.tar.gz I have no idea if the shp data I am using is of WGS84. How can I check? -- Best Regards, Nguyen Hung Vu ( Nguyễn Vũ Hưng ) [EMAIL PROTECTED] , YIM: vuhung16 , Skype: vuhung16dg A brief profile: http://www.hn.is.uec.ac.jp/~vuhung/Nguyen.Vu.Hung.html _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

