Hi all,

This is what I got when DEBUG is on.

Questions:

1. mapnik handles UTF-8 well?
2. Is there any problems with cities_points?
    I can dump its data with shpdump, dbfdump.
    Mapnik could detect total records in it " total shapes read=4263"
    But in the final result, I see on city points.


[EMAIL PROTECTED] mapnik-vietnam]$ make
cd py; /usr/bin/python vietnam.py; cd ..; cp map/vietnam.png ~/public_html/tmp/
registered datasource : gdal
registered datasource : postgis
registered datasource : shape
registered datasource : raster
size = 2
file=../shp/province_city
type=shape
Envelope(795810.3370903051,339153.0084436378,2383940.208393368,2150506.982866595)
file_length=624796
shape_type=5
datasource=0x9a98a10 type=1
size = 2
file=../shp/cities_points
type=shape
Envelope(759417.4180164114,340509.7347169011,2452393.895753121,2200217.611776892)
file_length=59732
shape_type=1
datasource=0x9a98438 type=1
scale=3018.92
start map processing
bbox=Envelope(382305.956459865,339153.0084436378,2797444.589023808,2150506.982866595)
scale denominator = 1.20023e+12
start layer processing : province_city
datasource = 0x9a98a10
ENCODING = utf-8
 total shapes read=64
end layer processing
start layer processing : cities_points
datasource = 0x9a98438
ENCODING = utf-8
 total shapes read=4263
end layer processing
end map processing
0.38 s

 destroyed singleton
 destroyed singleton
 destroyed singleton

On Fri, Nov 21, 2008 at 1:14 AM, Nguyen Vu Hung <[EMAIL PROTECTED]> wrote:
>
> 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



--
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

Reply via email to