Hi, I am using a simple map file and python script below which creates a pdf ok (thanks, looks good) and then I add the geospatial header to the pdf, I can see this geospatial information is added within the pdf file by looking at the raw file, however it isn't working as a geospatial pdf within acrobat.
Does anyone on the list have an example they can share for creating a geospatial pdf? import mapnik2 mapfile = 'mapfile.xml' map_output = 'out.pdf' m = mapnik2.Map(1200, 800) mapnik2.load_map(m, mapfile) bbox = mapnik2.Box2d(-117.596,32.532,-116.081,33.505) m.zoom_to_box(bbox) pdf = mapnik2.printing.PDFPrinter() pdf.render_map(m, map_output) pdf.finish() pdf.add_geospatial_pdf_header(m, map_output, epsg=4326) and then within the pdf I see /VP [ << /Type /Viewport /BBox [ 0.01031 0.00500 0.19969 0.13125 ] /Measure << /GCS << /Type /PROJCS /EPSG 4326 >> /GPTS [ 32.51350 -117.59671 33.52350 -117.59671 33.52350 -116.08029 32.51350 -116.08029 ] /LPTS [ 0 0 0 1 1 1 1 0 ] /Type /Measure /Bounds [ 0 0 0 1 1 1 1 0 ] /Subtype /GEO >> >> ] thanks, Norman _______________________________________________ Mapnik-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/mapnik-users

